/* ============================================== PAGE VOTE - CSS OPTIMISÉ AVEC BOOTSTRAP ===================================================== */

/* Variables globales */
:root {
    --oif-blue: #0055A4;
    --oif-blue-light: #42A5F5;
    --oif-blue-dark: #003A75;
    --oif-pink: #C2185B;
    --oif-purple: #9C27B0;
    --oif-green: #4CAF50;
    --text-primary: #2C3E50;
    --text-secondary: #5A6C7D;
    --text-light: #7F8C8D;
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;
}

/* ========== SECTION HERO UNIFORMISÉE (identique à toutes les pages) ========== */
.vote-hero,
.resultats-hero {
    background: linear-gradient(135deg, 
        rgba(0, 85, 164, 0.95),
        rgba(194, 24, 91, 0.95)
    );
    color: white;
    padding: 7rem 0 4rem;
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.vote-hero::before,
.resultats-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../../assets/images/patterns/pattern-light.svg');
    opacity: 0.1;
    z-index: 1;
}

.vote-hero .container,
.resultats-hero .container {
    position: relative;
    z-index: 2;
}

/* Structure alignée à gauche comme le programme */
.hero-content {
    max-width: 750px;
    text-align: left;
    padding-right: 2rem;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    line-height: 1.1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    font-weight: 400;
    line-height: 1.3;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    line-height: 1.6;
}

/* Boutons groupe alignés à gauche */
.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

/* Animations */
.animate-fadeIn {
    animation: fadeIn 0.8s ease-out;
}

.animate-slideInLeft {
    animation: slideInLeft 0.8s ease-out;
}

.animate-slideInRight {
    animation: slideInRight 0.8s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from { transform: translateX(-30px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

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

/* ========== COMPOSANTS COMMUNS AVEC BOOTSTRAP ========== */

/* Sections thématiques */
.theme-section {
    background: linear-gradient(135deg, 
        rgba(0, 85, 164, 0.03), 
        rgba(194, 24, 91, 0.03)
    );
    padding: 6rem 0;
}

.bassin-section {
    background: white;
    padding: 6rem 0;
}

.recap-section {
    background: linear-gradient(135deg, 
        rgba(0, 85, 164, 0.04), 
        rgba(194, 24, 91, 0.04)
    );
    padding: 6rem 0;
}

/* En-têtes de section */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    color: var(--oif-blue);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-header .lead {
    color: var(--text-secondary);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

/* Cartes modernes avec effet de profondeur */
.card-modern {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.98),
        rgba(255, 255, 255, 0.95)
    );
    border-radius: var(--radius-xl);
    border: 1px solid rgba(0, 85, 164, 0.1);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 85, 164, 0.15);
    border-color: var(--oif-blue);
}

/* Boutons améliorés */
.btn {
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.btn:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% { transform: scale(0, 0); opacity: 0.5; }
    20% { transform: scale(25, 25); opacity: 0.3; }
    100% { transform: scale(40, 40); opacity: 0; }
}

.btn-primary {
    background: linear-gradient(135deg, var(--oif-blue), var(--oif-purple));
    border: none;
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--oif-blue-dark), var(--oif-pink));
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 85, 164, 0.3);
}

.btn-white {
    background: white;
    border: 2px solid white;
    color: var(--oif-blue);
}

.btn-white:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--oif-blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--oif-blue);
    color: var(--oif-blue);
}

.btn-outline:hover {
    background: var(--oif-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 85, 164, 0.2);
}

/* Tailles de boutons */
.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1.125rem;
    border-radius: var(--radius-lg);
}

.btn-xl {
    padding: 1.125rem 2.5rem;
    font-size: 1.25rem;
    border-radius: var(--radius-xl);
    font-weight: 700;
}

/* ========== COMPOSANTS SPÉCIFIQUES AU VOTE ========== */

/* Status du vote */
.vote-status-open,
.vote-status-closed {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 1rem;
    margin-top: 1rem;
}

.vote-status-open i {
    color: #4CAF50;
    animation: pulse 2s infinite;
}

.vote-status-closed i {
    color: #FF6B6B;
}

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

/* Grille de ratio */
.vote-ratio {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 2rem 0;
}

.ratio-item {
    text-align: center;
    min-width: 120px;
}

.ratio-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 2rem;
    font-weight: 800;
    position: relative;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.ratio-circle::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: inherit;
    opacity: 0.2;
    z-index: 1;
}

.ratio-circle span {
    position: relative;
    z-index: 2;
}

