/* ==============================================
   assets/css/vote.css
   MODULE VOTE JFIEA 2026
   Couvre les 3 pages :
     - modules/vote/index.php     (Règles du vote)
     - modules/vote/voter.php     (Voter pour un projet)
     - modules/vote/resultats.php (Résultats)
   ============================================== */


/* ==============================================
   PARTIE 1 — VARIABLES & RESET GLOBAL
   ============================================== */

:root {
    /* Palette OIF */
    --oif-blue:        #0055A4;
    --oif-blue-light:  #1E88E5;
    --oif-blue-dark:   #003366;
    --oif-blue-faint:  #E3F2FD;
    --oif-pink:        #C2185B;
    --oif-pink-light:  #E91E63;
    --oif-purple:      #7B1FA2;
    --oif-green:       #2E7D32;
    --oif-green-light: #4CAF50;
    --oif-gold:        #FFD700;

    /* Neutres */
    --white:    #FFFFFF;
    --gray-50:  #FAFAFA;
    --gray-100: #F5F5F5;
    --gray-200: #EEEEEE;
    --gray-300: #E0E0E0;
    --gray-400: #BDBDBD;
    --gray-500: #9E9E9E;
    --gray-600: #757575;
    --gray-700: #616161;
    --gray-800: #424242;
    --gray-900: #212121;

    /* Typographie */
    --font-heading: 'Montserrat', sans-serif;
    --font-body:    'Open Sans', sans-serif;

    /* Ombres */
    --shadow-xs: 0 1px 4px rgba(0,85,164,0.06);
    --shadow-sm: 0 2px 8px rgba(0,85,164,0.09);
    --shadow-md: 0 4px 16px rgba(0,85,164,0.13);
    --shadow-lg: 0 8px 24px rgba(0,85,164,0.16);
    --shadow-xl: 0 16px 32px rgba(0,85,164,0.20);

    /* Rayons */
    --r-sm:   0.375rem;
    --r-md:   0.5rem;
    --r-lg:   0.75rem;
    --r-xl:   1rem;
    --r-xxl:  1.5rem;
    --r-full: 9999px;

    /* Transitions */
    --t-fast:  200ms ease;
    --t-base:  300ms ease;
    --t-slow:  500ms ease;
}

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

body {
    font-family: var(--font-body);
    color: var(--gray-900);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Accessibilité */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}
:focus-visible { outline: 3px solid var(--oif-blue); outline-offset: 2px; }
:focus:not(:focus-visible) { outline: none; }


/* ==============================================
   PARTIE 2 — ANIMATIONS
   ============================================== */

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-24px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes votePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(1.3); }
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
@keyframes popIn {
    0%   { opacity: 0; transform: scale(0.7); }
    70%  { transform: scale(1.1); }
    100% { opacity: 1; transform: scale(1); }
}
@keyframes bgMove {
    from { background-position: 0 0; }
    to   { background-position: 60px 60px; }
}

.animate-fadeIn      { animation: fadeInUp 0.8s ease-out forwards; opacity: 0; }
.animate-slideInLeft { animation: slideInLeft 0.8s ease-out forwards; opacity: 0; }


/* ==============================================
   PARTIE 3 — COMPOSANTS COMMUNS (toutes pages)
   ============================================== */

/* ── Sections ──────────────────────────────────────────────── */
.section {
    padding: 6rem 0;
    position: relative;
    /* Toujours visible par défaut — l'animation au scroll est un bonus */
    opacity: 1;
    transform: none;
}
/* Animation au scroll : activée uniquement si JS ajoute .js-scroll-ready au body */
body.js-scroll-ready .section {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .7s ease, transform .7s ease;
}
body.js-scroll-ready .section.in-view { opacity: 1; transform: none; }

.theme-section  { background: linear-gradient(135deg, rgba(0,85,164,.025), rgba(194,24,91,.025)); }
.bassin-section { background: var(--white); }

/* ── En-têtes de section ───────────────────────────────────── */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}
.section-header h2 {
    color: var(--oif-blue);
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 1rem;
}
.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 70px; height: 4px;
    background: linear-gradient(90deg, var(--oif-blue), var(--oif-pink));
    border-radius: var(--r-full);
}
.section-header .lead {
    color: var(--gray-600);
    font-size: 1.15rem;
    max-width: 760px;
    margin: 0 auto;
}

