:root {
    /* Charte officielle vibrante et chaleureuse "Oxygène pour Busigny" */
    --color-primary: #00873E;
    /* Vert municipal éclatant */
    --color-primary-dark: #00662E;
    /* Vert foncé au survol */
    --color-primary-light: #EBF7EE;
    /* Vert doux pour badges/fonds */
    --color-secondary: #0077CC;
    /* Bleu dynamique */
    --color-secondary-dark: #005FA3;
    --color-secondary-light: #EBF5FF;
    /* Bleu doux */
    --color-accent: #F59E0B;
    /* Jaune soleil / Ambre chaleureux */
    --color-accent-light: #FEF3C7;
    /* Jaune doré doux */
    --color-accent-dark: #D97706;
    --color-coral: #F43F5E;
    /* Touche rose-corail pour les coeurs / votes */
    --color-background: #F1F4F9;
    /* Fond moderne et soigné, légèrement bleuté */
    --color-surface: #FFFFFF;
    /* Blanc pur */
    --color-text: #0F172A;
    /* Bleu nuit profond */
    --color-text-muted: #475569;
    /* Gris ardoise élégant */
    --color-border: #E2E8F0;
    --color-error: #EF4444;
    --color-success: #10B981;
    --color-gray: #CBD5E1;

    --gradient-primary: linear-gradient(135deg, #00873E 0%, #05A34E 100%);
    --gradient-secondary: linear-gradient(135deg, #0077CC 0%, #0EA5E9 100%);
    --gradient-accent: linear-gradient(135deg, #F59E0B 0%, #FBBF24 100%);
    --gradient-municipal: linear-gradient(90deg, #00873E 0%, #0077CC 50%, #F59E0B 100%);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-xl: 32px;

    --shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 8px 22px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 16px 36px rgba(15, 23, 42, 0.12);
    --shadow-hover: 0 14px 28px -4px rgba(0, 135, 62, 0.22);
}

html {
    scroll-behavior: smooth;
}

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

body {
    font-family: 'Nunito', 'Segoe UI', system-ui, sans-serif;
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header & Nav */
.site-header {
    background: linear-gradient(135deg, #00873E 0%, #0077CC 100%);
    box-shadow: 0 4px 18px rgba(0, 119, 204, 0.2);
    padding: 0.9rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

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

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: transform 0.2s ease;
}

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

.logo-title {
    font-family: 'Outfit', 'Montserrat', system-ui, sans-serif;
    font-size: 1.65rem;
    font-weight: 900;
    color: #FFFFFF;
    line-height: 1;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
}

.logo-title .logo-photos {
    color: #FDE047;
    font-weight: 700;
    letter-spacing: -0.2px;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a:not(.btn) {
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: color 0.2s;
    position: relative;
}

.nav-links a:not(.btn):hover {
    color: #FDE047;
}

/* Boutons dans le header */
.site-header .btn-primary {
    background: #FFFFFF;
    color: #0077CC;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-weight: 800;
}

.site-header .btn-primary:hover {
    background: #F8FAFC;
    color: #005FA3;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.site-header .btn-outline {
    background: rgba(255, 255, 255, 0.12);
    border: 2px solid rgba(255, 255, 255, 0.85);
    color: #FFFFFF;
    backdrop-filter: blur(4px);
}

.site-header .btn-outline:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: #FFFFFF;
    color: #FFFFFF;
    transform: translateY(-2px);
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 2.5rem 0 4rem 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.3rem;
    border-radius: var(--radius-md);
    font-weight: 800;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all 0.25s ease;
    font-family: inherit;
    font-size: 0.95rem;
}

.btn-lg {
    padding: 0.85rem 1.8rem;
    font-size: 1.05rem;
    border-radius: 16px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 14px rgba(0, 135, 62, 0.35);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #007736 0%, #00873E 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    color: white;
}

.btn-secondary {
    background: var(--gradient-secondary);
    color: white;
    box-shadow: 0 4px 14px rgba(0, 119, 204, 0.35);
}

.btn-secondary:hover {
    filter: brightness(0.95);
    transform: translateY(-2px);
    color: white;
}

.btn-accent {
    background: var(--gradient-accent);
    color: #78350F;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.btn-accent:hover {
    transform: translateY(-2px);
    filter: brightness(0.95);
}

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

.btn-outline:hover {
    background-color: var(--color-primary-light);
    transform: translateY(-2px);
}

.btn-white {
    background: #FFFFFF;
    color: var(--color-primary);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.btn-white:hover {
    background: #F8FAFC;
    color: var(--color-primary-dark);
    transform: translateY(-2px);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    color: #FFFFFF;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.35);
    color: #FFFFFF;
    transform: translateY(-2px);
}

/* Forms */
.form-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 2.2rem;
    box-shadow: var(--shadow-md);
    max-width: 550px;
    margin: 0 auto;
    border: 1px solid var(--color-border);
}

/* Barre de filtres d'administration pleine largeur */
.admin-filter-bar {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 1.1rem 1.6rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    margin-bottom: 2rem;
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    box-sizing: border-box;
}

.admin-filter-pills {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    flex-wrap: wrap;
}

.admin-filter-pills .btn {
    padding: 0.45rem 1rem;
    font-size: 0.88rem;
    white-space: nowrap;
    border-radius: 999px;
    font-weight: 700;
}

.admin-filter-contest {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}

.admin-filter-contest label {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--color-text-muted);
    white-space: nowrap;
}

.admin-filter-contest select {
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text);
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s ease;
}

.admin-filter-contest select:focus {
    border-color: var(--color-primary);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--color-text);
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1.5px solid var(--color-gray);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.2s;
    background-color: #FAFAFA;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    background-color: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(0, 135, 62, 0.15);
}

/* Flash Messages */
.alert {
    padding: 1.1rem 1.4rem;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-success {
    background-color: #ECFDF5;
    color: #065F46;
    border-left: 5px solid var(--color-success);
}

.alert-error {
    background-color: #FEF2F2;
    color: #991B1B;
    border-left: 5px solid var(--color-error);
}

/* =========================================
   HERO BANNER PANORAMIQUE (Accueil)
========================================= */
.hero-banner {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: 3.5rem;
    background: var(--color-surface);
}

.hero-banner-media {
    position: relative;
    height: 420px;
    width: 100%;
    overflow: hidden;
}

.hero-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
    display: block;
    filter: saturate(1.08) contrast(1.02);
}

.hero-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(15, 23, 42, 0.1) 0%,
            rgba(15, 23, 42, 0.45) 35%,
            rgba(15, 23, 42, 0.9) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 3rem;
    color: #FFFFFF;
}

.hero-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    color: var(--color-primary);
    font-weight: 800;
    font-size: 0.85rem;
    width: fit-content;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
}

.hero-badge-pill span {
    color: var(--color-secondary);
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.15;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 100%;
    /*720px;*/
    line-height: 1.55;
    margin-bottom: 1.75rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

/* =========================================
   CONCOURS EN VEDETTE (Spotlight Card)
========================================= */
.spotlight-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 4rem;
    border: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
}

.spotlight-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.open {
    background: var(--color-primary-light);
    color: var(--color-primary);
}

.status-badge.voting {
    background: var(--color-secondary-light);
    color: var(--color-secondary);
}

.status-badge.published {
    background: var(--color-accent-light);
    color: var(--color-accent-dark);
}

.spotlight-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: 0.75rem;
}