.ratio-item h4 {
    color: var(--oif-blue);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.ratio-item p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
    opacity: 0.8;
}

.ratio-plus,
.ratio-equals {
    font-size: 2rem;
    font-weight: 800;
    color: var(--oif-blue);
    opacity: 0.7;
}

/* Cartes système */
.system-card,
.step-card,
.period-card,
.condition-card,
.security-card,
.prize-card {
    composes: card-modern;
    text-align: center;
    padding: 2.5rem 2rem;
    height: 100%;
}

.system-icon,
.step-icon,
.security-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    color: white;
    font-size: 2rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, var(--oif-blue-light), var(--oif-blue));
}

.step-number,
.process-number {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--oif-pink), var(--oif-purple));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 2px solid white;
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
}

/* Processus visuel */
.process-visual {
    position: relative;
    padding: 4rem 0;
}

.process-container {
    position: relative;
}

.process-step {
    text-align: center;
    padding: 0 1.5rem;
}

.step-visual {
    position: relative;
    margin-bottom: 2rem;
}

.step-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: white;
    font-size: 2rem;
    background: linear-gradient(135deg, var(--oif-blue-light), var(--oif-blue));
    box-shadow: 0 10px 25px rgba(0, 85, 164, 0.25);
    border: 3px solid white;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-icon:hover {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 15px 35px rgba(0, 85, 164, 0.35);
}

/* Projets mini */
.project-mini-card {
    composes: card-modern;
    overflow: hidden;
}

