@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&family=Playfair+Display:wght@700;900&display=swap');

:root {
    --primary-green: #97c13c;
    /* Libramont Green */
    --secondary-blue: #00aeef;
    /* Libramont Blue */
    --accent-yellow: #f9c811;
    /* Libramont Yellow */
    --brand-grey: #424242;
    /* Libramont Grey */
    --light-bg: #fdfbf7;
    --white: #ffffff;
    --dark: #1a1a1a;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    background-color: var(--light-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.font-serif {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    color: var(--primary-green) !important;
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 600;
    color: var(--dark) !important;
    margin: 0 8px;
    font-size: 0.9rem;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-yellow);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 90vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('../images/agri1.png') !important;
    background-size: cover !important;
    background-position: center !important;
    display: flex;
    align-items: center;
    color: var(--white);
    text-align: center;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
}

/* Buttons */
.btn-premium {
    background: var(--primary-green);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid var(--primary-green);
    transition: var(--transition);
}

.btn-premium:hover {
    background: transparent;
    color: var(--primary-green);
    transform: translateY(-3px);
}

.btn-gold {
    background: var(--accent-yellow);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid var(--accent-yellow);
    transition: var(--transition);
}

.btn-gold:hover {
    background: transparent;
    color: var(--accent-yellow);
    transform: translateY(-3px);
}

/* Cards */
.card-glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    overflow: hidden;
}

.card-glass:hover {
    transform: translateY(-10px);
}

/* Section Titles */
.section-title {
    position: relative;
    padding-bottom: 20px;
    margin-bottom: 50px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-yellow);
}

/* Form */
.form-control {
    border-radius: 10px;
    padding: 12px;
    border: 1px solid #e0e0e0;
}

.form-control:focus {
    box-shadow: 0 0 10px rgba(45, 90, 39, 0.1);
    border-color: var(--primary-green);
}

/* Gallery & Voting */
.video-container {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
}

.vote-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--secondary-blue);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 700;
}

/* Candidates - Phase 2 */
.candidate-card {
    /* Pas de backdrop-filter ici : trop coûteux avec 8 cartes vidéo */
    backdrop-filter: none;
    background: var(--white);
}

.candidate-col {
    /* L'ancre tient compte de la navbar sticky */
    scroll-margin-top: 110px;
}

.candidate-card .video-container {
    border-radius: 15px 15px 0 0;
    background: #000;
}

.candidate-card video {
    display: block;
    width: 100%;
    aspect-ratio: 9 / 16;
    object-fit: contain;
    background: #000;
}

.candidate-card .vote-badge {
    z-index: 2;
    pointer-events: none;
}

.candidate-card.card-highlight {
    animation: candidateHighlight 2.5s ease;
}

@keyframes candidateHighlight {
    0%, 60% {
        box-shadow: 0 0 0 4px var(--accent-yellow), 0 10px 30px rgba(0, 0, 0, 0.15);
    }
    100% {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    }
}

.btn-vote.voted {
    background: #e9ecef !important;
    color: #6c757d !important;
    border-color: #dee2e6 !important;
    pointer-events: none;
}

.btn-share {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e0e0e0;
    background: var(--white);
    color: var(--brand-grey);
    transition: var(--transition);
}

.btn-share:hover {
    background: var(--primary-green);
    border-color: var(--primary-green);
    color: var(--white);
    transform: translateY(-2px);
}

.phase-badge {
    display: inline-block;
    background: var(--secondary-blue);
    color: var(--white);
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Footer */
footer {
    background: var(--dark);
    color: var(--white);
    padding: 80px 0 20px;
}

.footer-link {
    color: #ababab;
    text-decoration: none;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--accent-yellow);
    padding-left: 5px;
}

.social-icons a {
    color: var(--white);
    font-size: 1.5rem;
    margin-right: 20px;
    transition: var(--transition);
}

.social-icons a:hover {
    color: var(--accent-yellow);
}

/* Partners Section */
.partner-logo {
    max-height: 80px;
    width: auto;
    /*filter: grayscale(100%);
    opacity: 0.8;*/
    transition: var(--transition);
}

