/* ========================================
   VARIABLES & RESET
   ======================================== */

:root {
    /* Couleurs principales */
    --bleu-clair: #469ada;
    --bleu-marine: #1d2a4d;
    --bleu-royal: #2846a0;
    --bleu-inter: #3360b5;
    
    /* Couleurs fonctionnelles */
    --blanc: #ffffff;
    --gris-clair: #f8f9fa;
    --gris-moyen: #6c757d;
    --gris-fonce: #343a40;
    
    /* Typographie */
    --font-main: 'Montserrat', -apple-system, sans-serif;
    --font-serif: 'Source Serif Pro', Georgia, serif;
    
    /* Espacements */
    --section-padding: 5rem 0;
    --container-max: 1200px;
    
    /* Animations */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s ease;
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Ombres */
    --shadow-sm: 0 2px 8px rgba(29, 42, 77, 0.08);
    --shadow-md: 0 4px 16px rgba(29, 42, 77, 0.12);
    --shadow-lg: 0 8px 32px rgba(29, 42, 77, 0.16);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--gris-fonce);
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* ========================================
   UTILITAIRES
   ======================================== */

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: var(--section-padding);
}

.section-alt {
    background: var(--gris-clair);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--bleu-marine);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-header p {
    font-size: 1.25rem;
    color: var(--gris-moyen);
    max-width: 600px;
    margin: 0 auto;
}

.section-cta {
    text-align: center;
    margin-top: 3rem;
}

/* ========================================
   BOUTONS
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50px;
    transition: var(--transition-medium);
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn span {
    position: relative;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--bleu-royal), var(--bleu-clair));
    color: var(--blanc);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--blanc);
    color: var(--bleu-royal);
    border-color: var(--blanc);
}

.btn-secondary:hover {
    background: var(--bleu-marine);
    color: var(--blanc);
}

.btn-outline {
    background: transparent;
    color: var(--bleu-royal);
    border-color: var(--bleu-royal);
}

.btn-outline:hover {
    background: var(--bleu-royal);
    color: var(--blanc);
}

.btn-nav {
    background: var(--bleu-clair);
    color: var(--blanc);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
}

.btn-nav:hover {
    background: var(--bleu-royal);
}

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

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--blanc);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition-medium);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
}

.logo img {
    height: 140px;
  	width: auto;
    transition: var(--transition-medium);
}

.logo:hover img {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-menu a {
    font-weight: 600;
    color: var(--bleu-marine);
    position: relative;
}

.nav-menu a:not(.btn-nav)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--bleu-clair);
    transition: var(--transition-medium);
}

.nav-menu a:not(.btn-nav):hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--bleu-marine);
    border-radius: 3px;
    transition: var(--transition-medium);
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: 
        linear-gradient(135deg, rgba(29, 42, 77, 0.05), rgba(40, 70, 160, 0.05)),
        url('../images/hero-team.jpg') center 35%/cover no-repeat;
    background-attachment: fixed;
    color: var(--blanc);
    overflow: hidden;
}


.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(70, 154, 218, 0.2), transparent);
    animation: pulse 8s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent, rgba(29, 42, 77, 0.4));
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 2rem;
    animation: fadeInUp 1s ease;
  	margin-top: 20vh;
}

@media (max-width: 768px) {
    .hero-content {
        margin-top: 8vh;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-title-main {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #fff, #469ada);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-title-sub {
    font-size: clamp(1.25rem, 3vw, 2rem);
    font-weight: 400;
    font-family: var(--font-serif);
    color: rgba(255, 255, 255, 0.95);
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 3rem;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.6s both;
}

.hero-scroll {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--blanc);
    font-size: 0.9rem;
    font-weight: 500;
    animation: bounce 2s infinite;
    cursor: pointer;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

.hero-scroll svg {
    width: 24px;
    height: 24px;
}

/* ========================================
   CAROUSEL GÉNÉRIQUE
   ======================================== */

.carousel-wrapper {
    position: relative;
    overflow: hidden;
    padding: 0 50px;
}

.carousel-container {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.carousel-container::-webkit-scrollbar {
    display: none;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: var(--blanc);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--bleu-royal);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: var(--transition-medium);
}

.carousel-nav:hover {
    background: var(--bleu-royal);
    color: var(--blanc);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 0;
}

.carousel-next {
    right: 0;
}

/* ========================================
   NEWS CAROUSEL
   ======================================== */

.news-card {
    min-width: 350px;
    background: var(--blanc);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-medium);
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.news-card-image {
    width: 100%;
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.news-card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent, rgba(29, 42, 77, 0.3));
}

.news-card-content {
    padding: 1.5rem;
}

.news-card-date {
    display: inline-block;
    color: var(--bleu-clair);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.news-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bleu-marine);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.news-card p {
    color: var(--gris-moyen);
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.news-card-link {
    color: var(--bleu-royal);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-fast);
}

.news-card-link:hover {
    color: var(--bleu-clair);
    gap: 0.75rem;
}

/* ========================================
   ELECTIONS INFO
   ======================================== */

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.info-content h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: var(--bleu-marine);
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.info-content p {
    font-size: 1.125rem;
    color: var(--gris-moyen);
    margin-bottom: 1rem;
}

.info-content p:first-of-type {
    color: var(--bleu-royal);
    font-weight: 600;
}