.spotlight-desc {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.75rem;
}

.spotlight-meta-chips {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-background);
    /*padding: 0.5rem 1rem;*/
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-text);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.meta-chip strong {
    color: var(--color-primary);
}

/* =========================================
   SECTION "COMMENT ÇA MARCHE ?" (3 Étapes)
========================================= */
.section-intro {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-secondary);
    background: var(--color-secondary-light);
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    margin-bottom: 0.5rem;
}

.section-heading {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: 0.5rem;
    letter-spacing: -0.3px;
}

.section-subtext {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    max-width: 620px;
    margin: 0 auto;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.75rem;
    margin-bottom: 4rem;
}

.step-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 2.2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

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

.step-icon-wrap {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.25rem;
}

.guide-step-1 .step-icon-wrap {
    background: var(--color-primary-light);
    color: var(--color-primary);
}

.guide-step-2 .step-icon-wrap {
    background: var(--color-secondary-light);
    color: var(--color-secondary);
}

.guide-step-3 .step-icon-wrap {
    background: var(--color-accent-light);
    color: var(--color-accent-dark);
}

.step-tag {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-muted);
    margin-bottom: 0.3rem;
}

.step-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: 0.75rem;
}

.step-desc {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.55;
}

/* =========================================
   BANNIÈRE COMMUNAUTAIRE "L'ESPRIT DU PROJET"
========================================= */
.community-banner {
    background: linear-gradient(135deg, #00873E 0%, #0077CC 100%);
    border-radius: var(--radius-lg);
    padding: 2.8rem;
    color: #FFFFFF;
    box-shadow: var(--shadow-lg);
    margin-bottom: 4rem;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2.5rem;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.community-content h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.community-content p {
    font-size: 1.1rem;
    opacity: 0.92;
    line-height: 1.55;
}

.community-perks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.perk-pill {
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 0.9rem 1.1rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

/* Footer */
.site-footer {
    background-color: var(--color-surface);
    padding: 2.5rem 0;
    text-align: center;
    color: var(--color-text-muted);
    border-top: 1px solid var(--color-border);
    margin-top: auto;
}

.site-footer p {
    font-size: 0.95rem;
    font-weight: 600;
}

.site-footer a {
    color: var(--color-secondary);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s;
}

.site-footer a:hover {
    color: var(--color-primary);
}

/* =========================================
   EN-TÊTE DYNAMIQUE DE GALERIE DE CONCOURS
========================================= */
.contest-gallery-header {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 2.25rem 2.5rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 2.5rem;
    border: 1px solid var(--color-border);
    border-top: 6px solid var(--color-primary);
    position: relative;
    overflow: hidden;
}

.contest-gallery-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(180deg, rgba(0, 135, 62, 0.04) 0%, transparent 100%);
    pointer-events: none;
}

.contest-gallery-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.contest-gallery-title {
    font-size: 2.4rem;
    font-family: 'Outfit', 'Nunito', sans-serif;
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: 0.75rem;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.contest-gallery-desc {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 850px;
}

.contest-gallery-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.contest-gallery-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding-top: 1.25rem;
    border-top: 1px solid var(--color-border);
}

/* =========================================
   UI de Vote (Coeur), Galerie et Cards
========================================= */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 1.75rem;
    margin-top: 1.5rem;
}

.photo-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    display: flex;
    flex-direction: column;
}