.partner-logo:hover {
    /*filter: grayscale(0%);*/
    opacity: 1;
    transform: scale(1.05);
}

/* Animations */
[data-aos] {
    pointer-events: none;
}

.aos-animate {
    pointer-events: auto;
}

/* Visual Timeline Section */
.timeline-relative {
    position: relative;
    padding: 3rem 0;
}

.timeline-horiz-line {
    position: absolute;
    top: 50px;
    left: 10%;
    right: 10%;
    height: 4px;
    background: #e9ecef;
    z-index: 1;
}

@media (max-width: 991px) {
    .timeline-horiz-line {
        display: none;
    }
}

.timeline-step {
    position: relative;
    z-index: 2;
    text-align: center;
}

.timeline-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--white);
    border: 6px solid var(--primary-green);
    margin: 0 auto 1.5rem;
    position: relative;
    box-shadow: 0 0 0 8px var(--light-bg);
    transition: all 0.3s ease;
}

.timeline-step:hover .timeline-dot {
    transform: scale(1.2);
}

/* Color markers for timeline */
.step-inscr .timeline-dot {
    border-color: var(--primary-green);
}

.step-vote .timeline-dot {
    border-color: var(--secondary-blue);
}

.step-final .timeline-dot {
    border-color: var(--accent-yellow);
}

@media (max-width: 991px) {
    .timeline-step {
        margin-bottom: 3rem;
    }

    .timeline-step:last-child {
        margin-bottom: 0;
    }
}

/* New Footer Support Styles */
.site-footer {
    background-color: #fff;
    background-image: linear-gradient(to right, rgba(255, 255, 255, .5) 5%, rgba(255, 255, 255, 1) 100%), url('//foiredelibramont.com/web/wp-content/uploads/2021/06/0.jpg');
    background-repeat: no-repeat;
    background-size: 55%;
    background-position: left center;
    color: var(--brand-grey);
    padding: 60px 0 0;
    font-family: 'Inter', sans-serif !important;
    border: 0;
}

.site-footer h1,
.site-footer h2,
.site-footer h3,
.site-footer h4,
.site-footer .elementor-heading-title {
    font-family: 'Inter', sans-serif !important;
}

.oceanwp-row {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.elementor-container {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.elementor-column {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

@media (min-width: 768px) {
    .elementor-col-50 {
        width: 50%;
    }
}

.elementor-widget-wrap {
    padding: 10px;
}

.elementor-widget-image-box img {
    max-width: 50%;
    height: auto;
    margin-bottom: 15px;
}

.elementor-image-box-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.elementor-image-box-title a {
    color: var(--brand-grey);
    text-decoration: none;
}

.elementor-image-box-description a {
    text-decoration: none;
}

.elementor-social-icons-wrapper {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.elementor-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    color: var(--brand-grey) !important;
    transition: var(--transition);
}

.elementor-icon:hover {
    background: var(--primary-green);
    transform: translateY(-3px);
}

.elementor-social-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.elementor-heading-title {
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: var(--primary-green);
}

.elementor-icon-list-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.elementor-icon-list-item {
    margin-bottom: 12px;
}

.elementor-icon-list-item a {
    color: #555;
    text-decoration: none;
    display: flex;
    align-items: flex-start;
    transition: var(--transition);
}

.elementor-icon-list-item a:hover {
    color: var(--primary-green);
}

.elementor-element-7f24d41 .elementor-widget-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.elementor-element-7f24d41 .elementor-icon-list-items {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.elementor-element-7f24d41 .elementor-icon-list-item,
.elementor-element-7f24d41 .elementor-icon-list-item a {
    justify-content: flex-end;
    text-align: right;
}

.elementor-icon-list-icon {
    margin-right: 10px;
    flex-shrink: 0;
}

.elementor-icon-list-icon svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

#footer-bottom {
    background: #f8f9fa;
    padding: 20px 0;
    margin-top: 50px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

#copyright {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

.clr::after {
    content: "";
    display: table;
    clear: both;
}

.elementor-screen-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}