.project-mini-header {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.project-mini-header i {
    font-size: 2.5rem;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.project-mini-body {
    padding: 2rem;
}

/* Notes et avertissements */
.vote-note,
.conditions-note,
.vote-warning,
.jury-independence,
.security-transparency {
    composes: card-modern;
    padding: 2.5rem;
    border-left: 4px solid var(--oif-blue);
    margin: 2rem 0;
}

.vote-warning {
    border-left-color: #FFC107;
}

.conditions-note {
    border-left-color: var(--oif-pink);
}

.jury-independence {
    border-left-color: var(--oif-green);
}

/* Conditions */
.condition-card.allowed {
    border-color: rgba(76, 175, 80, 0.3);
    background: linear-gradient(135deg, 
        rgba(76, 175, 80, 0.05), 
        rgba(76, 175, 80, 0.08)
    );
}

.condition-card.not-allowed {
    border-color: rgba(244, 67, 54, 0.3);
    background: linear-gradient(135deg, 
        rgba(244, 67, 54, 0.05), 
        rgba(244, 67, 54, 0.08)
    );
}

.condition-icon i {
    font-size: 2.8rem;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

/* Jury */
.jury-criteria li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.jury-criteria i {
    color: var(--oif-blue);
    margin-top: 0.25rem;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Timeline résultats */
.results-timeline {
    position: relative;
    padding-left: 3rem;
}

.results-timeline::before {
    content: '';
    position: absolute;
    left: 1.5rem;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, 
        var(--oif-pink), 
        var(--oif-blue), 
        var(--oif-purple), 
        var(--oif-green)
    );
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

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

.timeline-date {
    position: absolute;
    left: -3rem;
    top: 0;
    background: white;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    border: 2px solid var(--oif-blue);
    color: var(--oif-blue);
    font-weight: 800;
    font-size: 1.05rem;
    min-width: 140px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 85, 164, 0.15);
}

.timeline-content {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-left: 8rem;
    border: 2px solid rgba(0, 85, 164, 0.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.timeline-item.highlight .timeline-content {
    border-color: var(--oif-pink);
    background: linear-gradient(135deg, 
        rgba(194, 24, 91, 0.08), 
        rgba(255, 255, 255, 0.95)
    );
    box-shadow: 0 10px 30px rgba(194, 24, 91, 0.15);
}

/* Podium */
.podium {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 4rem;
}

.podium-item {
    composes: card-modern;
    text-align: center;
    padding: 2.5rem;
    min-width: 300px;
}

.first-place {
    order: 2;
    margin-bottom: 4rem;
}

.second-place {
    order: 1;
    margin-bottom: 2rem;
}

.third-place {
    order: 3;
    margin-bottom: 2rem;
}

.rank-medal {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.rank-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--oif-blue);
    margin-bottom: 1.5rem;
}

.prize-rank {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.6rem;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border: 3px solid white;
}

.prize-rank.gold {
    background: linear-gradient(135deg, #FFD700, #FF9800);
}

.prize-rank.silver {
    background: linear-gradient(135deg, #C0C0C0, #757575);
}

.prize-rank.bronze {
    background: linear-gradient(135deg, #CD7F32, #8D6E63);
}

/* Tableau résultats */
.resultats-table {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 3rem;
}

.table-header {
    display: flex;
    background: linear-gradient(135deg, var(--oif-blue), var(--oif-blue-dark));
    color: white;
    font-weight: 600;
    padding: 1.5rem 2rem;
}

.table-col {
    flex: 1;
    padding: 0 1rem;
    display: flex;
    align-items: center;
}

.table-row {
    display: flex;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s ease;
}

.table-row:last-child {
    border-bottom: none;
}

.table-row:hover {
    background: rgba(0, 85, 164, 0.02);
}

.table-row.laureat {
    background: linear-gradient(135deg, 
        rgba(0, 85, 164, 0.03), 
        rgba(255, 255, 255, 0.95)
    );
    border-left: 4px solid var(--oif-blue);
}

/* Récapitulatif */
.recap-card {
    composes: card-modern;
    max-width: 1000px;
    margin: 0 auto;
}

.recap-header {
    background: linear-gradient(135deg, var(--oif-blue), var(--oif-purple));
    padding: 4rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.recap-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    position: relative;
    z-index: 2;
}

.recap-content {
    padding: 4rem;
    display: grid;
    gap: 2.5rem;
}

.recap-item {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.recap-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--oif-blue-light), var(--oif-blue));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(0, 85, 164, 0.25);
}

.recap-footer {
    background: linear-gradient(135deg, 
        rgba(0, 85, 164, 0.08), 
        rgba(0, 85, 164, 0.12)
    );
    padding: 2.5rem 4rem;
    text-align: center;
    border-top: 1px solid rgba(0, 85, 164, 0.1);
}

/* CTA Final */
.cta-section,
.cta-projets,
.cta-resultats {
    background: linear-gradient(135deg, 
        rgba(0, 85, 164, 0.95),
        rgba(194, 24, 91, 0.95)
    );
    color: white;
    padding: 6rem 0;
    text-align: center;
    position: relative;
}

.cta-section::before,
.cta-projets::before,
.cta-resultats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../../assets/images/patterns/pattern-dots.svg');
    opacity: 0.1;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cta-content p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 3rem;
    opacity: 0.9;
    line-height: 1.6;
}

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

/* ========== RESPONSIVE DESIGN (Bootstrap intégré) ========== */

/* Extra small devices (phones, moins de 576px) */
@media (max-width: 575.98px) {
    /* Hero responsive */
    .vote-hero,
    .resultats-hero {
        min-height: auto;
        padding: 5rem 0 3rem;
    }
    
    .hero-content {
        text-align: center;
        padding-right: 0;
    }
    
    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .btn-group {
        flex-direction: column;
        align-items: center;
    }
    
    /* Ratio en colonne */
    .ratio-plus,
    .ratio-equals {
        display: none;
    }
    
    .vote-ratio {
        flex-direction: column;
        gap: 3rem;
    }
    
    /* Timeline mobile */
    .results-timeline {
        padding-left: 0;
    }
    
    .results-timeline::before {
        left: 1.5rem;
    }
    
    .timeline-date {
        position: relative;
        left: 0;
        margin-bottom: 1rem;
        display: inline-block;
    }
    
    .timeline-content {
        margin-left: 0;
    }
    
    /* Podium mobile */
    .podium {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .podium-item {
        min-width: auto;
        width: 100%;
        max-width: 350px;
    }
    
    .first-place,
    .second-place,
    .third-place {
        order: 0;
        margin-bottom: 0;
    }
    
    .first-place {
        order: 1;
    }
    
    .second-place {
        order: 2;
    }
    
    .third-place {
        order: 3;
    }
    
    /* Tableau responsive */
    .table-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .table-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .table-col {
        width: 100%;
        justify-content: space-between;
    }
    
    /* Récapitulatif mobile */
    .recap-item {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .recap-header {
        padding: 3rem 1.5rem;
    }
    
    .recap-header h2 {
        font-size: 1.8rem;
        flex-direction: column;
    }
    
    .recap-content {
        padding: 3rem 1.5rem;
    }
    
    .recap-footer {
        padding: 2rem 1.5rem;
    }
    
    /* CTA responsive */
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-section .btn-xl,
    .cta-projets .btn-xl,
    .cta-resultats .btn-xl {
        width: 100%;
        max-width: 300px;
    }
}

/* Small devices (tablettes, 576px à 767px) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.4rem;
    }
    
    .podium {
        flex-wrap: wrap;
        gap: 2rem;
    }
    
    .podium-item {
        min-width: calc(50% - 1rem);
        flex: 1 1 calc(50% - 1rem);
    }
    
    .first-place {
        order: 1;
        flex: 0 0 100%;
        margin-bottom: 2rem;
    }
}

/* Medium devices (tablettes, 768px à 991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .podium {
        gap: 1.5rem;
    }
    
    .podium-item {
        min-width: 250px;
    }
    
    .recap-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Large devices (ordinateurs, 992px à 1199px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .podium-item {
        min-width: 280px;
    }
}

/* Extra large devices (grands écrans, 1200px et plus) */
@media (min-width: 1200px) {
    /* Ajouts spécifiques pour grands écrans */
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.75rem;
    }
    
    .recap-content {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Classes utilitaires Bootstrap additionnelles */
.text-primary { color: var(--oif-blue) !important; }
.bg-primary { background-color: var(--oif-blue) !important; }
.bg-gradient-primary { 
    background: linear-gradient(135deg, var(--oif-blue), var(--oif-purple)) !important; 
}

.text-success { color: var(--oif-green) !important; }
.bg-success { background-color: var(--oif-green) !important; }

.shadow-lg { box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important; }
.shadow-xl { box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important; }

.rounded-xl { border-radius: var(--radius-xl) !important; }
.rounded-xxl { border-radius: var(--radius-full) !important; }

/* Optimisations de performance */
@media (prefers-reduced-motion: reduce) {
    .animate-fadeIn,
    .animate-slideInLeft,
    .animate-slideInRight,
    .btn,
    .card-modern:hover,
    .step-icon:hover {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Mode sombre (optionnel) */
@media (prefers-color-scheme: dark) {
    .theme-section {
        background: linear-gradient(135deg, 
            rgba(0, 85, 164, 0.1), 
            rgba(194, 24, 91, 0.1)
        );
    }
    
    .card-modern {
        background: linear-gradient(135deg, 
            rgba(30, 30, 40, 0.95),
            rgba(40, 40, 50, 0.9)
        );
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .section-header h2 {
        color: #E3F2FD;
    }
    
    .section-header .lead {
        color: #B0BEC5;
    }
}

/* Impression */
@media print {
    .vote-hero,
    .resultats-hero,
    .cta-section,
    .cta-projets,
    .cta-resultats {
        background: white !important;
        color: black !important;
        padding: 2rem 0 !important;
        min-height: auto !important;
    }
    
    .hero-title {
        color: black !important;
        text-shadow: none !important;
    }
    
    .btn-group,
    .cta-buttons {
        display: none !important;
    }
    
    .card-modern {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}

/* ============================================= */
/* HERO-SECTION RESPONSIVE DESIGN  */
/* ============================================= */
/* Solution ultra-responsive avec clamp() */
.hero-section {
    min-height: 100vh;
    height: auto;
    display: flex;
    align-items: center;
}

.d-flex.align-items-center.justify-content-center {
    min-height: 100vh;
    padding: clamp(20px, 5vh, 80px) 0;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.position-relative.text-center.text-white.container {
    padding: clamp(15px, 3vh, 40px) clamp(10px, 3vw, 20px) !important;
}

/* Typographie responsive avec clamp() */
h1.fw-bold.mb-3 {
    font-size: clamp(1.4rem, 4vw + 1rem, 3rem) !important;
    margin-bottom: clamp(0.5rem, 1.5vh, 1.5rem) !important;
    line-height: 1.2 !important;
}

h2.mb-3 {
    font-size: clamp(1rem, 2vw + 0.5rem, 1.8rem) !important;
    margin-bottom: clamp(0.5rem, 1vh, 1rem) !important;
    line-height: 1.3 !important;
}

p.mb-4 {
    font-size: clamp(0.85rem, 1.5vw + 0.5rem, 1.2rem) !important;
    line-height: clamp(1.4, 1.8, 1.6) !important;
    margin-bottom: clamp(1rem, 2vh, 2rem) !important;
}

/* Boutons responsive */
.d-flex.flex-wrap.justify-content-center.gap-3.mt-3 {
    margin-top: clamp(1rem, 2vh, 2rem) !important;
    gap: clamp(0.5rem, 1vw, 1rem) !important;
}

.btn-lg {
    padding: clamp(0.5rem, 1vh, 1rem) clamp(0.8rem, 2vw, 1.5rem) !important;
    font-size: clamp(0.85rem, 1vw, 1rem) !important;
}