.photo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
    border-color: var(--color-primary);
}

.photo-thumb-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #0F172A;
    /* Fond neutre sombre cinéma élégant, jamais de gris terne */
    overflow: hidden;
    cursor: zoom-in;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.photo-thumb-container:hover .photo-thumb-img {
    transform: scale(1.05);
}

.photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.15) 0%, rgba(15, 23, 42, 0.5) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
    backdrop-filter: blur(2px);
}

.photo-thumb-container:hover .photo-overlay {
    opacity: 1;
}

.btn-zoom-hint {
    background: rgba(255, 255, 255, 0.95);
    color: #0F172A;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    transform: translateY(6px);
    transition: transform 0.25s ease;
}

.photo-thumb-container:hover .btn-zoom-hint {
    transform: translateY(0);
}

/* Compatibilité classe .photo-img directe */
.photo-img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: #0F172A;
    cursor: zoom-in;
    display: block;
    transition: transform 0.35s ease;
}

.photo-details {
    padding: 1.15rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    background: var(--color-surface);
}

.photo-title {
    font-weight: 700;
    font-size: 1.1rem;
    flex: 1;
    color: var(--color-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* =========================================
   LIGHTBOX MODAL (Visualisation Plein Écran)
========================================= */
.lightbox-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.lightbox-modal.is-active {
    display: flex;
    opacity: 1;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 15, 29, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: pointer;
}

.lightbox-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 95vw;
    max-height: 94vh;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.lightbox-content>* {
    pointer-events: auto;
}

.lightbox-btn-close {
    position: absolute;
    top: -0.5rem;
    right: -0.5rem;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    backdrop-filter: blur(6px);
}

.lightbox-btn-close:hover {
    background: rgba(239, 68, 68, 0.85);
    border-color: #EF4444;
    transform: scale(1.08) rotate(90deg);
}

.lightbox-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    backdrop-filter: blur(6px);
}

.lightbox-nav-btn:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: -0.5rem;
}

.lightbox-next {
    right: -0.5rem;
}

.lightbox-image-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    min-height: 0;
    padding: 0.5rem 0;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 72vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    user-select: none;
    -webkit-user-select: none;
    transition: opacity 0.2s ease, transform 0.25s ease;
}

.lightbox-spinner {
    position: absolute;
    width: 44px;
    height: 44px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: #FFFFFF;
    border-radius: 50%;
    animation: lightboxSpin 0.8s linear infinite;
    display: none;
}

@keyframes lightboxSpin {
    to {
        transform: rotate(360deg);
    }
}

.lightbox-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    max-width: 820px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.9rem 1.5rem;
    border-radius: var(--radius-lg);
    color: #FFFFFF;
    margin-top: 0.5rem;
}