/* ── Alertes Bootstrap ─────────────────────────────────────── */
.alert {
    border: none;
    border-radius: var(--r-lg);
    padding: 1.1rem 1.4rem;
    box-shadow: var(--shadow-sm);
}
.alert-info    { background: rgba(33,150,243,.08);  border-left: 4px solid #2196F3; color: var(--gray-800); }
.alert-warning { background: rgba(255,193,7,.08);   border-left: 4px solid #FFC107; color: var(--gray-800); }
.alert-danger  { background: rgba(244,67,54,.08);   border-left: 4px solid #F44336; color: var(--gray-800); }
.alert-success { background: rgba(76,175,80,.08);   border-left: 4px solid #4CAF50; color: var(--gray-800); }

/* ── CTA (commun) ──────────────────────────────────────────── */
.cta-section {
    background: linear-gradient(135deg, var(--oif-blue), var(--oif-pink));
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='10' fill='white' opacity='.06'/%3E%3C/svg%3E");
    animation: bgMove 30s linear infinite;
}
.cta-content { position: relative; z-index: 2; }
.cta-content h2 {
    color: white;
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 800;
    margin-bottom: 1rem;
}
.cta-content .lead { color: rgba(255,255,255,.92); font-size: 1.15rem; max-width: 680px; margin: 0 auto 2.5rem; }
.cta-buttons { display: flex; flex-wrap: wrap; gap: 1.25rem; justify-content: center; }
.btn-outline-light {
    border: 2px solid white; color: white;
    background: transparent; transition: all var(--t-base);
}
.btn-outline-light:hover {
    background: white; color: var(--oif-blue);
    transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,.2);
}
.btn-white {
    background: white; color: var(--oif-blue);
    border: 2px solid white; font-weight: 600;
    transition: all var(--t-base);
}
.btn-white:hover {
    background: transparent; color: white;
    transform: translateY(-3px);
}

/* ── Modales partagées ─────────────────────────────────────── */
.vote-modal-content {
    border: none;
    border-radius: var(--r-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}
.vote-modal-header {
    padding: 1.4rem 1.6rem;
    border: none;
    background: linear-gradient(135deg, var(--oif-blue), var(--oif-blue-dark));
}
.modal-header-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}
.modal-projet-icon,
.modal-vote-icon {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; color: white;
    flex-shrink: 0;
}
.vote-modal-header .modal-title {
    color: white; font-family: var(--font-heading);
    font-weight: 700; font-size: 1.1rem; margin: 0;
}
.modal-projet-categorie,
.modal-vote-projet-nom {
    color: rgba(255,255,255,.8);
    font-size: .85rem;
    display: block;
}
.vote-modal-body { padding: 1.75rem; }
.vote-modal-footer {
    padding: 1rem 1.6rem;
    border-top: 1px solid var(--gray-200);
    background: var(--gray-50);
}

/* Modale vote header spécifique */
.vote-modal-header-vote {
    padding: 1.4rem 1.6rem;
    border: none;
    background: linear-gradient(135deg, var(--oif-green), #388E3C);
}

/* Bouton principal vote */
.btn-vote-primary {
    background: linear-gradient(135deg, var(--oif-blue), var(--oif-blue-dark));
    color: white; border: none;
    padding: .65rem 1.5rem;
    border-radius: var(--r-full);
    font-weight: 600; font-size: .95rem;
    transition: all var(--t-base);
    cursor: pointer;
    display: inline-flex; align-items: center; gap: .4rem;
}
.btn-vote-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,85,164,.35);
}


/* ==============================================
   PARTIE 4 — PAGE INDEX.PHP (Règles du vote)
   ============================================== */

/* ── Hero section (commun à toutes les pages) ───────────────── */
.hero-section {
    position: relative;
    display: flex;
    align-items: center;
    margin-top: -80px;
    overflow: hidden;
}

/* Status vote */
.vote-status-open i  { color: #4CAF50; animation: votePulse 2s infinite; }
.vote-status-closed i { color: #FF6B6B; animation: votePulse 2s infinite; }

/* ── Ratio de vote ─────────────────────────────────────────── */
.vote-ratio-card {
    background: white;
    border-radius: var(--r-xl);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0,85,164,.12);
}
.vote-ratio {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.ratio-item { text-align: center; min-width: 120px; }
.ratio-circle {
    width: 115px; height: 115px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1rem;
    color: white; font-size: 1.9rem; font-weight: 800;
    box-shadow: var(--shadow-lg);
}
.ratio-item h4 { color: var(--oif-blue); font-size: 1rem; font-weight: 700; margin-bottom: .2rem; }
.ratio-item p  { color: var(--gray-600); font-size: .85rem; margin: 0; }
.ratio-symbol  { font-size: 2rem; font-weight: 300; color: var(--oif-blue); opacity: .45; }

/* ── System cards ──────────────────────────────────────────── */
.system-card {
    background: white;
    border-radius: var(--r-lg);
    padding: 2rem 1.5rem;
    height: 100%;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0,85,164,.09);
    transition: all var(--t-base);
    display: flex; flex-direction: column;
}
.system-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-xl); border-color: var(--oif-blue); }
.system-icon {
    width: 78px; height: 78px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.5rem;
    color: white; font-size: 1.9rem;
    box-shadow: var(--shadow-lg);
    transition: transform var(--t-base);
    flex-shrink: 0;
}
.system-card:hover .system-icon { transform: scale(1.1) rotate(5deg); }
.system-card h3 { color: var(--oif-blue); font-size: 1.25rem; font-weight: 700; margin-bottom: 1rem; text-align: center; }
.system-card p  { color: var(--gray-600); font-size: .93rem; line-height: 1.6; text-align: center; flex-grow: 1; }
.system-list    { list-style: none; padding: 0; margin: 0; }
.system-list li { display: flex; align-items: center; gap: .5rem; margin-bottom: .6rem; font-size: .93rem; color: var(--gray-700); }

/* ── Step cards ────────────────────────────────────────────── */
.step-card {
    background: white;
    border-radius: var(--r-lg);
    padding: 2rem 1.5rem;
    padding-top: 2.5rem;
    height: 100%;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0,85,164,.09);
    transition: all var(--t-base);
    text-align: center;
    display: flex; flex-direction: column;
    position: relative;
    overflow: visible;
}
.step-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-xl); border-color: var(--oif-blue); }
.step-number-badge {
    position: absolute;
    top: -18px; left: 50%;
    transform: translateX(-50%);
    width: 38px; height: 38px;
    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: 1.1rem;
    box-shadow: var(--shadow-md);
    border: 3px solid white;
    z-index: 2;
}
.step-icon-wrapper {
    width: 68px; height: 68px;
    background: linear-gradient(135deg, var(--oif-blue-light), var(--oif-blue));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.3rem;
    color: white; font-size: 1.7rem;
    box-shadow: var(--shadow-md);
    flex-shrink: 0;
}
.step-card h3 { color: var(--oif-blue); font-size: 1.15rem; font-weight: 700; margin-bottom: .6rem; }
.step-card p  { color: var(--gray-600); font-size: .93rem; line-height: 1.5; margin: 0; flex-grow: 1; }