.info-visual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.election-card {
    background: var(--blanc);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition-medium);
}

.election-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.election-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--bleu-royal), var(--bleu-clair));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blanc);
}

.election-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--bleu-marine);
    margin-bottom: 0.5rem;
}

.election-card .date {
    color: var(--bleu-clair);
    font-weight: 600;
}

/* ========================================
   ENGAGEMENTS CAROUSEL
   ======================================== */

.engagement-card {
    min-width: 380px;
    background: var(--blanc);
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    transition: var(--transition-medium);
    cursor: pointer;
}

.engagement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, var(--bleu-royal), var(--bleu-clair));
    transform: scaleY(0);
    transform-origin: bottom;
    transition: var(--transition-medium);
}

.engagement-card:hover::before {
    transform: scaleY(1);
}

.engagement-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.engagement-number {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 3rem;
    font-weight: 800;
    color: rgba(70, 154, 218, 0.1);
}

.engagement-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--bleu-royal), var(--bleu-clair));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blanc);
    margin-bottom: 1.5rem;
}

.engagement-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bleu-marine);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.engagement-card p {
    color: var(--gris-moyen);
    line-height: 1.7;
}

/* ========================================
   TESTIMONIALS
   ======================================== */

.testimonial-card {
    min-width: 450px;
    background: var(--blanc);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-medium);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-lg);
}

.testimonial-content {
    position: relative;
    margin-bottom: 2rem;
}

.quote-icon {
    color: var(--bleu-clair);
    opacity: 0.3;
    margin-bottom: 1rem;
}

.testimonial-content blockquote {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--gris-fonce);
    font-style: italic;
    font-family: var(--font-serif);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.testimonial-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 3px solid var(--bleu-clair);
}

.testimonial-info cite {
    display: block;
    font-weight: 700;
    color: var(--bleu-marine);
    font-style: normal;
    margin-bottom: 0.25rem;
}

.testimonial-info span {
    color: var(--gris-moyen);
    font-size: 0.95rem;
}

/* ========================================
   CANDIDATES
   ======================================== */

.candidates-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.candidate-flip-card {
    perspective: 1000px;
    height: 400px;
}

.candidate-flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.candidate-flip-card:hover .candidate-flip-inner {
    transform: rotateY(180deg);
}

.candidate-flip-front,
.candidate-flip-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.candidate-flip-front {
    background: var(--blanc);
}

.candidate-photo {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.candidate-photo::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(29, 42, 77, 0.7));
}

.candidate-flip-back {
    background: linear-gradient(135deg, var(--bleu-royal), var(--bleu-marine));
    color: var(--blanc);
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

.candidate-flip-back h3 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.candidate-position {
    font-size: 1.25rem;
    color: var(--bleu-clair);
    font-weight: 600;
    margin-bottom: 1rem;
}

.candidate-role {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.6;
}

/* ========================================
   STAY CONNECTED
   ======================================== */

.stay-connected {
    position: relative;
    padding: 8rem 0;
    background: 
        linear-gradient(135deg, rgba(29, 42, 77, 0.92), rgba(40, 70, 160, 0.92)),
        url('../images/hero-team.jpg') center/cover fixed;
    color: var(--blanc);
    text-align: center;
}

.stay-connected-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(70, 154, 218, 0.2), transparent);
}

.stay-connected .container {
    position: relative;
    z-index: 2;
}

.stay-connected h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

.stay-connected p {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    opacity: 0.95;
}

.stay-connected-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

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

.footer {
    background: var(--bleu-marine);
    color: var(--blanc);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    height: 120px;
  	width: auto;
  	max-width: 300 px;
    margin-bottom: 1rem;
    /* filter: brightness(0) invert(1); */
}

.footer-col p {
    opacity: 0.85;
    line-height: 1.7;
}

.footer-col h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--bleu-clair);
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col a {
    opacity: 0.85;
    transition: var(--transition-fast);
}

.footer-col a:hover {
    opacity: 1;
    color: var(--bleu-clair);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    opacity: 0.7;
    font-size: 0.9rem;
}

.footer-bottom p:first-child {
    margin-bottom: 0.5rem;
}

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

@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--blanc);
        flex-direction: column;
        justify-content: flex-start;
        padding: 3rem 2rem;
        gap: 2rem;
        transition: var(--transition-medium);
        box-shadow: var(--shadow-lg);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .candidates-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 3rem 0;
    }
    
    .hero {
        min-height: 600px;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .carousel-wrapper {
        padding: 0 20px;
    }
    
    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .news-card,
    .engagement-card,
    .testimonial-card {
        min-width: 300px;
    }
    
    .info-visual {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .btn {
        width: 100%;
    }
}

/* ========================================
   SECTION SOUTIENS
   ======================================== */

.supporters-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.supporter-card {
    text-align: center;
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.supporter-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.supporter-photo {
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 4px solid var(--bleu-clair);
}

.supporter-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--bleu-marine);
    margin-bottom: 0.5rem;
}

.supporter-card p {
    color: var(--gris-moyen);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 1400px) {
    .supporters-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1100px) {
    .supporters-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .supporters-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .supporter-photo {
        width: 120px;
        height: 120px;
    }
    
    .supporter-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .supporters-grid {
        grid-template-columns: 1fr;
    }
}