.lightbox-counter {
    font-size: 0.8rem;
    font-weight: 700;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.2rem;
}

.lightbox-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0;
    color: #FFFFFF;
    line-height: 1.2;
}

.lightbox-desc {
    font-size: 0.92rem;
    color: #CBD5E1;
    margin-top: 0.35rem;
    line-height: 1.45;
}

.lightbox-actions .btn-vote {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.lightbox-actions .btn-vote:hover:not(:disabled) {
    background: rgba(244, 63, 94, 0.2);
    border-color: var(--color-coral);
    color: #FECDD3;
}

.lightbox-actions .btn-vote.voted {
    background: rgba(244, 63, 94, 0.9);
    border-color: var(--color-coral);
    color: #FFFFFF;
}

.lightbox-actions .btn-vote.voted svg {
    fill: #FFFFFF;
    stroke: #FFFFFF;
}

/* Bouton Coeur */
.btn-vote {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    color: var(--color-text-muted);
    transition: transform 0.2s ease;
    padding: 0.5rem;
}

.btn-vote svg {
    width: 28px;
    height: 28px;
    transition: fill 0.3s ease, stroke 0.3s ease, transform 0.2s;
}

.btn-vote:hover:not(:disabled) svg {
    transform: scale(1.15);
    stroke: var(--color-coral);
}

.btn-vote.voted svg {
    fill: var(--color-coral);
    stroke: var(--color-coral);
    animation: heartBurst 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-vote:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.btn-vote.voted:disabled {
    opacity: 1;
}

@keyframes heartBurst {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.4);
    }

    100% {
        transform: scale(1);
    }
}

/* Toast de notification */
#toast-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: var(--color-surface);
    color: var(--color-text);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    font-weight: 700;
    animation: slideUp 0.3s ease forwards;
    border-left: 5px solid var(--color-primary);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* =========================================
   Animations du Podium
========================================= */
.podium-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 1.5rem;
    height: 450px;
    margin: 4rem auto;
    max-width: 800px;
}

.podium-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 30%;
    position: relative;
}

.podium-step {
    width: 100%;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: center;
    padding-top: 1.25rem;
    color: white;
    font-size: 2.8rem;
    line-height: 1;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    box-shadow: inset 0 4px 6px rgba(255, 255, 255, 0.3), var(--shadow-lg);
    animation: riseUp 0.5s ease-out forwards;
    transform-origin: bottom;
}

@keyframes riseUp {
    from {
        transform: scaleY(0);
    }

    to {
        transform: scaleY(1);
    }
}