/* ── Period cards ──────────────────────────────────────────── */
.period-card {
    background: white;
    border-radius: var(--r-lg);
    overflow: hidden;
    height: 100%;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0,85,164,.09);
    transition: all var(--t-base);
    display: flex; flex-direction: column;
}
.period-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-xl); }
.period-header { padding: 1.4rem 1.5rem; color: white; text-align: center; }
.period-header.opening { background: linear-gradient(135deg, #4CAF50, #2E7D32); }
.period-header.closing { background: linear-gradient(135deg, #FF6B6B, #C2185B); }
.period-card.active .period-header { background: linear-gradient(135deg, var(--oif-blue), var(--oif-purple)); }
.period-header i { font-size: 1.8rem; margin-bottom: .5rem; display: block; }
.period-header h3 { color: white; margin: 0; font-size: 1.15rem; font-weight: 700; }
.period-body { padding: 1.5rem; text-align: center; flex-grow: 1; display: flex; flex-direction: column; justify-content: center; }
.period-date { font-size: 1.15rem; font-weight: 700; color: var(--oif-blue); margin-bottom: .2rem; }
.period-time { color: var(--gray-600); font-size: .9rem; }

/* ── Condition cards ───────────────────────────────────────── */
.conditions-grid { display: flex; flex-direction: column; gap: .9rem; }
.condition-card {
    background: white;
    border-radius: var(--r-lg);
    padding: 1.1rem 1.4rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,85,164,.09);
    display: flex; align-items: center; gap: 1.25rem;
    transition: all var(--t-base);
}
.condition-card:hover { box-shadow: var(--shadow-md); transform: translateX(5px); }
.condition-card.allowed     { border-left: 4px solid #4CAF50; }
.condition-card.not-allowed { border-left: 4px solid #F44336; }
.condition-icon i { font-size: 1.8rem; }
.condition-card.allowed     i { color: #4CAF50; }
.condition-card.not-allowed i { color: #F44336; }
.condition-card h4 { color: var(--oif-blue); margin-bottom: .2rem; font-size: 1rem; }
.condition-card p  { color: var(--gray-600); margin: 0; font-size: .92rem; }

/* ── Security cards ────────────────────────────────────────── */
.security-card {
    background: white;
    border-radius: var(--r-lg);
    padding: 1.4rem 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0,85,164,.09);
    display: flex; align-items: flex-start; gap: 1.1rem;
    transition: all var(--t-base); height: 100%;
}
.security-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-xl); border-color: var(--oif-blue); }
.security-icon {
    width: 48px; height: 48px;
    background: linear-gradient(135deg, var(--oif-blue-light), var(--oif-blue));
    border-radius: var(--r-md);
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1.2rem; flex-shrink: 0;
}
.security-card h4 { color: var(--oif-blue); margin-bottom: .4rem; font-size: 1rem; }
.security-card p  { color: var(--gray-600); margin: 0; font-size: .92rem; }

/* ── Jury ──────────────────────────────────────────────────── */
.jury-criteria { list-style: none; padding: 0; margin: 1.25rem 0; }
.jury-criteria li {
    display: flex; align-items: flex-start; gap: .9rem;
    margin-bottom: .85rem;
    padding: .6rem .9rem;
    background: var(--gray-100);
    border-radius: var(--r-md);
    transition: all var(--t-fast);
}
.jury-criteria li:hover { background: var(--oif-blue-faint); transform: translateX(5px); }
.jury-criteria li i { color: var(--oif-blue); font-size: 1rem; margin-top: .15rem; flex-shrink: 0; }
.jury-independence {
    background: linear-gradient(135deg, rgba(46,125,50,.09), rgba(76,175,80,.04));
    border-radius: var(--r-lg);
    padding: 1.8rem;
    text-align: center; height: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    border: 1px solid rgba(76,175,80,.3);
}
.jury-independence i { font-size: 2.8rem; color: var(--oif-green); margin-bottom: 1rem; }
.jury-independence h4 { color: var(--oif-green); margin-bottom: .8rem; }
.jury-independence p { color: var(--gray-700); margin: 0; font-size: .93rem; }

/* ── Timeline résultats (index) ────────────────────────────── */
.results-timeline {
    position: relative; max-width: 780px;
    margin: 0 auto; padding-left: 170px;
}
.results-timeline::before {
    content: ''; position: absolute;
    left: 152px; top: 0; bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--oif-pink), var(--oif-blue), var(--oif-green));
    border-radius: 3px;
}
.timeline-item { position: relative; margin-bottom: 2.5rem; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-date {
    position: absolute; left: -148px; top: 0;
    width: 132px;
    background: white; padding: .65rem .9rem;
    border-radius: var(--r-md);
    border: 2px solid var(--oif-blue);
    color: var(--oif-blue); font-weight: 700; font-size: .9rem;
    text-align: center; box-shadow: var(--shadow-sm); z-index: 2;
}
.timeline-content {
    background: white; border-radius: var(--r-lg);
    padding: 1.4rem; border: 1px solid rgba(0,85,164,.09);
    box-shadow: var(--shadow-sm); margin-left: 20px;
    transition: all var(--t-base);
}
.timeline-content:hover { box-shadow: var(--shadow-md); border-color: var(--oif-blue); }
.timeline-item.highlight .timeline-content { border-color: var(--oif-pink); }
.timeline-content h4 { color: var(--oif-blue); margin-bottom: .4rem; font-size: 1rem; }
.timeline-content p  { color: var(--gray-600); margin: 0; font-size: .93rem; }

/* ── Prize cards (index) ───────────────────────────────────── */
.prize-card {
    background: white; border-radius: var(--r-lg);
    padding: 2rem 1.5rem;
    box-shadow: var(--shadow-md); border: 1px solid rgba(0,85,164,.09);
    text-align: center; height: 100%;
    display: flex; flex-direction: column;
    transition: all var(--t-base); position: relative; overflow: hidden;
}
.prize-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-xl); }
.prize-rank {
    width: 68px; height: 68px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.5rem; color: white;
    font-size: 1.7rem; font-weight: 800; box-shadow: var(--shadow-lg);
    position: relative; z-index: 2;
}
.prize-card.gold   .prize-rank { background: linear-gradient(135deg, #FFD700, #FF9800); }
.prize-card.silver .prize-rank { background: linear-gradient(135deg, #C0C0C0, #757575); }
.prize-card.bronze .prize-rank { background: linear-gradient(135deg, #CD7F32, #8D6E63); }
.prize-card h4 { color: var(--oif-blue); margin-bottom: .8rem; font-size: 1.1rem; position: relative; z-index: 2; }
.prize-card p  { color: var(--gray-600); margin: 0; font-size: .95rem; flex-grow: 1; position: relative; z-index: 2; }

/* ── Récap card (index) ────────────────────────────────────── */
.recap-card { background: white; border-radius: var(--r-xxl); overflow: hidden; box-shadow: var(--shadow-xl); }
.recap-header {
    background: linear-gradient(135deg, var(--oif-blue), var(--oif-purple));
    padding: 2.8rem; text-align: center;
}
.recap-header h2 { color: white; font-size: 2rem; margin-bottom: .8rem; display: flex; align-items: center; justify-content: center; gap: .8rem; }
.recap-header p  { color: rgba(255,255,255,.88); font-size: 1.05rem; margin: 0; }
.recap-content {
    padding: 3rem;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 1.8rem;
}
.recap-item {
    display: flex; align-items: center; gap: 1.25rem;
    padding: .9rem; border-radius: var(--r-lg);
    transition: all var(--t-base);
}
.recap-item:hover { background: var(--gray-100); transform: translateX(5px); }
.recap-icon {
    width: 58px; height: 58px;
    background: linear-gradient(135deg, var(--oif-blue-light), var(--oif-blue));
    border-radius: var(--r-lg); display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1.4rem; flex-shrink: 0; box-shadow: var(--shadow-sm);
}
.recap-item h4 { color: var(--oif-blue); margin-bottom: .2rem; font-size: 1rem; }
.recap-item p  { color: var(--gray-600); margin: 0; font-size: .92rem; }
.recap-footer { background: var(--gray-100); padding: 1.8rem 3rem; text-align: center; border-top: 1px solid rgba(0,85,164,.09); }
.recap-footer p { color: var(--gray-700); margin: 0; font-size: .95rem; }

/* ── Process container (index) ─────────────────────────────── */
.process-container { margin-top: 4rem; padding: 2rem; background: white; border-radius: var(--r-xl); box-shadow: var(--shadow-md); }
.process-step { text-align: center; padding: 1rem; }
.process-step .step-number {
    width: 38px; height: 38px;
    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: 1.1rem; margin: 0 auto 1rem;
    box-shadow: var(--shadow-md);
}
.process-step .step-icon {
    width: 76px; height: 76px;
    background: linear-gradient(135deg, var(--oif-blue-light), var(--oif-blue));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1rem; color: white; font-size: 1.9rem;
    box-shadow: var(--shadow-lg);
}
.process-step h4 { color: var(--oif-blue); font-weight: 700; font-size: 1.05rem; margin: 0; }
.process-arrow { text-align: center; color: var(--oif-blue); }


/* ==============================================
   PARTIE 5 — PAGE VOTER.PHP (Voter pour un projet)
   ============================================== */

/* ── Barre de progression ──────────────────────────────────── */
.vote-progress-bar {
    background: linear-gradient(135deg, var(--oif-blue-dark), var(--oif-blue));
    padding: 1.1rem 0;
    position: sticky; top: 0; z-index: 100;
    box-shadow: 0 4px 20px rgba(0,85,164,.3);
}
.vpb-inner {
    display: flex; align-items: center;
    justify-content: center; gap: 2.5rem;
    flex-wrap: wrap;
}
.vpb-stat {
    display: flex; align-items: center; gap: .9rem; color: white;
}
.vpb-stat i { font-size: 1.4rem; opacity: .8; }
.vpb-number { display: block; font-size: 1.35rem; font-weight: 700; font-family: var(--font-heading); line-height: 1; }
.vpb-label  { display: block; font-size: .75rem; opacity: .8; }
.vpb-divider { width: 1px; height: 36px; background: rgba(255,255,255,.25); }

/* ── Voter section ─────────────────────────────────────────── */
.voter-section { background: var(--gray-50); }

/* ── Project cards ─────────────────────────────────────────── */
.project-card {
    background: white;
    border-radius: var(--r-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0,85,164,.08);
    transition: all var(--t-base);
    display: flex; flex-direction: column;
    height: 100%;
    /* Visible par defaut — JS active lanimation via body.js-scroll-ready */
    opacity: 1;
    transform: none;
}
body.js-scroll-ready .project-card { opacity: 0; transform: translateY(18px); }
body.js-scroll-ready .project-card.card-visible { opacity: 1; transform: none; }
.project-card:hover { transform: translateY(-6px) !important; box-shadow: var(--shadow-xl); border-color: rgba(0,85,164,.25); }
.project-card.card-highlighted {
    box-shadow: 0 0 0 3px var(--oif-blue), var(--shadow-xl);
    animation: popIn .5s ease-out;
}

/* Bandeau coloré */
.project-card-banner {
    height: 90px;
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 1.4rem;
    position: relative;
}
.project-card-icon {
    width: 52px; height: 52px;
    border-radius: 50%;
    background: rgba(255,255,255,.22);
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.project-card-number {
    font-family: var(--font-heading);
    font-size: 1.5rem; font-weight: 800;
    color: rgba(255,255,255,.35);
}

/* Corps */
.project-card-body { padding: 1.4rem; flex-grow: 1; display: flex; flex-direction: column; }
.project-category-badge {
    display: inline-block;
    background: var(--oif-blue-faint);
    color: var(--oif-blue);
    border-radius: var(--r-full);
    padding: .22rem .75rem;
    font-size: .78rem; font-weight: 600;
    margin-bottom: .65rem;
}
.project-title {
    font-family: var(--font-heading);
    font-size: 1.25rem; font-weight: 700;
    color: var(--gray-900); margin-bottom: .75rem;
}
.project-meta-row { display: flex; gap: 1rem; margin-bottom: .85rem; flex-wrap: wrap; }
.project-meta-item { display: flex; align-items: center; gap: .4rem; font-size: .82rem; color: var(--gray-600); }
.project-meta-item i { color: var(--oif-blue); font-size: .8rem; }
.project-description {
    color: var(--gray-700); font-size: .9rem; line-height: 1.55;
    flex-grow: 1; margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Footer */
.project-card-footer {
    padding: 1rem 1.4rem;
    border-top: 1px solid var(--gray-200);
    background: var(--gray-50);
    display: flex; align-items: center; justify-content: space-between; gap: .75rem;
}
.btn-details {
    background: none; border: 1.5px solid var(--oif-blue);
    color: var(--oif-blue); border-radius: var(--r-full);
    padding: .4rem 1rem; font-size: .85rem; font-weight: 600;
    cursor: pointer; transition: all var(--t-fast);
    display: flex; align-items: center; gap: .4rem;
    white-space: nowrap;
}
.btn-details:hover { background: var(--oif-blue); color: white; }
.project-footer-actions { display: flex; align-items: center; gap: .5rem; }
.btn-icon-action {
    width: 34px; height: 34px; border-radius: 50%;
    background: none; border: 1.5px solid var(--gray-300);
    color: var(--gray-500); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: .85rem; transition: all var(--t-fast);
}
.btn-icon-action:hover { border-color: var(--oif-blue); color: var(--oif-blue); background: var(--oif-blue-faint); }
.btn-vote {
    background: linear-gradient(135deg, var(--oif-green), #388E3C);
    color: white; border: none;
    border-radius: var(--r-full);
    padding: .4rem 1.1rem; font-size: .85rem; font-weight: 600;
    cursor: pointer; transition: all var(--t-fast);
    display: flex; align-items: center; gap: .4rem;
    white-space: nowrap;
}
.btn-vote:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(46,125,50,.4); }

/* ── Note importante ───────────────────────────────────────── */
.vote-important-note {
    background: linear-gradient(135deg, var(--oif-blue-faint), rgba(0,85,164,.04));
    border-top: 1px solid rgba(0,85,164,.12);
    border-bottom: 1px solid rgba(0,85,164,.12);
    padding: 1.2rem 0;
}
.vin-inner {
    display: flex; align-items: center; gap: 1rem;
    color: var(--gray-700); font-size: .93rem;
}
.vin-icon { font-size: 1.4rem; color: var(--oif-blue); flex-shrink: 0; }

/* ── Formulaire de vote ────────────────────────────────────── */
.vote-form-group { margin-bottom: 1.25rem; }
.vote-form-label {
    display: flex; align-items: center; gap: .4rem;
    font-weight: 600; color: var(--gray-800);
    margin-bottom: .4rem; font-size: .93rem;
}
.vote-form-label i { color: var(--oif-blue); font-size: .85rem; }
.required { color: var(--oif-pink); }
.optional  { color: var(--gray-500); font-weight: 400; font-size: .82rem; }
.vote-form-control {
    display: block; width: 100%;
    padding: .65rem 1rem;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--r-lg);
    font-family: var(--font-body); font-size: .93rem;
    color: var(--gray-900); background: white;
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.vote-form-control:focus {
    outline: none;
    border-color: var(--oif-blue);
    box-shadow: 0 0 0 3px rgba(0,85,164,.12);
}
.vote-form-control.is-invalid { border-color: #F44336; }
.form-hint { display: flex; align-items: center; gap: .35rem; color: var(--gray-500); font-size: .8rem; margin-top: .35rem; }
.form-hint i { color: var(--oif-blue); }
.invalid-feedback { color: #F44336; font-size: .8rem; margin-top: .3rem; display: none; }
.is-invalid ~ .invalid-feedback { display: block; }

/* Checkbox consentement */
.vote-consent {
    display: flex; align-items: flex-start; gap: .75rem;
    padding: 1rem; background: var(--gray-50);
    border-radius: var(--r-lg); border: 1px solid var(--gray-200);
    margin-bottom: .5rem;
}
.vote-consent input[type="checkbox"] { margin-top: .2rem; flex-shrink: 0; width: 16px; height: 16px; }
.vote-consent label { font-size: .88rem; color: var(--gray-700); margin: 0; cursor: pointer; }
.vote-consent input.is-invalid ~ label { color: #F44336; }

/* ── Modale succès ─────────────────────────────────────────── */
.vote-modal-success-body { padding: 2.5rem; text-align: center; }
.success-animation { margin-bottom: 1.5rem; }
.success-circle {
    width: 80px; height: 80px; border-radius: 50%;
    background: linear-gradient(135deg, var(--oif-green), #388E3C);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto;
    color: white; font-size: 2rem;
    animation: popIn .6s ease-out;
    box-shadow: 0 6px 24px rgba(46,125,50,.4);
}
.success-title { font-family: var(--font-heading); font-size: 1.5rem; color: var(--oif-blue); margin-bottom: .75rem; font-weight: 700; }
.success-message { color: var(--gray-700); margin-bottom: 1rem; }
.success-hint { display: flex; align-items: center; gap: .6rem; justify-content: center; color: var(--gray-500); font-size: .88rem; }
.success-hint i { color: var(--oif-blue); }

/* ── Toast partage ─────────────────────────────────────────── */
.vote-toast {
    background: white;
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-xl);
    padding: .85rem 1.2rem;
    border: 1px solid var(--gray-200);
    pointer-events: auto;
    opacity: 0; transition: opacity .3s ease;
    transform: translateY(10px); transition: opacity .3s ease, transform .3s ease;
}
.vote-toast.show { opacity: 1; transform: none; }
.vote-toast-body { display: flex; align-items: center; gap: .5rem; font-size: .92rem; color: var(--gray-800); }

/* ── Modale détails projet ─────────────────────────────────── */
.projet-detail-body { display: flex; flex-direction: column; gap: 1.4rem; }
.pdb-meta-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.pdb-meta-badge {
    background: var(--gray-100); color: var(--gray-700);
    border-radius: var(--r-full); padding: .28rem .85rem;
    font-size: .8rem; font-weight: 500;
    display: flex; align-items: center; gap: .35rem;
}
.pdb-meta-badge i { color: var(--oif-blue); font-size: .75rem; }
.pdb-badge-cat { background: var(--oif-blue-faint); color: var(--oif-blue); }
.pdb-section-title {
    font-size: 1rem; font-weight: 700; color: var(--oif-blue);
    margin-bottom: .6rem;
    display: flex; align-items: center; gap: .5rem;
}
.pdb-section-title i { font-size: .9rem; }
.pdb-section p { color: var(--gray-700); font-size: .92rem; line-height: 1.55; margin: 0; }
.pdb-highlight {
    border-radius: var(--r-lg); padding: 1.1rem 1.3rem;
    height: 100%;
}
.pdb-highlight h4 { font-size: .93rem; font-weight: 700; margin-bottom: .5rem; display: flex; align-items: center; gap: .4rem; }
.pdb-highlight p  { font-size: .88rem; line-height: 1.5; margin: 0; }
.pdb-highlight-problem { background: rgba(255,152,0,.07); border: 1px solid rgba(255,152,0,.2); }
.pdb-highlight-problem h4 { color: #E65100; }
.pdb-highlight-problem p  { color: var(--gray-700); }
.pdb-highlight-solution { background: rgba(76,175,80,.07); border: 1px solid rgba(76,175,80,.2); }
.pdb-highlight-solution h4 { color: var(--oif-green); }
.pdb-highlight-solution p  { color: var(--gray-700); }
.membres-grid { display: flex; flex-direction: column; gap: .65rem; }
.membre-item { display: flex; align-items: center; gap: .85rem; }
.membre-avatar {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--oif-blue-faint);
    color: var(--oif-blue);
    display: flex; align-items: center; justify-content: center;
    font-size: .9rem; flex-shrink: 0;
}
.membre-nom  { font-weight: 600; font-size: .9rem; color: var(--gray-900); }
.membre-role { font-size: .8rem; color: var(--gray-500); }


/* ==============================================
   PARTIE 6 — PAGE RESULTATS.PHP
   ============================================== */

/* ── Barre stats ───────────────────────────────────────────── */
.res-stats-bar {
    background: linear-gradient(135deg, var(--oif-blue-dark), var(--oif-blue));
    padding: 1.1rem 0;
    box-shadow: 0 4px 20px rgba(0,85,164,.3);
}
.rsb-inner {
    display: flex; align-items: center;
    justify-content: center; gap: 3rem;
    flex-wrap: wrap;
}
.rsb-stat { text-align: center; color: white; }
.rsb-value { display: block; font-size: 1.5rem; font-weight: 800; font-family: var(--font-heading); line-height: 1; }
.rsb-label { display: block; font-size: .75rem; opacity: .78; margin-top: .2rem; }
.rsb-divider { width: 1px; height: 40px; background: rgba(255,255,255,.22); }

/* ── Section podium ────────────────────────────────────────── */
.podium-section { background: linear-gradient(180deg, var(--gray-50), white); }
.podium-wrapper {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Carte podium commune */
.podium-card {
    background: white;
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    display: flex; flex-direction: column;
    flex: 1; min-width: 240px; max-width: 300px;
    position: relative;
    transition: transform var(--t-base);
}
.podium-card:hover { transform: translateY(-6px); }

/* Couronnes */
.podium-crown {
    position: absolute; top: -18px; left: 50%;
    transform: translateX(-50%);
    width: 38px; height: 38px;
    background: linear-gradient(135deg, #C0C0C0, #757575);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1rem;
    box-shadow: 0 3px 12px rgba(0,0,0,.25);
    z-index: 10;
}
.podium-crown-gold { background: linear-gradient(135deg, #FFD700, #FF9800); }
.podium-first .podium-crown { width: 44px; height: 44px; font-size: 1.2rem; top: -22px; }

/* Header coloré */
.podium-card-header {
    height: 90px;
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 1.25rem;
    margin-top: 22px;
}
.podium-first .podium-card-header { height: 100px; margin-top: 28px; }
.podium-proj-icon {
    width: 50px; height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,.22);
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1.4rem;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.podium-rank-badge {
    font-family: var(--font-heading);
    font-size: 2rem; font-weight: 800;
    color: rgba(255,255,255,.35);
}
.podium-rank-gold { color: rgba(255,215,0,.5); }

/* Corps de carte podium */
.podium-card-body { padding: 1.3rem; flex-grow: 1; }
.podium-card-body h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem; font-weight: 700;
    color: var(--gray-900); margin-bottom: .25rem;
}
.podium-equipe { color: var(--gray-500); font-size: .82rem; margin-bottom: .9rem; }
.podium-laureat-badge {
    display: inline-flex; align-items: center; gap: .4rem;
    background: linear-gradient(135deg, var(--oif-gold), #FF9800);
    color: white; border-radius: var(--r-full);
    padding: .25rem .8rem; font-size: .78rem; font-weight: 700;
    margin-bottom: .9rem;
    box-shadow: 0 2px 8px rgba(255,152,0,.4);
}
.podium-score-display { display: flex; align-items: baseline; gap: .2rem; margin-bottom: .7rem; }
.podium-score-value { font-family: var(--font-heading); font-size: 2.2rem; font-weight: 800; color: var(--oif-blue); line-height: 1; }
.podium-score-gold  { color: #E65100; }
.podium-score-max   { font-size: .9rem; color: var(--gray-400); }
.podium-score-breakdown { display: flex; gap: .6rem; flex-wrap: wrap; }
.psb-item {
    display: flex; flex-direction: column;
    background: var(--gray-100); border-radius: var(--r-md);
    padding: .3rem .6rem; flex: 1;
}
.psb-label { font-size: .72rem; color: var(--gray-500); }
.psb-value { font-size: .9rem; font-weight: 700; }
.psb-vote .psb-value { color: var(--oif-blue); }
.psb-jury .psb-value { color: var(--oif-pink); }

/* Pilier podium */
.podium-pillar {
    background: linear-gradient(135deg, var(--gray-200), var(--gray-300));
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: .2rem; padding: .8rem;
    border-top: 2px solid var(--gray-300);
}
.podium-pillar span { font-family: var(--font-heading); font-weight: 800; color: var(--gray-600); font-size: 1.1rem; }
.podium-prize { font-size: .78rem; font-weight: 600; color: var(--oif-green); }
.podium-pillar-1 { background: linear-gradient(135deg, #FFF8E1, #FFE082); border-top-color: #FFD700; min-height: 70px; }
.podium-pillar-1 span { color: #E65100; }
.podium-pillar-2 { min-height: 55px; }
.podium-pillar-3 { min-height: 42px; }
.podium-first { order: 2; }
.podium-second { order: 1; }
.podium-third  { order: 3; }

/* ── Section classement ────────────────────────────────────── */
.classement-section { background: var(--gray-50); }
.classement-table-wrapper {
    background: white;
    border-radius: var(--r-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0,85,164,.08);
    margin-bottom: 2rem;
}

/* En-tête tableau */
.ct-header {
    display: grid;
    grid-template-columns: 60px 1fr 1fr 1fr 110px 60px;
    gap: 1rem;
    padding: .9rem 1.5rem;
    background: linear-gradient(135deg, var(--oif-blue-dark), var(--oif-blue));
    align-items: center;
}
.ct-header .ct-col {
    color: rgba(255,255,255,.85);
    font-size: .78rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: .05em;
}
.ct-header small { display: block; opacity: .7; font-size: .7rem; text-transform: none; letter-spacing: 0; }

/* Lignes tableau */
.ct-row {
    display: grid;
    grid-template-columns: 60px 1fr 1fr 1fr 110px 60px;
    gap: 1rem;
    padding: 1.1rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    align-items: center;
    transition: background var(--t-fast);
}
.ct-row:last-child { border-bottom: none; }
.ct-row:hover { background: var(--gray-50); }
.ct-row-laureat { background: linear-gradient(90deg, rgba(0,85,164,.025), transparent); }
.ct-row-laureat:hover { background: linear-gradient(90deg, rgba(0,85,164,.05), transparent); }

/* Rang */
.ct-rank-badge {
    width: 34px; height: 34px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: .85rem; font-weight: 700;
    background: var(--gray-200); color: var(--gray-600);
}
.ct-rank-1 { background: linear-gradient(135deg, #FFD700, #FF9800); color: white; box-shadow: 0 3px 10px rgba(255,152,0,.4); }
.ct-rank-2 { background: linear-gradient(135deg, #C0C0C0, #757575); color: white; }
.ct-rank-3 { background: linear-gradient(135deg, #CD7F32, #8D6E63); color: white; }

/* Projet */
.ct-projet-info { display: flex; align-items: center; gap: .85rem; }
.ct-proj-icon {
    width: 38px; height: 38px; border-radius: 50%;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: .9rem;
    box-shadow: var(--shadow-sm);
}
.ct-proj-nom    { font-weight: 700; font-size: .95rem; color: var(--gray-900); }
.ct-proj-equipe { font-size: .78rem; color: var(--gray-500); }

/* Score blocks */
.ct-score-block {}
.ct-score-numbers { display: flex; align-items: baseline; gap: .5rem; margin-bottom: .3rem; }
.ct-raw { font-weight: 700; font-size: .92rem; color: var(--gray-800); }
.ct-pts { font-size: .78rem; color: var(--gray-500); }
.ct-pct { font-size: .72rem; color: var(--gray-500); margin-top: .2rem; }

/* Barres */
.ct-bar-track {
    height: 6px; border-radius: var(--r-full);
    background: var(--gray-200); overflow: hidden;
}
.ct-bar-fill {
    height: 100%; border-radius: var(--r-full);
    transition: width 1s cubic-bezier(.4,0,.2,1);
}
.ct-bar-vote { background: linear-gradient(90deg, var(--oif-blue), var(--oif-blue-light)); }
.ct-bar-jury { background: linear-gradient(90deg, var(--oif-pink), var(--oif-pink-light)); }

/* Score final */
.ct-final-score { display: flex; align-items: baseline; gap: .15rem; }
.ct-final-value {
    font-family: var(--font-heading);
    font-size: 1.5rem; font-weight: 800; line-height: 1;
    color: var(--oif-blue);
}
.ct-final-max  { font-size: .8rem; color: var(--gray-400); }
.ct-final-1 .ct-final-value { color: #E65100; }
.ct-final-2 .ct-final-value { color: var(--gray-600); }
.ct-final-3 .ct-final-value { color: #8D6E63; }

/* Bouton détail */
.ct-detail-btn {
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--oif-blue-faint); border: 1.5px solid rgba(0,85,164,.2);
    color: var(--oif-blue); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: .85rem; transition: all var(--t-fast);
}
.ct-detail-btn:hover { background: var(--oif-blue); color: white; box-shadow: var(--shadow-sm); }

/* ── Méthodologie ──────────────────────────────────────────── */
.methodo-note {
    background: var(--oif-blue-faint);
    border-radius: var(--r-lg);
    padding: 1.1rem 1.5rem;
    border: 1px solid rgba(0,85,164,.15);
    margin-bottom: 1.5rem;
}
.mn-inner { display: flex; align-items: center; gap: 1rem; color: var(--gray-700); font-size: .9rem; }
.mn-icon  { font-size: 1.4rem; color: var(--oif-blue); flex-shrink: 0; }

/* ── Téléchargements ───────────────────────────────────────── */
.res-downloads { display: flex; gap: 1rem; flex-wrap: wrap; }
.res-dl-btn {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .6rem 1.3rem;
    background: linear-gradient(135deg, var(--oif-blue), var(--oif-blue-dark));
    color: white; border-radius: var(--r-full);
    font-size: .88rem; font-weight: 600;
    text-decoration: none; transition: all var(--t-fast);
    border: none; cursor: pointer;
}
.res-dl-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: white; }
.res-dl-btn-outline {
    background: transparent;
    border: 1.5px solid var(--oif-blue);
    color: var(--oif-blue);
}
.res-dl-btn-outline:hover { background: var(--oif-blue); color: white; }

/* ── Modale détail score ───────────────────────────────────── */
.score-detail-modal { display: flex; flex-direction: column; gap: 1.5rem; }
.sdm-breakdown { display: flex; flex-direction: column; gap: .75rem; }
.sdm-item {
    display: flex; align-items: center; gap: 1rem;
    padding: .85rem 1.1rem;
    border-radius: var(--r-lg);
    border: 1px solid var(--gray-200);
    background: var(--gray-50);
}
.sdm-icon {
    width: 38px; height: 38px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; color: white; flex-shrink: 0;
}
.sdm-vote .sdm-icon { background: linear-gradient(135deg, var(--oif-blue), var(--oif-blue-light)); }
.sdm-jury .sdm-icon { background: linear-gradient(135deg, var(--oif-pink), var(--oif-pink-light)); }
.sdm-info { display: flex; flex-direction: column; flex: 1; }
.sdm-label { font-size: .8rem; color: var(--gray-500); }
.sdm-value { font-size: 1.1rem; font-weight: 700; color: var(--gray-900); }
.sdm-total {
    display: flex; align-items: center; justify-content: space-between;
    padding: .9rem 1.1rem;
    background: linear-gradient(135deg, var(--oif-blue), var(--oif-blue-dark));
    border-radius: var(--r-lg); color: white;
}
.sdm-total-label { font-weight: 600; font-size: .9rem; }
.sdm-total-value { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 800; }


/* ==============================================
   PARTIE 7 — RESPONSIVE
   ============================================== */

@media (max-width: 991.98px) {
    .section { padding: 4rem 0; }
    .section-header { margin-bottom: 2.75rem; }
    .ct-header,
    .ct-row { grid-template-columns: 50px 1fr 1fr 80px 44px; }
    .ct-jury { display: none; }
    .results-timeline { padding-left: 0; }
    .results-timeline::before { left: 28px; }
    .timeline-date { position: relative; left: 0; width: auto; display: inline-block; margin-bottom: .9rem; margin-left: 52px; }
    .timeline-content { margin-left: 52px; }
    .vote-ratio { flex-direction: column; gap: 1.5rem; }
    .ratio-symbol { display: none; }
    .recap-content { padding: 2rem; }
    .podium-wrapper { gap: 1rem; }
    .podium-card { min-width: 200px; }
}

@media (max-width: 767.98px) {
    .section { padding: 3rem 0; }
    .vpb-inner, .rsb-inner { gap: 1.5rem; }
    .vpb-divider, .rsb-divider { display: none; }
    .ct-header,
    .ct-row { grid-template-columns: 44px 1fr 90px 44px; }
    .ct-votes { display: none; }
    .ct-proj-equipe { display: none; }
    .podium-first { order: 0; }
    .podium-second, .podium-third { order: 1; }
    .podium-card { max-width: 100%; min-width: unset; }
    .podium-wrapper { flex-direction: column; align-items: stretch; }
    .podium-card { border-radius: var(--r-xl); }
    .podium-pillar { min-height: 42px !important; }
    .cta-buttons { flex-direction: column; align-items: center; }
    .cta-buttons .btn { width: 100%; max-width: 280px; }
    .project-card-footer { flex-wrap: wrap; }
    .recap-content { grid-template-columns: 1fr; padding: 1.5rem; }
    .condition-card { flex-direction: column; text-align: center; gap: .75rem; }
}

@media (max-width: 575.98px) {
    .section-header h2 { font-size: 1.6rem; }
    .ct-header,
    .ct-row { grid-template-columns: 40px 1fr 90px; }
    .ct-action { display: none; }
    .ct-final-value { font-size: 1.2rem; }
    .res-downloads { flex-direction: column; }
    .res-dl-btn { justify-content: center; }
}


/* ==============================================
   PARTIE 8 — IMPRESSION
   ============================================== */

@media print {
    .hero-section, .cta-section { background: white !important; color: black !important; min-height: auto !important; padding: 2rem 0 !important; }
    .vote-progress-bar, .res-stats-bar { display: none !important; }
    .cta-buttons, .btn-vote, .btn-details, .ct-detail-btn { display: none !important; }
    .project-card, .system-card, .step-card { box-shadow: none !important; border: 1px solid #ddd !important; page-break-inside: avoid; }
    .ct-row-laureat { background: #f9f9f9 !important; }
}


/* ==============================================
   FIN DU FICHIER — assets/css/vote.css
   ============================================== */