.podium-step.step-1 {
    height: 200px;
    background: linear-gradient(135deg, #FFD700, #FDB931);
    z-index: 3;
    padding-top: 1.5rem;
}

.podium-step.step-2 {
    height: 140px;
    background: linear-gradient(135deg, #E0E0E0, #9E9E9E);
    z-index: 2;
    padding-top: 1.2rem;
}

.podium-step.step-3 {
    height: 95px;
    background: linear-gradient(135deg, #CD7F32, #A0522D);
    z-index: 1;
    padding-top: 0.75rem;
}

.podium-winner {
    text-align: center;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    animation: popWinner 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.delay-3 {
    animation-delay: 0.4s;
}

.delay-2 {
    animation-delay: 1.1s;
}

.delay-1 {
    animation-delay: 1.8s;
}

@keyframes popWinner {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.podium-img {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--color-surface);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
    margin-bottom: 0.8rem;
    background: var(--color-gray);
}

.podium-col:nth-child(2) .podium-img {
    width: 150px;
    height: 150px;
    border: 6px solid #FFD700;
}

.podium-name {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--color-text);
    margin-bottom: 0.2rem;
}

.podium-votes {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-primary);
    background: var(--color-surface);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    display: inline-block;
    box-shadow: var(--shadow-sm);
}

/* Responsive */
@media (max-width: 900px) {
    .community-banner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 0.85rem;
        text-align: center;
    }

    .main-content {
        padding: 1.5rem 0 3rem 0;
    }

    /* Hero Banner Mobile */
    .hero-banner {
        margin-bottom: 2.5rem;
    }

    .hero-banner-media {
        height: auto;
        min-height: 440px;
        position: relative;
    }

    .hero-banner-img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center 30%;
    }

    .hero-banner-overlay {
        position: relative;
        min-height: 440px;
        padding: 1.75rem 1.25rem;
        justify-content: center;
        background: linear-gradient(180deg,
                rgba(15, 23, 42, 0.25) 0%,
                rgba(15, 23, 42, 0.6) 40%,
                rgba(15, 23, 42, 0.92) 100%);
    }

    .hero-badge-pill {
        font-size: 0.75rem;
        padding: 0.35rem 0.8rem;
        margin-bottom: 0.75rem;
    }

    .hero-title {
        font-size: 1.65rem;
        line-height: 1.25;
        margin-bottom: 0.6rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        line-height: 1.45;
        margin-bottom: 1.25rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.65rem;
    }

    .hero-actions .btn {
        width: 100%;
        padding: 0.75rem 1.2rem;
        font-size: 0.95rem;
        justify-content: center;
    }

    /* Section titres en mobile */
    .section-heading {
        font-size: 1.6rem;
        line-height: 1.25;
    }

    .section-subtext {
        font-size: 0.95rem;
    }

    .spotlight-card {
        padding: 1.5rem;
    }

    .spotlight-title {
        font-size: 1.5rem;
        line-height: 1.25;
    }

    .spotlight-meta-chips {
        gap: 0.5rem;
    }

    .meta-chip {
        font-size: 0.85rem;
        padding: 0.4rem 0.75rem;
        width: 100%;
    }

    .community-banner {
        padding: 1.75rem;
        gap: 1.5rem;
    }

    .community-content h3 {
        font-size: 1.5rem;
    }

    .community-content p {
        font-size: 0.95rem;
    }

    .community-perks {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .podium-container {
        gap: 0.5rem;
        height: 350px;
    }

    .podium-img {
        width: 80px;
        height: 80px;
    }

    .podium-col:nth-child(2) .podium-img {
        width: 110px;
        height: 110px;
    }

    .podium-name {
        font-size: 0.9rem;
    }

    .podium-step {
        font-size: 2.2rem;
        line-height: 1;
    }

    .podium-step.step-1 {
        height: 160px;
        padding-top: 1.2rem;
    }

    .podium-step.step-2 {
        height: 115px;
        padding-top: 0.8rem;
    }

    .podium-step.step-3 {
        height: 75px;
        padding-top: 0.35rem;
    }

}

/* Contact Page Desktop (Base) */
.contact-grid {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 2rem;
    align-items: start;
}

.contact-info-card {
    background: var(--color-surface);
    padding: 2.2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}

.contact-form-card {
    margin: 0;
    max-width: 100%;
}

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

    /* Contact Page Mobile : Formulaire en premier pleine largeur, Infos en dessous */
    .contact-grid {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        width: 100%;
    }

    .contact-form-card {
        order: 1;
        width: 100%;
        max-width: 100%;
    }

    .contact-info-card {
        order: 2;
        width: 100%;
        max-width: 100%;
        padding: 1.75rem;
    }

    /* Galerie Concours sur Mobile */
    .contest-gallery-header {
        padding: 1.5rem 1.25rem;
        margin-bottom: 1.75rem;
    }

    .contest-gallery-title {
        font-size: 1.85rem;
    }

    .contest-gallery-desc {
        font-size: 0.98rem;
    }

    .contest-gallery-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .contest-gallery-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .photo-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    /* Lightbox sur Mobile */
    .lightbox-modal {
        padding: 0.5rem;
    }

    .lightbox-img {
        max-height: 58vh;
        max-width: 96vw;
    }

    .lightbox-btn-close {
        top: 0.5rem;
        right: 0.5rem;
        width: 40px;
        height: 40px;
    }

    .lightbox-nav-btn {
        width: 42px;
        height: 42px;
    }

    .lightbox-prev {
        left: 0.25rem;
    }

    .lightbox-next {
        right: 0.25rem;
    }

    .lightbox-footer {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.75rem 1rem;
        gap: 0.75rem;
        max-height: 25vh;
        overflow-y: auto;
    }

    .lightbox-actions {
        width: 100%;
    }

    .lightbox-actions .btn-vote {
        width: 100%;
        justify-content: center;
    }

    /* Barre de filtres Admin sur Mobile */
    .admin-filter-bar {
        flex-direction: column;
        align-items: stretch;
        padding: 1.15rem;
        gap: 1rem;
    }

    .admin-filter-pills {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.35rem;
        gap: 0.5rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .admin-filter-pills::-webkit-scrollbar {
        display: none;
    }

    .admin-filter-pills .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.82rem;
        flex-shrink: 0;
    }

    .admin-filter-contest {
        width: 100%;
        justify-content: space-between;
    }

    .admin-filter-contest select {
        flex: 1;
        width: 100%;
    }
}