/**
 * Collecto - Design Écolo & Épuré
 * CSS Responsive : Mobile First
 */

/* ==========================================
   VARIABLES
   ========================================== */
:root {
    --co-primary: #2E7D32;
    --co-primary-dark: #1B5E20;
    --co-primary-light: #81C784;
    --co-secondary: #FFC107;
    --co-gray: #6B7280;
    --co-gray-light: #F3F4F6;
    --co-white: #FFFFFF;
    --co-black: #1F2937;
    --co-danger: #EF4444;
    --co-success: #10B981;
    
    --co-bg: #F0FDF4;
    --co-card: #FFFFFF;
    --co-text: #1F2937;
    --co-text-light: #6B7280;
    --co-border: #E5E7EB;
    
    --co-radius: 16px;
    --co-radius-sm: 10px;
    --co-shadow: 0 4px 20px rgba(0,0,0,0.08);
    --co-shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    
    --co-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Animations */
    --co-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --co-transition-fast: all 0.15s ease;
    --co-transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mode sombre */
.dark-mode {
    --co-bg: #111827;
    --co-card: #1F2937;
    --co-text: #F9FAFB;
    --co-text-light: #9CA3AF;
    --co-border: #374151;
    --co-gray-light: #374151;
}

/* ==========================================
   RESET & BASE
   ========================================== */
.collecto-app * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.collecto-app {
    font-family: var(--co-font);
    background: var(--co-bg);
    color: var(--co-text);
    min-height: 100vh;
    line-height: 1.6;
    padding-bottom: 80px;
}

/* ==========================================
   PAGES
   ========================================== */
.collecto-page {
    display: none;
    opacity: 0;
}

.collecto-page.active {
    display: block;
    animation: pageSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

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

.collecto-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* ==========================================
   PAGE PRÉSENTATION
   ========================================== */
#page-presentation {
    min-height: 100vh;
    background: linear-gradient(180deg, var(--co-primary) 0%, #1B5E20 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
}

.presentation-container {
    max-width: 500px;
    width: 100%;
    text-align: center;
}

.presentation-header {
    margin-bottom: 30px;
}

.presentation-logo {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.presentation-logo img {
    max-width: 60px;
    max-height: 60px;
}

.presentation-logo span {
    font-size: 40px;
}

.presentation-header h1 {
    color: white;
    font-size: 32px;
    margin: 0 0 8px 0;
}

.presentation-subtitle {
    color: rgba(255,255,255,0.9);
    font-size: 16px;
    margin: 0;
}

.presentation-intro {
    background: rgba(255,255,255,0.15);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 25px;
    backdrop-filter: blur(10px);
}

.presentation-intro h2 {
    color: white;
    font-size: 20px;
    margin: 0 0 10px 0;
}

.presentation-intro p {
    color: rgba(255,255,255,0.95);
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
}

.presentation-features {
    text-align: left;
    margin-bottom: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 10px;
}

.feature-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.feature-text {
    flex: 1;
}

.feature-text strong {
    display: block;
    color: white;
    font-size: 15px;
    margin-bottom: 2px;
}

.feature-text span {
    color: rgba(255,255,255,0.8);
    font-size: 13px;
}

.btn-entrer-app {
    width: 100%;
    background: white;
    color: var(--co-primary);
    border: none;
    border-radius: 14px;
    padding: 18px 30px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-entrer-app:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.btn-entrer-app:active {
    transform: scale(0.98);
}

.btn-arrow {
    font-size: 22px;
}

.presentation-note {
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    margin-top: 20px;
}

/* ==========================================
   HERO (Page Accueil)
   ========================================== */
.collecto-hero {
    background: linear-gradient(135deg, var(--co-primary) 0%, var(--co-primary-dark) 100%);
    color: white;
    padding: 50px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='20' cy='20' r='2' fill='%23ffffff' opacity='0.1'/%3E%3Ccircle cx='80' cy='40' r='3' fill='%23ffffff' opacity='0.1'/%3E%3Ccircle cx='40' cy='80' r='2' fill='%23ffffff' opacity='0.1'/%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-logo-link {
    text-decoration: none;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.hero-logo-link h1 {
    color: white;
}

.hero-logo-link:hover {
    opacity: 0.9;
}

.hero-icon {
    font-size: 60px;
    margin-bottom: 15px;
}

.hero-icon img {
    max-width: 80px;
    max-height: 60px;
}

.collecto-hero h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.hero-subtitle {
    opacity: 0.9;
    font-size: 14px;
}

/* ==========================================
   CARD SÉLECTION COMMUNE
   ========================================== */
.collecto-card-select {
    background: var(--co-card);
    border-radius: var(--co-radius);
    padding: 30px 25px;
    margin: -40px 20px 25px;
    position: relative;
    z-index: 10;
    box-shadow: var(--co-shadow-lg);
    text-align: center;
}

.select-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.collecto-card-select h2 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--co-text);
}

.collecto-select-big {
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    border: 2px solid var(--co-border);
    border-radius: var(--co-radius-sm);
    background: var(--co-card);
    color: var(--co-text);
    appearance: none;
    cursor: pointer;
    margin-bottom: 15px;
}

.collecto-select-big:focus {
    outline: none;
    border-color: var(--co-primary);
}

.btn-geoloc {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: transparent;
    border: 2px solid var(--co-primary);
    color: var(--co-primary);
    border-radius: var(--co-radius-sm);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-geoloc:hover {
    background: var(--co-primary);
    color: white;
}

/* ==========================================
   MENU PRINCIPAL
   ========================================== */
.collecto-menu {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0 20px 20px;
}

.menu-card {
    background: var(--co-card);
    border: none;
    border-radius: var(--co-radius);
    padding: 25px 15px;
    text-align: center;
    cursor: pointer;
    transition: var(--co-transition);
    box-shadow: var(--co-shadow);
    position: relative;
    overflow: hidden;
    animation: cardAppear 0.5s ease backwards;
}

.menu-card:nth-child(1) { animation-delay: 0.1s; }
.menu-card:nth-child(2) { animation-delay: 0.2s; }
.menu-card:nth-child(3) { animation-delay: 0.3s; }
.menu-card:nth-child(4) { animation-delay: 0.4s; }

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

.menu-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: 0.5s;
}

.menu-card:hover::before {
    left: 100%;
}

.menu-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--co-shadow-lg), 0 0 20px rgba(46, 125, 50, 0.2);
}

.menu-card:active {
    transform: translateY(-2px) scale(0.98);
}

.menu-icon {
    font-size: 36px;
    display: block;
    margin-bottom: 10px;
    transition: var(--co-transition);
}

.menu-card:hover .menu-icon {
    transform: scale(1.2) rotate(-5deg);
}

.menu-title {
    display: block;
    font-weight: 600;
    font-size: 16px;
    color: var(--co-text);
    margin-bottom: 4px;
}

.menu-desc {
    display: block;
    font-size: 12px;
    color: var(--co-text-light);
}

/* ==========================================
   PAGE HEADER
   ========================================== */
.page-header {
    background: var(--co-primary);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.page-header.eco {
    background: linear-gradient(135deg, var(--co-primary) 0%, #388E3C 100%);
}

.btn-back {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-back:hover {
    background: rgba(255,255,255,0.3);
}

.header-title h1 {
    font-size: 20px;
    font-weight: 600;
}

.header-commune {
    font-size: 13px;
    opacity: 0.9;
}

/* ==========================================
   ALERTES
   ========================================== */
.alert-box {
    background: #FEF3C7;
    border: 1px solid #F59E0B;
    border-radius: var(--co-radius-sm);
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
}

.alert-box p {
    margin-bottom: 15px;
    color: #92400E;
}

/* ==========================================
   BOUTONS
   ========================================== */
.btn-primary {
    background: linear-gradient(135deg, var(--co-primary) 0%, var(--co-primary-dark) 100%);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: var(--co-radius-sm);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--co-transition);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
}

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

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.4);
}

.btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 10px rgba(46, 125, 50, 0.3);
}

.btn-block {
    width: 100%;
    display: block;
}

.btn-secondary {
    background: var(--co-gray-light);
    color: var(--co-text);
    border: none;
    padding: 12px 24px;
    border-radius: var(--co-radius-sm);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--co-transition);
}

.btn-secondary:hover {
    background: var(--co-border);
    transform: translateY(-2px);
}

.btn-nav {
    background: var(--co-gray-light);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    transition: var(--co-transition);
}

.btn-nav:hover {
    background: var(--co-border);
    transform: scale(1.1);
}

/* ==========================================
   CALENDRIER
   ========================================== */
.section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--co-text);
    margin-bottom: 15px;
}

.collectes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 25px;
}

.collecte-card {
    background: var(--co-card);
    border-radius: var(--co-radius-sm);
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--co-shadow);
    transition: var(--co-transition);
    animation: collecteAppear 0.4s ease backwards;
}

.collecte-card:nth-child(1) { animation-delay: 0.1s; }
.collecte-card:nth-child(2) { animation-delay: 0.2s; }

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

.collecte-card:hover {
    transform: scale(1.02);
    box-shadow: var(--co-shadow-lg);
}

.collecte-icon {
    font-size: 28px;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.collecte-info strong {
    display: block;
    font-size: 14px;
    color: var(--co-text);
}

.collecte-info span {
    font-size: 12px;
    color: var(--co-text-light);
}

.calendar-card {
    background: var(--co-card);
    border-radius: var(--co-radius);
    padding: 25px;
    box-shadow: var(--co-shadow);
    margin-bottom: 20px;
    animation: fadeIn 0.5s ease;
}

.calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.calendar-nav span {
    font-weight: 600;
    font-size: 20px;
    text-transform: capitalize;
}

/* ========== NOUVEAU CALENDRIER ========== */
.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    margin-bottom: 10px;
    padding: 0 5px;
}

.calendar-weekdays .weekday {
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--co-primary);
    text-transform: uppercase;
    padding: 8px 0;
    background: rgba(46, 125, 50, 0.1);
    border-radius: 8px;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    padding: 0 5px;
}

.calendar-days .day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 500;
    border-radius: 12px;
    background: #f8f9fa;
    position: relative;
    cursor: default;
    min-height: 48px;
    transition: var(--co-transition);
    animation: dayAppear 0.3s ease backwards;
}

/* Animation en cascade pour les jours */
.calendar-days .day:nth-child(7n+1) { animation-delay: 0.02s; }
.calendar-days .day:nth-child(7n+2) { animation-delay: 0.04s; }
.calendar-days .day:nth-child(7n+3) { animation-delay: 0.06s; }
.calendar-days .day:nth-child(7n+4) { animation-delay: 0.08s; }
.calendar-days .day:nth-child(7n+5) { animation-delay: 0.10s; }
.calendar-days .day:nth-child(7n+6) { animation-delay: 0.12s; }
.calendar-days .day:nth-child(7n+7) { animation-delay: 0.14s; }

@keyframes dayAppear {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.calendar-days .day:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    z-index: 2;
}

.calendar-days .day .day-number {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.calendar-days .day.other-month {
    opacity: 0.25;
}

.calendar-days .day.other-month:hover {
    transform: none;
    box-shadow: none;
}

.calendar-days .day.today {
    background: var(--co-primary);
    animation: todayPulse 2s ease-in-out infinite;
}

@keyframes todayPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(46, 125, 50, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(46, 125, 50, 0); }
}

.calendar-days .day.today .day-number {
    color: #fff;
    font-weight: 700;
}

/* Badges de collecte */
.day-badges {
    display: flex;
    gap: 3px;
    margin-top: 4px;
}

.day-badges .badge-jaune {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #FFC107;
    border: 2px solid #F57F17;
}

.day-badges .badge-gris {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #616161;
    border: 2px solid #424242;
}

/* Jour avec collecte jaune uniquement */
.calendar-days .day.collecte-jaune {
    background: linear-gradient(135deg, #FFF8E1 0%, #FFECB3 100%);
    border: 2px solid #FFC107;
}

.calendar-days .day.collecte-jaune .day-number {
    color: #E65100;
}

/* Jour avec collecte gris uniquement */
.calendar-days .day.collecte-gris {
    background: linear-gradient(135deg, #ECEFF1 0%, #CFD8DC 100%);
    border: 2px solid #616161;
}

.calendar-days .day.collecte-gris .day-number {
    color: #37474F;
}

/* Jour férié - bordure rouge */
.calendar-days .day.ferie {
    border: 3px solid #E53935 !important;
    position: relative;
}

/* Jour férié AVEC collecte - bordure rouge visible */
.calendar-days .day.ferie.collecte-jaune,
.calendar-days .day.ferie.collecte-gris {
    border: 3px solid #E53935 !important;
    box-shadow: inset 0 0 0 2px rgba(229, 57, 53, 0.2);
}

/* Indicateur rouge pour jour férié (toujours visible) */
.calendar-days .day.ferie::before {
    content: '⚠️';
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 12px;
    z-index: 10;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

.calendar-days .day .ferie-indicator {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 8px;
    height: 8px;
    background: #E53935;
    border-radius: 50%;
}

/* Ancien CSS conservé pour compatibilité */
.calendar-header {
    display: none;
}

.calendar-grid {
    /* Conteneur du calendrier - affiché */
}

.calendar-day {
    display: none;
}

.calendar-legend {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.calendar-legend span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--co-text-light);
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
}

.dot.jaune { background: #FEF3C7; border: 1px solid #F59E0B; }
.dot.gris { background: #6B7280; }
.dot.ferie { background: var(--co-danger); }

/* ==========================================
   TOOLTIP CALENDRIER
   ========================================== */
.day-tooltip {
    position: fixed;
    background: #fff;
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    pointer-events: none;
    min-width: 180px;
    max-width: 250px;
    border: 1px solid #e5e7eb;
}

.day-tooltip.visible {
    opacity: 1;
    visibility: visible;
}

.tooltip-header {
    font-weight: 700;
    font-size: 15px;
    color: var(--co-primary);
    margin-bottom: 2px;
}

.tooltip-date {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.tooltip-saint {
    font-size: 13px;
    color: #444;
    margin-bottom: 4px;
}

.tooltip-ferie {
    font-size: 13px;
    color: #E53935;
    font-weight: 600;
    margin-bottom: 4px;
    padding: 4px 8px;
    background: #FFEBEE;
    border-radius: 6px;
}

.tooltip-collectes {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #eee;
}

.tooltip-badge {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
}

.tooltip-badge.jaune {
    background: #FFC107;
    color: #000;
}

.tooltip-badge.gris {
    background: #616161;
    color: #fff;
}

/* Mode sombre */
.dark-mode .day-tooltip {
    background: #1F2937;
    border-color: #374151;
}

.dark-mode .tooltip-header {
    color: #81C784;
}

.dark-mode .tooltip-date {
    color: #9CA3AF;
    border-color: #374151;
}

.dark-mode .tooltip-saint {
    color: #E5E7EB;
}

.dark-mode .tooltip-collectes {
    border-color: #374151;
}

/* ==========================================
   EXPORT
   ========================================== */
.export-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.export-label {
    font-size: 14px;
    color: var(--co-text-light);
}

.export-buttons {
    display: flex;
    gap: 10px;
}

.btn-export {
    padding: 10px 16px;
    background: var(--co-card);
    border: 1px solid var(--co-border);
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-export:hover {
    background: var(--co-gray-light);
}

/* ==========================================
   FORMULAIRE
   ========================================== */
.form-card {
    background: var(--co-card);
    border-radius: var(--co-radius);
    padding: 30px 25px;
    box-shadow: var(--co-shadow);
}

.form-intro {
    text-align: center;
    margin-bottom: 25px;
}

.form-icon {
    font-size: 50px;
    margin-bottom: 10px;
}

.form-intro p {
    color: var(--co-text-light);
}

.form-intro-details {
    font-size: 12px;
    color: #888 !important;
    margin-top: 5px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--co-text);
    margin-bottom: 8px;
}

/* Override pour la checkbox RGPD */
.form-group.rgpd-consent label.checkbox-label {
    display: flex;
    flex-direction: row;
    font-weight: normal;
    margin-bottom: 0;
}

.form-select,
.form-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    border: 2px solid var(--co-border);
    border-radius: var(--co-radius-sm);
    background: var(--co-card);
    color: var(--co-text);
}

.form-select:focus,
.form-input:focus {
    outline: none;
    border-color: var(--co-primary);
}

/* Sélecteur de communes multi-choix */
.communes-selector {
    max-height: 280px;
    overflow-y: auto;
    padding: 10px;
    border: 2px solid var(--co-border);
    border-radius: var(--co-radius-sm);
    background: var(--co-card);
}

.secteur-group {
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    background: white;
}

.secteur-group:last-child {
    margin-bottom: 0;
}

.secteur-header {
    background: linear-gradient(135deg, #f8fdf8 0%, #e8f5e9 100%);
    padding: 10px 12px;
    border-bottom: 1px solid #e0e0e0;
}

.secteur-name {
    font-weight: 600;
    font-size: 13px;
    color: var(--co-primary);
}

.secteur-communes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 10px;
}

.commune-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 2px solid var(--co-border);
    border-radius: var(--co-radius-sm);
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 12px;
}

.commune-checkbox:hover {
    border-color: var(--co-primary-light);
    background: #f8fff8;
}

.commune-checkbox input {
    width: 16px;
    height: 16px;
    accent-color: var(--co-primary);
    cursor: pointer;
}

.commune-checkbox input:checked + .commune-name {
    color: var(--co-primary);
    font-weight: 600;
}

.commune-checkbox:has(input:checked) {
    border-color: var(--co-primary);
    background: #DCFCE7;
}

.label-hint {
    font-weight: normal;
    font-size: 12px;
    color: var(--co-text-light);
}

@media (max-width: 500px) {
    .secteur-communes {
        grid-template-columns: 1fr;
    }
}

.bac-selector,
.delay-selector {
    display: flex;
    gap: 10px;
}

.bac-btn,
.delay-btn {
    flex: 1;
    padding: 14px;
    border: 2px solid var(--co-border);
    border-radius: var(--co-radius-sm);
    background: var(--co-card);
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.bac-btn input,
.delay-btn input {
    display: none;
}

.bac-btn.selected,
.delay-btn.selected {
    border-color: var(--co-primary);
    background: #DCFCE7;
}

/* Toggle Notifications Push */
.notifications-push-group {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed var(--co-border);
}

.notification-toggle {
    background: var(--co-gray-light);
    border-radius: var(--co-radius-sm);
    padding: 15px;
}

.switch-label {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
}

.switch-label input {
    display: none;
}

.switch-slider-container {
    position: relative;
    flex-shrink: 0;
}

.switch-slider {
    display: block;
    width: 50px;
    height: 28px;
    background: #ccc;
    border-radius: 28px;
    transition: var(--co-transition);
    position: relative;
}

.switch-slider::before {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: white;
    top: 3px;
    left: 3px;
    transition: var(--co-transition);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.switch-label input:checked + .switch-slider {
    background: var(--co-primary);
}

.switch-label input:checked + .switch-slider::before {
    transform: translateX(22px);
}

.switch-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--co-text);
    flex: 1;
}

.notification-info {
    margin-top: 10px;
    margin-left: 65px;
    font-size: 12px;
    color: #666;
}

/* Bandeau Notifications Push (page accueil) */
.bandeau-notifications {
    margin: 20px 15px;
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    border-radius: var(--co-radius);
    padding: 15px;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.bandeau-notif-content {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
}

.bandeau-notif-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.bandeau-notif-text {
    flex: 1;
    min-width: 0;
}

.bandeau-notif-text strong {
    display: block;
    font-size: 14px;
    margin-bottom: 2px;
}

.bandeau-notif-text small {
    font-size: 12px;
    opacity: 0.9;
}

.btn-activer-notif {
    background: white;
    color: #f57c00;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    flex-shrink: 0;
    transition: var(--co-transition);
}

.btn-activer-notif:hover {
    transform: scale(1.05);
}

.btn-activer-notif.active {
    background: #4CAF50;
    color: white;
}

.btn-fermer-bandeau {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    flex-shrink: 0;
    transition: var(--co-transition);
}

.btn-fermer-bandeau:hover {
    background: rgba(255,255,255,0.3);
}

.form-email-preferences {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.form-email-preferences > div {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-email-preferences input[type="email"] {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
}

.form-email-preferences button {
    width: 100%;
    padding: 12px 20px;
    background: white;
    color: #f57c00;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
}

/* Bouton Notifications Page Accueil */
.notifications-promo-box {
    padding: 0 15px;
}

.notif-promo-card {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    border-radius: var(--co-radius);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
}

.notif-promo-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.notif-promo-content {
    flex: 1;
}

.notif-promo-content strong {
    display: block;
    font-size: 15px;
    margin-bottom: 2px;
}

.notif-promo-content small {
    font-size: 12px;
    opacity: 0.9;
}

.btn-notif-activer {
    background: white;
    color: #f57c00;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--co-transition);
    flex-shrink: 0;
}

.btn-notif-activer:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn-notif-activer.activated {
    background: #4CAF50;
    color: white;
}

.btn-notif-activer:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.notif-status {
    text-align: center;
    padding: 10px;
    margin-top: 10px;
    border-radius: var(--co-radius-sm);
    font-size: 13px;
}

.notif-status.success {
    background: #e8f5e9;
    color: #2e7d32;
}

.notif-status.error {
    background: #ffebee;
    color: #c62828;
}

.success-box {
    text-align: center;
    padding: 30px;
}

.success-icon {
    font-size: 60px;
    margin-bottom: 15px;
}

.success-box h3 {
    color: var(--co-success);
    margin-bottom: 10px;
}

/* ==========================================
   GUIDE TRI
   ========================================== */
.tri-grid {
    display: grid;
    gap: 20px;
}

.tri-card {
    background: var(--co-card);
    border-radius: var(--co-radius);
    overflow: hidden;
    box-shadow: var(--co-shadow);
}

.tri-header {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.tri-card.jaune .tri-header { background: #FEF3C7; }
.tri-card.gris .tri-header { background: #E5E7EB; }
.tri-card.verre .tri-header { background: #DCFCE7; }
.tri-card.textiles .tri-header { background: #FCE7F3; }
.tri-card.dechetterie .tri-header { background: #DBEAFE; }

/* Avertissement tri */
.tri-warning {
    background: #FEF3C7;
    border: 1px solid #F59E0B;
    border-radius: 12px;
    padding: 15px 20px;
    margin-top: 20px;
    font-size: 14px;
    line-height: 1.5;
    color: #92400E;
}

.tri-warning strong {
    color: #B45309;
}

.tri-icon {
    font-size: 30px;
}

.tri-header h3 {
    font-size: 16px;
    margin: 0;
}

.tri-header small {
    font-size: 12px;
    color: var(--co-text-light);
}

.tri-content {
    padding: 20px;
}

.tri-list {
    margin-bottom: 15px;
}

.tri-list strong {
    display: block;
    font-size: 13px;
    margin-bottom: 8px;
}

.tri-list.ok strong { color: var(--co-success); }
.tri-list.no strong { color: var(--co-danger); }

.tri-list ul {
    list-style: none;
    padding-left: 0;
}

.tri-list li {
    padding: 4px 0;
    font-size: 14px;
    color: var(--co-text-light);
}

.tri-tip {
    background: #FEF3C7;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 13px;
}

/* ==========================================
   CONTACT
   ========================================== */
.contact-card {
    background: var(--co-card);
    border-radius: var(--co-radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--co-shadow);
    margin-bottom: 20px;
}

.contact-icon {
    font-size: 50px;
    margin-bottom: 15px;
}

.contact-card h2 {
    font-size: 20px;
    margin-bottom: 5px;
}

.contact-card > p {
    color: var(--co-text-light);
    margin-bottom: 25px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background: var(--co-gray-light);
    border-radius: var(--co-radius-sm);
    text-decoration: none;
    color: var(--co-text);
    font-weight: 500;
    transition: background 0.2s;
}

.contact-item:hover {
    background: var(--co-border);
}

.contact-item-icon {
    font-size: 20px;
}

.contact-hours {
    padding-top: 20px;
    border-top: 1px solid var(--co-border);
}

.contact-hours strong {
    display: block;
    margin-bottom: 5px;
}

.contact-hours p {
    color: var(--co-text-light);
    font-size: 14px;
}

.sectors-card {
    background: var(--co-card);
    border-radius: var(--co-radius);
    padding: 25px;
    box-shadow: var(--co-shadow);
}

.sectors-card h3 {
    font-size: 16px;
    margin-bottom: 20px;
}

.sectors-list {
    display: grid;
    gap: 12px;
}

.sector-item {
    padding: 12px 15px;
    background: var(--co-gray-light);
    border-radius: 8px;
}

.sector-item strong {
    display: block;
    font-size: 14px;
    margin-bottom: 3px;
}

.sector-item small {
    font-size: 12px;
    color: var(--co-text-light);
}

/* ==========================================
   DÉCHETTERIES
   ========================================== */
.dechetteries-section {
    background: var(--co-card);
    border-radius: var(--co-radius);
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: var(--co-shadow);
}

.dechetteries-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--co-text);
}

.dechetterie-card {
    background: var(--co-gray-light);
    border-radius: var(--co-radius-sm);
    padding: 15px;
    margin-bottom: 15px;
}

.dechetterie-card:last-of-type {
    margin-bottom: 0;
}

.dechetterie-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 5px;
}

.dechetterie-header strong {
    font-size: 15px;
    color: var(--co-text);
}

.dechetterie-tel {
    font-size: 13px;
    color: var(--co-primary);
    text-decoration: none;
    font-weight: 500;
}

.dechetterie-tel:hover {
    text-decoration: underline;
}

.dechetterie-address {
    font-size: 13px;
    color: var(--co-text-light);
    margin-bottom: 10px;
}

.dechetterie-hours {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.hours-season {
    background: var(--co-card);
    padding: 10px;
    border-radius: 8px;
}

.hours-season strong {
    display: block;
    font-size: 12px;
    margin-bottom: 5px;
    color: var(--co-text);
}

.hours-season p {
    font-size: 12px;
    color: var(--co-text-light);
    line-height: 1.4;
    margin: 0;
}

.dechetterie-info {
    background: #FEF3C7;
    border-radius: var(--co-radius-sm);
    padding: 15px;
    margin-top: 15px;
    text-align: center;
}

.dechetterie-info p {
    margin: 0;
    font-size: 14px;
    color: #92400E;
}

/* Tableau des horaires */
.horaires-card {
    background: var(--co-card);
    border-radius: var(--co-radius-sm);
    padding: 20px;
    margin-top: 15px;
    border: 1px solid var(--co-border);
}

.horaires-card h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: var(--co-text);
}

.horaires-note {
    font-size: 13px;
    color: var(--co-text-light);
    margin: 0 0 15px 0;
}

.horaires-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.horaires-table th,
.horaires-table td {
    padding: 10px 8px;
    text-align: center;
    border-bottom: 1px solid var(--co-border);
}

.horaires-table th {
    background: var(--co-gray-light);
    font-weight: 600;
    font-size: 13px;
}

.horaires-table th small {
    display: block;
    font-weight: 400;
    font-size: 11px;
    color: var(--co-text-light);
    margin-top: 2px;
}

.horaires-table td:first-child {
    text-align: left;
    font-weight: 500;
}

.horaires-table tr.highlight {
    background: #DCFCE7;
}

.horaires-table tr.closed {
    background: #FEE2E2;
    color: #991B1B;
}

.horaires-table tr.closed td {
    font-weight: 500;
}

@media (max-width: 500px) {
    .horaires-table {
        font-size: 12px;
    }
    
    .horaires-table th,
    .horaires-table td {
        padding: 8px 5px;
    }
    
    .horaires-table th small {
        font-size: 10px;
    }
}

@media (max-width: 500px) {
    .dechetterie-hours {
        grid-template-columns: 1fr;
    }
    
    .dechetterie-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ==========================================
   DECHETTERIES
   ========================================== */
.dechetteries-section {
    margin-top: 25px;
}

.dechetteries-section h3 {
    font-size: 16px;
    margin-bottom: 15px;
}

.dechetterie-card {
    background: var(--co-card);
    border-radius: var(--co-radius-sm);
    padding: 15px;
    margin-bottom: 12px;
    box-shadow: var(--co-shadow);
}

.dechetterie-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 8px;
}

.dechetterie-header strong {
    font-size: 15px;
}

.dechetterie-tel {
    font-size: 13px;
    color: var(--co-primary);
    text-decoration: none;
    background: #DCFCE7;
    padding: 4px 10px;
    border-radius: 15px;
}

.dechetterie-address {
    font-size: 13px;
    color: var(--co-text-light);
    margin-bottom: 12px;
}

.dechetterie-hours {
    background: var(--co-gray-light);
    border-radius: 8px;
    padding: 10px 12px;
}

.hours-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    font-size: 13px;
}

.hours-row:not(:last-child) {
    border-bottom: 1px solid var(--co-border);
}

.hours-days {
    font-weight: 500;
    color: var(--co-text);
}

.hours-time {
    color: var(--co-primary);
    font-weight: 600;
}

.hours-time small {
    font-weight: 400;
    color: var(--co-text-light);
}

.dechetterie-info {
    background: #FEF3C7;
    border-radius: var(--co-radius-sm);
    padding: 15px;
    margin-top: 15px;
    text-align: center;
}

.dechetterie-info p {
    margin: 0;
    font-size: 13px;
    color: #92400E;
}

/* ==========================================
   FAB (Floating Action Buttons)
   ========================================== */
.fab {
    position: fixed;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    box-shadow: var(--co-shadow-lg);
    transition: all 0.3s;
    z-index: 100;
}

.fab:hover {
    transform: scale(1.1);
}

.fab-dark {
    right: 20px;
    bottom: 150px;
    background: var(--co-card);
    font-size: 22px;
}

.fab-dark .icon-dark { display: none; }
.dark-mode .fab-dark .icon-light { display: none; }
.dark-mode .fab-dark .icon-dark { display: block; }

.fab-chat {
    right: 20px;
    bottom: 90px;
    background: var(--co-primary);
    color: white;
    font-size: 24px;
}

/* ==========================================
   BANDEAU FLASH INFOS
   ========================================== */

.flash-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    display: none;
    padding: 8px 15px;
    background: rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.flash-banner.visible {
    display: block;
    animation: flashBannerIn 0.5s ease;
}

@keyframes flashBannerIn {
    from { 
        transform: translateY(-100%); 
        opacity: 0; 
    }
    to { 
        transform: translateY(0); 
        opacity: 1; 
    }
}

.flash-item {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    gap: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15), 0 0 0 1px rgba(255,255,255,0.1) inset;
    max-width: 900px;
    margin: 0 auto;
    animation: flashItemPulse 0.6s ease;
}

@keyframes flashItemPulse {
    0% { transform: scale(0.95); opacity: 0; }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); opacity: 1; }
}

.flash-item.info { 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.flash-item.warning { 
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}
.flash-item.danger { 
    background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
}
.flash-item.success { 
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.flash-icon {
    font-size: 28px;
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    animation: flashIconBounce 1s ease infinite;
}

@keyframes flashIconBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.flash-content {
    flex: 1;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.flash-title {
    font-weight: 700;
    font-size: 15px;
    display: block;
    margin-bottom: 3px;
    letter-spacing: 0.3px;
}

.flash-message {
    font-size: 13px;
    opacity: 0.95;
    line-height: 1.4;
}

.flash-link {
    display: inline-block;
    margin-top: 6px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    padding: 4px 12px;
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.flash-link:hover {
    background: rgba(255,255,255,0.35);
    transform: translateX(3px);
}

.flash-close {
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flash-close:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
    transform: rotate(90deg) scale(1.1);
}

/* Ajuster l'app quand le bandeau est visible */
body.has-flash .collecto-app {
    padding-top: 85px;
}

body.has-flash .mobile-nav {
    /* Le nav reste en bas, pas de changement */
}

/* Mode sombre */
.dark-mode .flash-banner {
    background: rgba(0,0,0,0.4);
}

/* Mobile */
@media (max-width: 600px) {
    .flash-banner {
        padding: 6px 10px;
    }
    
    .flash-item {
        padding: 12px 15px;
        gap: 12px;
        border-radius: 10px;
    }
    
    .flash-icon {
        width: 38px;
        height: 38px;
        font-size: 22px;
    }
    
    .flash-title {
        font-size: 14px;
    }
    
    .flash-message {
        font-size: 12px;
    }
    
    .flash-close {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    
    body.has-flash .collecto-app {
        padding-top: 80px;
    }
}

/* ==========================================
   CARTE SENNECEY
   ========================================== */

/* Bouton lien vers la carte */
.link-carte-sennecey {
    display: block;
    margin-top: 15px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #E3F2FD 0%, #FFF3E0 100%);
    border: 1px solid #90CAF9;
    border-radius: 10px;
    font-size: 13px;
    color: #1565C0;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.link-carte-sennecey:hover {
    background: linear-gradient(135deg, #BBDEFB 0%, #FFE0B2 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(21, 101, 192, 0.2);
}

.link-carte-sennecey strong {
    color: #E65100;
}

/* Modal carte */
.modal-carte {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.modal-carte.open {
    opacity: 1;
    visibility: visible;
}

.modal-carte-content {
    background: white;
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s;
}

.modal-carte.open .modal-carte-content {
    transform: translateY(0) scale(1);
}

.modal-carte-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, var(--co-primary) 0%, #1B5E20 100%);
    color: white;
}

.modal-carte-header h2 {
    margin: 0;
    font-size: 18px;
}

.modal-close {
    background: rgba(255,255,255,0.2);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.3s;
}

.modal-close:hover {
    background: rgba(255,255,255,0.3);
}

.modal-carte-body {
    padding: 20px;
    overflow-y: auto;
    max-height: calc(90vh - 80px);
}

.carte-instruction {
    text-align: center;
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.6;
}

.secteur-est {
    color: #1565C0;
    font-weight: 600;
}

.secteur-ouest {
    color: #E65100;
    font-weight: 600;
}

.carte-actions {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.btn-geoloc {
    padding: 12px 24px;
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.btn-geoloc:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
}

.btn-geoloc:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Géolocalisation wrapper */
.geoloc-wrapper {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #e0e0e0;
}

/* Bouton géolocalisation accueil */
.btn-geoloc-accueil {
    width: 100%;
    padding: 15px 24px;
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-geoloc-accueil:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.btn-geoloc-accueil:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-geoloc-accueil .geoloc-icon {
    font-size: 20px;
}

/* Séparateur "ou" */
.separator-ou {
    text-align: center;
    color: #999;
    font-size: 14px;
    margin: 15px 0;
    position: relative;
}

.separator-ou::before,
.separator-ou::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: #ddd;
}

.separator-ou::before {
    left: 0;
}

.separator-ou::after {
    right: 0;
}

.geoloc-status {
    margin-top: 12px;
    font-size: 14px;
    min-height: 24px;
}

.geoloc-status .loading {
    color: #2196F3;
}

.geoloc-status .success {
    color: #4CAF50;
    font-weight: 600;
}

.geoloc-status .error {
    color: #f44336;
}

/* Choix Sennecey */
.sennecey-choice {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 12px;
    margin-top: 10px;
}

.sennecey-choice p {
    margin: 0 0 12px 0;
    text-align: center;
}

.sennecey-choice .hint {
    margin-top: 12px;
    margin-bottom: 0;
    color: #FF9800;
    font-size: 13px;
}

.sennecey-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-sennecey {
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 10px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 13px;
    text-align: center;
    min-width: 100px;
}

.btn-sennecey:hover {
    border-color: #4CAF50;
    background: #E8F5E9;
}

.btn-sennecey small {
    display: block;
    color: #666;
    font-size: 11px;
    margin-top: 2px;
}

/* Highlight commune trouvée */
.commune-checkbox.highlight {
    animation: highlightPulse 0.5s ease 3;
    background: #E8F5E9 !important;
    border-color: #4CAF50 !important;
}

@keyframes highlightPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* Container carte */
.map-container {
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #e0e0e0;
    margin-bottom: 15px;
}

/* Résultat */
.carte-resultat {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #E8F5E9;
    border: 2px solid #4CAF50;
    border-radius: 12px;
    margin-bottom: 15px;
    animation: slideUp 0.3s ease;
}

.carte-resultat.hidden {
    display: none;
}

.carte-resultat.est {
    background: #E3F2FD;
    border-color: #2196F3;
}

.carte-resultat.ouest {
    background: #FFF3E0;
    border-color: #FF9800;
}

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

.resultat-icon {
    font-size: 32px;
}

.resultat-text {
    flex: 1;
}

.resultat-text strong {
    font-size: 16px;
    display: block;
    margin-bottom: 4px;
}

.resultat-text p {
    font-size: 13px;
    color: #666;
    margin: 0;
}

.btn-valider {
    padding: 10px 20px;
    background: var(--co-primary);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-valider:hover {
    background: #1B5E20;
}

.carte-help {
    text-align: center;
    font-size: 12px;
    color: #888;
    margin: 0;
}

/* Mode sombre */
.dark-mode .modal-carte-content {
    background: #1F2937;
}

.dark-mode .carte-instruction {
    color: #E5E7EB;
}

.dark-mode .carte-resultat {
    background: #374151;
    border-color: #4CAF50;
}

.dark-mode .resultat-text p {
    color: #9CA3AF;
}

/* Mobile */
@media (max-width: 480px) {
    .modal-carte {
        padding: 10px;
    }
    
    .modal-carte-content {
        max-height: 95vh;
        border-radius: 15px;
    }
    
    .map-container {
        height: 250px;
    }
    
    .carte-resultat {
        flex-direction: column;
        text-align: center;
    }
}

/* ==========================================
   MODAL RGPD
   ========================================== */
.modal-rgpd {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.modal-rgpd.open {
    opacity: 1;
    visibility: visible;
}

.modal-rgpd-content {
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 85vh;
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.modal-rgpd.open .modal-rgpd-content {
    transform: scale(1) translateY(0);
}

.modal-rgpd-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.modal-rgpd-header h2 {
    margin: 0;
    font-size: 20px;
}

.modal-rgpd-body {
    padding: 25px;
    overflow-y: auto;
    flex: 1;
}

.modal-rgpd-body h3 {
    color: #2E7D32;
    font-size: 16px;
    margin: 20px 0 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-rgpd-body h3:first-child {
    margin-top: 0;
}

.modal-rgpd-body p {
    color: #555;
    line-height: 1.6;
    margin: 0 0 10px;
}

.modal-rgpd-body ul {
    margin: 10px 0;
    padding-left: 20px;
}

.modal-rgpd-body li {
    color: #555;
    line-height: 1.8;
}

.modal-rgpd-body li strong {
    color: #333;
}

/* RGPD Consent dans le formulaire */
.rgpd-consent {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.checkbox-label {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    position: relative;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    width: 22px;
    height: 22px;
    min-width: 22px;
    flex-shrink: 0;
    background: white;
    border: 2px solid #ddd;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-top: 0;
}

.checkbox-label input:checked ~ .checkmark {
    background: #4CAF50;
    border-color: #4CAF50;
}

.checkbox-label input:checked ~ .checkmark::after {
    content: '✓';
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.checkbox-label:hover .checkmark {
    border-color: #4CAF50;
}

.consent-text {
    font-size: 13px;
    line-height: 1.5;
    color: #555;
    flex: 1;
}

.consent-text a {
    color: #2E7D32;
    text-decoration: underline;
}

.rgpd-info {
    margin-top: 15px;
    padding: 12px 15px;
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
    border-radius: 8px;
    font-size: 12px;
    color: #2E7D32;
    text-align: center;
    line-height: 1.5;
}

/* Bouton inscription désactivé */
#btn-inscription:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Mode sombre */
.dark-mode .modal-rgpd-content {
    background: #1F2937;
}

.dark-mode .modal-rgpd-body h3 {
    color: #4CAF50;
}

.dark-mode .modal-rgpd-body p,
.dark-mode .modal-rgpd-body li {
    color: #D1D5DB;
}

.dark-mode .modal-rgpd-body li strong {
    color: #F3F4F6;
}

.dark-mode .rgpd-consent {
    background: #374151;
    border-color: #4B5563;
}

.dark-mode .consent-text {
    color: #D1D5DB;
}

.dark-mode .checkmark {
    background: #374151;
    border-color: #6B7280;
}

.dark-mode .rgpd-info {
    background: linear-gradient(135deg, #1a472a 0%, #2E7D32 100%);
    color: white;
}

/* Mobile */
@media (max-width: 480px) {
    .modal-rgpd {
        padding: 10px;
    }
    
    .modal-rgpd-content {
        max-height: 90vh;
    }
    
    .modal-rgpd-header {
        padding: 15px 20px;
    }
    
    .modal-rgpd-header h2 {
        font-size: 18px;
    }
    
    .modal-rgpd-body {
        padding: 20px;
    }
    
    .modal-rgpd-body h3 {
        font-size: 15px;
    }
}

/* ==========================================
   MASCOTTE TRIBOT
   ========================================== */
.tribot {
    position: fixed;
    right: 90px;
    bottom: 85px;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.tribot-character {
    width: 60px;
    height: 75px;
    cursor: pointer;
    animation: tribot-float 3s ease-in-out infinite;
    transition: transform 0.3s;
    position: relative;
}

.tribot-character:hover {
    transform: scale(1.1);
}

.tribot-character:active {
    transform: scale(0.95);
}

/* Couvercle */
.tribot-lid {
    width: 50px;
    height: 8px;
    background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%);
    border-radius: 4px 4px 0 0;
    margin: 0 auto;
    position: relative;
    animation: tribot-lid 4s ease-in-out infinite;
    transform-origin: left center;
}

.tribot-lid::after {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 6px;
    background: #2E7D32;
    border-radius: 3px 3px 0 0;
}

/* Corps */
.tribot-body {
    width: 50px;
    height: 45px;
    background: linear-gradient(135deg, #66BB6A 0%, #43A047 50%, #388E3C 100%);
    border-radius: 4px 4px 8px 8px;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

/* Visage */
.tribot-face {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
}

/* Yeux */
.tribot-eyes {
    display: flex;
    justify-content: space-between;
    padding: 0 5px;
}

.tribot-eye {
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    position: relative;
    animation: tribot-blink 4s infinite;
}

.tribot-eye::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: #1B5E20;
    border-radius: 50%;
    top: 3px;
    left: 3px;
    animation: tribot-look 5s infinite;
}

/* Bouche */
.tribot-mouth {
    width: 16px;
    height: 8px;
    background: #1B5E20;
    border-radius: 0 0 8px 8px;
    margin: 5px auto 0;
    animation: tribot-smile 3s infinite;
}

/* Badge recyclage */
.tribot-badge {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    animation: tribot-badge-spin 6s linear infinite;
}

/* Roues */
.tribot-wheels {
    display: flex;
    justify-content: space-between;
    width: 44px;
    margin: 2px auto 0;
    padding: 0 3px;
}

.tribot-wheel {
    width: 10px;
    height: 10px;
    background: #424242;
    border-radius: 50%;
    border: 2px solid #616161;
}

/* Bulle de dialogue */
.tribot-bubble {
    background: white;
    padding: 12px 35px 12px 15px;
    border-radius: 18px 18px 0 18px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    margin-bottom: 10px;
    max-width: 200px;
    opacity: 0;
    transform: translateY(10px) scale(0.9);
    transition: all 0.3s ease;
    pointer-events: none;
    position: relative;
}

.tribot-bubble.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.tribot-text {
    font-size: 13px;
    color: #333;
    line-height: 1.4;
}

.tribot-close {
    position: absolute;
    top: 5px;
    right: 10px;
    background: none;
    border: none;
    font-size: 18px;
    color: #999;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.tribot-close:hover {
    color: #333;
}

/* Animations */
@keyframes tribot-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes tribot-lid {
    0%, 90%, 100% { transform: rotate(0deg); }
    93%, 97% { transform: rotate(-15deg); }
}

@keyframes tribot-blink {
    0%, 45%, 55%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.1); }
}

@keyframes tribot-look {
    0%, 40% { transform: translateX(0); }
    45%, 55% { transform: translateX(3px); }
    60%, 100% { transform: translateX(0); }
}

@keyframes tribot-smile {
    0%, 100% { height: 8px; }
    50% { height: 10px; }
}

@keyframes tribot-badge-spin {
    0% { transform: translateX(-50%) rotate(0deg); }
    100% { transform: translateX(-50%) rotate(360deg); }
}

/* Tribot caché */
.tribot.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateX(20px);
    transition: all 0.3s;
}

/* Mode sombre */
.dark-mode .tribot-bubble {
    background: #1F2937;
}

.dark-mode .tribot-text {
    color: #E5E7EB;
}

/* Mobile */
@media (max-width: 480px) {
    .tribot {
        right: 75px;
        bottom: 75px;
    }
    
    .tribot-character {
        width: 50px;
        height: 62px;
    }
    
    .tribot-lid {
        width: 42px;
        height: 6px;
    }
    
    .tribot-body {
        width: 42px;
        height: 38px;
    }
    
    .tribot-bubble {
        max-width: 160px;
        font-size: 12px;
    }
}

/* ==========================================
   CHATBOT
   ========================================== */
.chatbot-window {
    position: fixed;
    right: 20px;
    bottom: 150px;
    width: 320px;
    max-width: calc(100vw - 40px);
    background: var(--co-card);
    border-radius: var(--co-radius);
    box-shadow: var(--co-shadow-lg);
    display: none;
    overflow: hidden;
    z-index: 101;
}

.chatbot.open .chatbot-window {
    display: block;
    animation: slideUp 0.3s ease;
}

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

.chatbot.open .chatbot-icon { display: none; }
.chatbot.open .chatbot-close { display: block; }
.chatbot-close { display: none; }

.chatbot-header {
    background: var(--co-primary);
    color: white;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
}

.chatbot-header button {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
}

.chatbot-messages {
    height: 250px;
    overflow-y: auto;
    padding: 15px;
}

.chatbot-msg {
    margin-bottom: 12px;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14px;
}

.chatbot-msg.bot {
    background: var(--co-gray-light);
    border-radius: 12px 12px 12px 0;
}

.chatbot-msg.user {
    background: var(--co-primary);
    color: white;
    border-radius: 12px 12px 0 12px;
    margin-left: 30px;
}

.chatbot-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.chatbot-suggestions button {
    padding: 6px 12px;
    background: white;
    border: 1px solid var(--co-primary);
    border-radius: 20px;
    color: var(--co-primary);
    font-size: 12px;
    cursor: pointer;
}

.chatbot-input {
    display: flex;
    padding: 10px;
    border-top: 1px solid var(--co-border);
    gap: 8px;
}

.chatbot-input input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--co-border);
    border-radius: 20px;
    font-size: 14px;
    outline: none;
}

.chatbot-input button {
    width: 40px;
    height: 40px;
    background: var(--co-primary);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
}

/* ==========================================
   TOAST
   ========================================== */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: linear-gradient(135deg, var(--co-black) 0%, #374151 100%);
    color: white;
    padding: 14px 28px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    pointer-events: none;
    transition: var(--co-transition);
    z-index: 200;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    animation: toastBounce 0.5s ease;
}

@keyframes toastBounce {
    0% { transform: translateX(-50%) translateY(20px) scale(0.9); }
    50% { transform: translateX(-50%) translateY(-5px) scale(1.02); }
    100% { transform: translateX(-50%) translateY(0) scale(1); }
}

/* ==========================================
   NAVIGATION MOBILE
   ========================================== */
.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--co-card);
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    border-top: 1px solid var(--co-border);
    z-index: 99;
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.95);
}

.dark-mode .mobile-nav {
    background: rgba(31, 41, 55, 0.95);
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--co-text-light);
    padding: 8px 15px;
    transition: var(--co-transition);
    border-radius: 12px;
}

.mobile-nav-item span {
    font-size: 22px;
    margin-bottom: 2px;
    transition: var(--co-transition);
}

.mobile-nav-item small {
    font-size: 10px;
    transition: var(--co-transition);
}

.mobile-nav-item:hover span {
    transform: scale(1.2);
}

.mobile-nav-item.active {
    color: var(--co-primary);
    background: rgba(46, 125, 50, 0.1);
}

.mobile-nav-item.active span {
    animation: navBounce 0.4s ease;
}

@keyframes navBounce {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* ==========================================
   BANNIÈRE INSTALLATION PWA
   ========================================== */
.pwa-banner {
    position: fixed;
    bottom: 80px;
    left: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--co-primary), var(--co-primary-dark));
    color: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    z-index: 9999;
    animation: slideUp 0.4s ease-out;
}

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

.pwa-banner-content {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
}

.pwa-banner-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.pwa-banner-text {
    flex: 1;
}

.pwa-banner-text strong {
    display: block;
    font-size: 15px;
    margin-bottom: 3px;
}

.pwa-banner-text span {
    font-size: 13px;
    opacity: 0.9;
}

.pwa-banner-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    flex-shrink: 0;
}

.pwa-banner-close:hover {
    background: rgba(255,255,255,0.3);
}

@media (min-width: 768px) {
    .pwa-banner {
        display: none !important;
    }
}

/* ==========================================
   FOOTER COPYRIGHT
   ========================================== */
.collecto-footer {
    text-align: center;
    padding: 20px;
    margin-bottom: 80px;
    color: var(--co-text-light);
    font-size: 12px;
}

.collecto-footer a {
    color: var(--co-primary);
    text-decoration: none;
    font-weight: 500;
}

.collecto-footer a:hover {
    text-decoration: underline;
}

.collecto-footer .btn-soutenir {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    padding: 8px 16px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
    color: white !important;
    border: none;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(238, 90, 90, 0.3);
    cursor: pointer;
    height: 34px;
}

.collecto-footer .btn-soutenir:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(238, 90, 90, 0.4);
    text-decoration: none !important;
}

/* Modal Soutenir */
.modal-soutenir {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.modal-soutenir-content {
    background: white;
    border-radius: 20px;
    padding: 30px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    position: relative;
    animation: modalAppear 0.3s ease;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

@keyframes modalAppear {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.modal-soutenir .modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f0f0f0;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-soutenir .modal-close:hover {
    background: #e0e0e0;
}

.modal-soutenir-icon {
    font-size: 50px;
    margin-bottom: 15px;
}

.modal-soutenir-content h3 {
    color: #333;
    margin: 0 0 15px;
    font-size: 20px;
}

.modal-soutenir-content p {
    color: #666;
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 1.5;
}

.modal-soutenir-list {
    text-align: left;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 15px 20px;
    margin: 15px 0;
    list-style: none;
}

.modal-soutenir-list li {
    padding: 8px 0;
    color: #555;
    font-size: 14px;
    border-bottom: 1px solid #eee;
}

.modal-soutenir-list li:last-child {
    border-bottom: none;
}

.modal-soutenir-note {
    font-style: italic;
    color: #888 !important;
    font-size: 13px !important;
    margin-top: 15px !important;
}

.modal-soutenir .btn-paypal {
    display: inline-block;
    margin-top: 20px;
    padding: 14px 30px;
    background: linear-gradient(135deg, #0070ba 0%, #003087 100%);
    color: white !important;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 112, 186, 0.3);
}

.modal-soutenir .btn-paypal:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 112, 186, 0.4);
}

/* Footer links */
.footer-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 10px;
}

.btn-footer-link {
    background: transparent;
    border: 1px solid #ddd;
    color: #666;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
}

.btn-footer-link:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

/* Modal À propos */
.modal-apropos-content {
    max-width: 500px;
    max-height: 85vh;
    overflow-y: auto;
    text-align: left;
}

.apropos-section {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.apropos-section:last-of-type {
    border-bottom: none;
}

.apropos-section h4 {
    color: #2E7D32;
    font-size: 14px;
    margin: 0 0 8px;
}

.apropos-section p {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
}

.apropos-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.apropos-features li {
    font-size: 13px;
    color: #555;
}

.apropos-contact {
    text-align: center;
    margin-top: 20px !important;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 13px;
}

.apropos-contact a {
    color: #2E7D32;
    text-decoration: none;
    font-weight: 500;
}

.apropos-contact a:hover {
    text-decoration: underline;
}

@media (min-width: 768px) {
    .collecto-footer {
        margin-bottom: 20px;
    }
}

/* ==========================================
   RESPONSIVE - TABLETTE
   ========================================== */
@media (min-width: 768px) {
    .collecto-container {
        max-width: 900px;
        padding: 30px;
    }
    
    .collecto-hero {
        padding: 70px 30px;
    }
    
    .collecto-hero h1 {
        font-size: 36px;
    }
    
    .collecto-card-select {
        margin: -50px auto 30px;
        max-width: 500px;
        padding: 40px;
    }
    
    .collecto-menu {
        max-width: 600px;
        margin: 0 auto;
        gap: 20px;
    }
    
    .collectes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tri-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-info {
        flex-direction: row;
        justify-content: center;
    }
    
    .mobile-nav {
        display: none;
    }
    
    .collecto-app {
        padding-bottom: 40px;
    }
    
    .fab-dark {
        bottom: 100px;
    }
    
    .fab-chat {
        bottom: 40px;
    }
    
    .chatbot-window {
        bottom: 100px;
    }
    
    /* Calendrier plus grand sur tablette */
    .calendar-days .day {
        font-size: 18px;
        min-height: 55px;
    }
    .calendar-days .day .day-number {
        font-size: 18px;
    }
    .calendar-weekdays .weekday {
        font-size: 13px;
    }
}

/* ==========================================
   RESPONSIVE - PC
   ========================================== */
@media (min-width: 1024px) {
    .collecto-container {
        max-width: 1000px;
        padding: 40px;
    }
    
    .collecto-hero {
        padding: 80px 40px;
    }
    
    .collecto-hero h1 {
        font-size: 42px;
    }
    
    .collecto-card-select {
        margin: -60px auto 40px;
        max-width: 550px;
    }
    
    .collecto-menu {
        grid-template-columns: repeat(4, 1fr);
        max-width: 800px;
    }
    
    .page-header {
        padding: 25px 40px;
    }
    
    .calendar-card {
        padding: 35px;
    }
    
    /* Calendrier encore plus grand sur PC */
    .calendar-days .day {
        font-size: 20px;
        min-height: 65px;
        border-radius: 14px;
    }
    
    .calendar-days .day .day-number {
        font-size: 20px;
    }
    
    .calendar-nav span {
        font-size: 24px;
    }
    
    .calendar-weekdays .weekday {
        font-size: 14px;
        padding: 10px 0;
    }
    
    .day-badges .badge-jaune,
    .day-badges .badge-gris {
        width: 12px;
        height: 12px;
    }
    
    .tri-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .sectors-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================
   RESPONSIVE - MOBILE
   ========================================== */
@media (max-width: 500px) {
    .calendar-days .day {
        font-size: 13px;
        min-height: 40px;
        border-radius: 8px;
    }
    
    .calendar-days .day .day-number {
        font-size: 13px;
    }
    
    .calendar-days {
        gap: 4px;
    }
    
    .calendar-weekdays {
        gap: 4px;
    }
    
    .calendar-weekdays .weekday {
        font-size: 10px;
        padding: 5px 0;
    }
    
    .calendar-nav span {
        font-size: 16px;
    }
    
    .day-badges .badge-jaune,
    .day-badges .badge-gris {
        width: 8px;
        height: 8px;
    }
}

/* ==========================================
   PAGE SERVICES - Points de collecte
   ========================================== */

/* Bouton géolocalisation services */
.services-geoloc-box {
    background: linear-gradient(135deg, #00796B 0%, #004D40 100%);
    border-radius: var(--co-radius);
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
}

/* Filtres services */
.services-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    padding: 15px;
    background: var(--co-card);
    border-radius: var(--co-radius);
    box-shadow: var(--co-shadow);
}

.filter-btn {
    background: #f0f0f0;
    border: 2px solid transparent;
    border-radius: 25px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--co-transition);
    white-space: nowrap;
}

.filter-btn:hover {
    background: #e0e0e0;
}

.filter-btn.active {
    background: #00796B;
    color: white;
    border-color: #00796B;
}

/* Badge compteur */
.count-badge {
    background: #e0f2f1;
    color: #00796B;
    font-size: 12px;
    padding: 2px 10px;
    border-radius: 20px;
    margin-left: 8px;
    font-weight: 600;
}

/* Bouton carte promo sur accueil */
.carte-promo-box {
    margin: 20px 0;
}

.btn-carte-promo {
    width: 100%;
    background: linear-gradient(135deg, #1565C0 0%, #0D47A1 100%);
    border: none;
    border-radius: 16px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(21, 101, 192, 0.3);
    text-align: left;
}

.btn-carte-promo:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(21, 101, 192, 0.4);
}

.btn-carte-promo:active {
    transform: translateY(0);
}

.carte-promo-icon {
    font-size: 36px;
    flex-shrink: 0;
}

.carte-promo-text {
    flex: 1;
    color: white;
}

.carte-promo-text strong {
    display: block;
    font-size: 16px;
    margin-bottom: 3px;
}

.carte-promo-text small {
    display: block;
    font-size: 13px;
    opacity: 0.85;
}

.carte-promo-arrow {
    font-size: 24px;
    color: white;
    opacity: 0.7;
    flex-shrink: 0;
}

/* Modal Carte des secteurs */
.modal-carte-secteurs {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 15px;
    backdrop-filter: blur(4px);
}

.modal-carte-secteurs.active {
    display: flex;
}

.modal-carte-secteurs-content {
    background: white;
    border-radius: 20px;
    padding: 15px;
    width: 95%;
    max-width: 1000px;
    max-height: 95vh;
    overflow-y: auto;
    text-align: center;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

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

.modal-carte-secteurs .modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 35px;
    height: 35px;
    border: none;
    background: #f0f0f0;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}

.modal-carte-secteurs .modal-close:hover {
    background: #e0e0e0;
    transform: scale(1.1);
}

.modal-carte-secteurs-icon {
    font-size: 50px;
    margin-bottom: 10px;
}

.modal-carte-secteurs-content h3 {
    margin: 0 0 10px;
    font-size: 22px;
    color: #333;
}

.modal-carte-secteurs-header {
    text-align: center;
    margin-bottom: 15px;
}

.modal-carte-secteurs-header h3 {
    margin: 0 0 5px;
    font-size: 22px;
}

.modal-carte-secteurs-header p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* Filtres de la carte */
.carte-filtres-section {
    margin-bottom: 10px;
}

.filtres-label {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    margin-bottom: 6px;
    text-align: left;
}

.carte-filtres {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.carte-filtre-btn {
    background: #f5f5f5;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.carte-filtre-btn:hover {
    background: #e8e8e8;
}

.carte-filtre-btn.active {
    background: #2E7D32;
    color: white;
    border-color: #2E7D32;
}

.carte-filtre-btn.zone-btn.active {
    background: #1565C0;
    border-color: #1565C0;
}

.carte-filtre-btn.jour-btn.active {
    background: #7B1FA2;
    border-color: #7B1FA2;
}

.carte-filtre-btn.semaine-btn.active {
    background: #E65100;
    border-color: #E65100;
}

.carte-filtre-btn .filtre-count {
    background: rgba(0,0,0,0.1);
    padding: 1px 6px;
    border-radius: 10px;
    font-size: 10px;
}

.carte-filtre-btn.active .filtre-count {
    background: rgba(255,255,255,0.3);
}

/* Barre d'actions */
.carte-actions-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.btn-action-carte {
    flex: 1;
    padding: 10px 12px;
    border: none;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-action-carte.btn-geoloc {
    background: linear-gradient(135deg, #1976D2 0%, #0D47A1 100%);
    color: white;
}

.btn-action-carte.btn-recentrer {
    background: #f5f5f5;
    color: #333;
    border: 2px solid #e0e0e0;
}

.btn-action-carte.btn-fullscreen {
    background: #f5f5f5;
    color: #333;
    border: 2px solid #e0e0e0;
}

.btn-action-carte:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-action-carte.btn-geoloc.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Panel info après géolocalisation */
.info-geoloc-panel {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 10px;
    position: relative;
    border: 2px solid #1976D2;
}

.info-geoloc-content {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.info-bloc {
    flex: 1;
    min-width: 150px;
    background: white;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
}

.info-bloc-title {
    font-size: 11px;
    color: #666;
    margin-bottom: 5px;
}

.info-bloc-value {
    font-size: 14px;
    font-weight: 600;
    color: #1565C0;
}

.info-bloc-detail {
    font-size: 11px;
    color: #888;
    margin-top: 3px;
}

.btn-close-info {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    border: none;
    background: rgba(0,0,0,0.1);
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
}

/* Zone surbrillance (après géoloc) */
.zone-highlight {
    animation: zoneFlash 1s ease-in-out 3;
}

@keyframes zoneFlash {
    0%, 100% { fill-opacity: 0.5; }
    50% { fill-opacity: 0.8; }
}

/* Fullscreen mode */
.modal-carte-secteurs.fullscreen .modal-carte-secteurs-content {
    width: 100%;
    max-width: 100%;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    padding: 10px;
}

.modal-carte-secteurs.fullscreen .map-secteurs-container {
    height: calc(100vh - 280px);
    max-height: none;
}

.modal-carte-secteurs.fullscreen .carte-filtres-section {
    display: inline-flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 5px;
}

.modal-carte-secteurs.fullscreen .filtres-label {
    margin-bottom: 0;
}

/* Container de la carte */
.map-secteurs-container {
    width: 100%;
    height: 55vh;
    min-height: 350px;
    max-height: 500px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    background: #e8e8e8;
    position: relative;
}

.map-secteurs-container .leaflet-container {
    width: 100% !important;
    height: 100% !important;
}

/* Légende */
.carte-legende {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 12px;
    padding: 10px;
    background: #f8f8f8;
    border-radius: 10px;
}

.legende-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #555;
}

.legende-item .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legende-item .dot.dechetterie { background: #FF6F00; }
.legende-item .dot.verre { background: #2E7D32; }
.legende-item .dot.textile { background: #7B1FA2; }
.legende-item .dot.compost { background: #33691E; }
.legende-item .dot.zone-emballages { background: #FFC107; border: 2px solid #FF8F00; }
.legende-item .dot.zone-ordures { background: #78909C; border: 2px solid #546E7A; }
.legende-item .dot.user { background: #1976D2; border: 2px solid white; box-shadow: 0 0 0 2px #1976D2; }

/* Popup Leaflet personnalisé */
.leaflet-popup-content-wrapper {
    border-radius: 16px !important;
    box-shadow: 0 4px 25px rgba(0,0,0,0.25) !important;
    padding: 0 !important;
}

.leaflet-popup-content {
    margin: 0 !important;
    min-width: 240px !important;
    width: auto !important;
}

.leaflet-popup-tip {
    box-shadow: 0 4px 15px rgba(0,0,0,0.15) !important;
}

.popup-content {
    padding: 15px 18px;
}

.popup-titre {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
}

.popup-type {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
}

.popup-distance {
    background: #e3f2fd;
    color: #1565c0;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 12px;
}

.popup-buttons {
    display: flex;
    gap: 10px;
}

.popup-btn {
    flex: 1;
    padding: 12px 16px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.popup-btn.google {
    background: #4285f4;
    color: white;
}

.popup-btn.waze {
    background: #33ccff;
    color: #000;
}

.popup-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Alertes déchèteries dans les popups */
.popup-alerte {
    margin: 10px 0;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px;
}

.popup-alerte.alerte-ferme {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    border-left: 4px solid #c62828;
}

.popup-alerte.alerte-horaires {
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
    border-left: 4px solid #7B1FA2;
}

.popup-alerte .alerte-titre {
    font-weight: 700;
    color: #c62828;
    margin-bottom: 5px;
}

.popup-alerte.alerte-horaires .alerte-titre {
    color: #7B1FA2;
}

.popup-alerte .alerte-raison {
    color: #555;
    font-size: 12px;
    margin-bottom: 5px;
}

.popup-alerte .alerte-date {
    color: #888;
    font-size: 11px;
    font-style: italic;
}

.popup-alerte .alerte-horaires {
    background: white;
    padding: 5px 8px;
    border-radius: 5px;
    margin-top: 5px;
    font-size: 12px;
    color: #333;
}

/* Marqueur utilisateur */
.user-marker {
    background: #1976D2;
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

@media (max-width: 600px) {
    .map-secteurs-container {
        height: 45vh;
        min-height: 300px;
    }
    
    .carte-filtres-section {
        margin-bottom: 8px;
    }
    
    .filtres-label {
        font-size: 11px;
    }
    
    .carte-filtres {
        gap: 4px;
    }
    
    .carte-filtre-btn {
        padding: 4px 8px;
        font-size: 10px;
    }
    
    .carte-filtre-btn .filtre-count {
        padding: 1px 4px;
        font-size: 9px;
    }
    
    .carte-actions-bar {
        gap: 5px;
    }
    
    .btn-action-carte {
        padding: 8px 10px;
        font-size: 11px;
    }
    
    .carte-legende {
        gap: 8px;
        padding: 8px;
    }
    
    .legende-item {
        font-size: 10px;
    }
    
    .modal-carte-secteurs-content {
        padding: 10px;
        border-radius: 15px;
    }
    
    .modal-carte-secteurs-header h3 {
        font-size: 18px;
    }
    
    .info-geoloc-panel {
        padding: 10px;
    }
    
    .info-bloc {
        padding: 8px;
        min-width: 100px;
    }
    
    .info-bloc-title {
        font-size: 10px;
    }
    
    .info-bloc-value {
        font-size: 12px;
    }
}

/* Animation pulse pour le marqueur utilisateur */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 3px #1976D2, 0 2px 10px rgba(0,0,0,0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(25, 118, 210, 0.3), 0 2px 10px rgba(0,0,0,0.4);
    }
    100% {
        box-shadow: 0 0 0 3px #1976D2, 0 2px 10px rgba(0,0,0,0.4);
    }
}

/* Fix Leaflet dans modal */
.modal-carte-secteurs .leaflet-container {
    z-index: 1;
}

.modal-carte-secteurs .leaflet-control-zoom {
    border: none !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2) !important;
}

.modal-carte-secteurs .leaflet-control-zoom a {
    width: 32px !important;
    height: 32px !important;
    line-height: 32px !important;
}

@media (max-width: 600px) {
    .modal-carte-secteurs-content {
        padding: 15px;
        border-radius: 15px;
    }
    
    .carte-secteurs-iframe-container {
        padding-bottom: 80%;
    }
    
    .modal-carte-secteurs-icon {
        font-size: 40px;
    }
    
    .modal-carte-secteurs-content h3 {
        font-size: 18px;
    }
}

.btn-geoloc-services {
    background: white;
    border: none;
    border-radius: 30px;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    color: #00796B;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--co-transition);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-geoloc-services:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.btn-geoloc-services .geoloc-icon {
    font-size: 24px;
}

.services-geoloc-box .geoloc-status {
    margin-top: 15px;
    color: white;
    font-size: 14px;
}

/* Section carte */
.services-map-section {
    background: var(--co-card);
    border-radius: var(--co-radius);
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: var(--co-shadow);
}

.services-map-section h3 {
    margin: 0 0 5px;
    font-size: 18px;
}

/* Bouton ouvrir carte full */
.btn-open-carte-full {
    width: 100%;
    background: linear-gradient(135deg, #1565C0 0%, #0D47A1 100%);
    border: none;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(21, 101, 192, 0.3);
    text-align: left;
}

.btn-open-carte-full:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(21, 101, 192, 0.4);
}

.carte-preview-icon {
    font-size: 40px;
    flex-shrink: 0;
}

.carte-preview-text {
    flex: 1;
    color: white;
}

.carte-preview-text strong {
    display: block;
    font-size: 16px;
    margin-bottom: 5px;
}

.carte-preview-text small {
    display: block;
    font-size: 13px;
    opacity: 0.85;
}

.carte-preview-arrow {
    font-size: 28px;
    color: white;
    opacity: 0.7;
    flex-shrink: 0;
}

/* Sections services */
.services-section {
    background: var(--co-card);
    border-radius: var(--co-radius);
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: var(--co-shadow);
}

.services-section h3 {
    margin: 0 0 5px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Statut déchèterie */
.dechetterie-statut-global {
    background: #f0f9f4;
    border-radius: 10px;
    padding: 12px 15px;
    margin-bottom: 15px;
    font-weight: 500;
    text-align: center;
}

.dechetterie-statut-global.ouvert {
    background: #dcfce7;
    color: #166534;
}

.dechetterie-statut-global.ferme {
    background: #fee2e2;
    color: #991b1b;
}

/* Grille de cartes services */
.services-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.services-cards-grid.small {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

/* Carte service individuel */
.service-card {
    background: #f8faf9;
    border-radius: 12px;
    padding: 15px;
    border-left: 4px solid #00796B;
    transition: var(--co-transition);
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.service-card.dechetterie {
    border-left-color: #FF6F00;
}

.service-card.point-verre {
    border-left-color: #2E7D32;
}

.service-card.point-textile {
    border-left-color: #7B1FA2;
}

.service-card.point-compost {
    border-left-color: #33691E;
}

.service-card-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}

.service-card-header .service-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.service-card-header .service-info {
    flex: 1;
}

.service-card-header .service-info strong {
    display: block;
    font-size: 15px;
    color: var(--co-text);
}

.service-card-header .service-info small {
    color: var(--co-text-light);
    font-size: 13px;
}

.service-card-header .service-distance {
    background: #e0f2f1;
    color: #00796B;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.service-card-body {
    margin-bottom: 10px;
}

.service-action.tel {
    display: inline-block;
    color: #00796B;
    text-decoration: none;
    font-size: 14px;
    padding: 5px 10px;
    background: #e0f2f1;
    border-radius: 20px;
}

/* Boutons navigation */
.service-card-buttons {
    display: flex;
    gap: 8px;
}

.btn-nav {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 10px 15px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: var(--co-transition);
}

.btn-nav.google {
    background: #4285f4;
    color: white;
}

.btn-nav.google:hover {
    background: #3367d6;
}

.btn-nav.waze {
    background: #33ccff;
    color: #000;
}

.btn-nav.waze:hover {
    background: #00b8e6;
}

/* Box horaires services */
.horaires-box-services {
    background: #fff8e1;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
}

.horaires-box-services h4 {
    margin: 0 0 5px;
    font-size: 16px;
}

.horaires-box-services .horaires-note {
    color: #666;
    font-size: 13px;
    margin-bottom: 15px;
}

.horaires-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.horaire-col strong {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
}

.horaire-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.horaire-col ul li {
    padding: 5px 0;
    font-size: 13px;
    color: #555;
    border-bottom: 1px dashed #e0e0e0;
}

.horaire-col ul li:last-child {
    border-bottom: none;
}

.badge-info {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #ffc107;
    font-size: 13px;
    color: #666;
}

/* Info boxes */
.textile-info-box,
.compost-info-box {
    background: #f3e5f5;
    border-radius: 10px;
    padding: 15px;
    margin-top: 15px;
    font-size: 13px;
}

.textile-info-box p,
.compost-info-box p {
    margin: 5px 0;
}

.compost-info-box {
    background: #e8f5e9;
}

/* Encombrants */
.encombrants-info-box {
    background: #e3f2fd;
    border-radius: 12px;
    padding: 20px;
}

.encombrants-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.encombrant-option {
    background: white;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.encombrant-option .option-icon {
    font-size: 30px;
    flex-shrink: 0;
}

.encombrant-option .option-content strong {
    display: block;
    margin-bottom: 5px;
}

.encombrant-option .option-content p {
    font-size: 13px;
    color: #666;
    margin: 0 0 10px;
}

.btn-contact-encombrants {
    display: inline-block;
    background: #1976d2;
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

/* Boutons itinéraire dans déchetteries (section tri) */
.dechetterie-buttons {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.btn-itineraire {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: var(--co-transition);
}

.btn-itineraire.google {
    background: #4285f4;
    color: white;
}

.btn-itineraire.waze {
    background: #33ccff;
    color: #000;
}

/* Statut déchetterie box (page tri) */
.dechetterie-statut-box {
    background: #f0f9f4;
    border-radius: 10px;
    padding: 12px 15px;
    margin-bottom: 15px;
    font-weight: 500;
    text-align: center;
}

/* Responsive services */
@media (max-width: 600px) {
    .services-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .services-cards-grid.small {
        grid-template-columns: 1fr 1fr;
    }
    
    .horaires-grid {
        grid-template-columns: 1fr;
    }
    
    .encombrants-options {
        grid-template-columns: 1fr;
    }
    
    .btn-geoloc-services {
        font-size: 14px;
        padding: 12px 20px;
    }
}

@media (max-width: 400px) {
    .services-cards-grid.small {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   STYLE À PROPOS AMÉLIORÉ
   ========================================== */

.apropos-disclaimer {
    background: #FFF3CD;
    border: 2px solid #FFC107;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
}

.apropos-disclaimer h4 {
    color: #856404;
    font-size: 16px;
}

.apropos-disclaimer p {
    color: #664D03;
    font-size: 14px;
}

.source-officielle-link {
    display: inline-block;
    background: var(--co-primary);
    color: white !important;
    padding: 12px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: var(--co-transition);
    margin-top: 5px;
}

.source-officielle-link:hover {
    background: var(--co-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
}

.source-note {
    font-size: 12px;
    color: var(--co-text-light);
    font-style: italic;
    margin-top: 10px;
}

/* Fix emoji click */
.fab img.emoji, .fab span, .fab * { pointer-events: none !important; }
#btn-dark-mode, #chatbot-toggle { pointer-events: auto !important; }


/* ==========================================
   WIDGETS ACCUEIL (Météo + Prochaine collecte)
   ========================================== */
.widgets-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

@media (max-width: 500px) {
    .widgets-row {
        grid-template-columns: 1fr;
    }
}

.widget-card {
    background: var(--co-card);
    border-radius: var(--co-radius);
    padding: 18px;
    box-shadow: var(--co-shadow);
    transition: var(--co-transition);
}

.widget-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--co-shadow-lg);
}

/* Widget Météo */
.widget-meteo {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    min-height: 120px;
}

.widget-meteo .widget-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 10px;
}

.widget-meteo .loading-spinner {
    font-size: 32px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.widget-meteo .meteo-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.widget-meteo .meteo-icon {
    font-size: 48px;
    line-height: 1;
}

.widget-meteo .meteo-info {
    flex: 1;
}

.widget-meteo .meteo-temp {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
}

.widget-meteo .meteo-desc {
    font-size: 14px;
    opacity: 0.9;
    text-transform: capitalize;
    margin-top: 4px;
}

.widget-meteo .meteo-details {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    font-size: 12px;
    opacity: 0.85;
}

.widget-meteo .meteo-detail {
    display: flex;
    align-items: center;
    gap: 4px;
}

.widget-meteo .meteo-location {
    font-size: 11px;
    opacity: 0.7;
    margin-top: 8px;
}

/* Widget Prochaine Collecte */
.widget-collecte {
    background: linear-gradient(135deg, #2E7D32 0%, #1B5E20 100%);
    color: white;
}

.widget-collecte .widget-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 13px;
    opacity: 0.9;
}

.widget-collecte .widget-icon {
    font-size: 18px;
}

.widget-collecte .collecte-type {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.widget-collecte .collecte-bac {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.widget-collecte .collecte-bac.jaune {
    background: #FFC107;
}

.widget-collecte .collecte-bac.gris {
    background: #6B7280;
}

.widget-collecte .collecte-info .collecte-name {
    font-weight: 600;
    font-size: 16px;
}

.widget-collecte .collecte-info .collecte-date {
    font-size: 13px;
    opacity: 0.85;
}

.widget-collecte .collecte-countdown {
    background: rgba(255,255,255,0.2);
    padding: 8px 12px;
    border-radius: 8px;
    text-align: center;
    margin-top: 10px;
}

.widget-collecte .countdown-label {
    font-size: 11px;
    opacity: 0.8;
}

.widget-collecte .countdown-value {
    font-size: 18px;
    font-weight: 700;
}

.widget-collecte .no-commune {
    text-align: center;
    padding: 10px;
    font-size: 13px;
    opacity: 0.9;
}

.widget-collecte .no-commune a {
    color: white;
    text-decoration: underline;
}


/* ==========================================
   CORRECTIONS WIDGETS ACCUEIL
   ========================================== */

/* Amélioration widget météo */
.widget-meteo {
    min-height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.widget-meteo .meteo-content {
    width: 100%;
}

.widget-meteo .meteo-icon {
    font-size: 42px;
    line-height: 1;
    flex-shrink: 0;
}

.widget-meteo .meteo-temp {
    font-size: 28px;
}

/* Amélioration widget collecte */
.widget-collecte {
    min-height: 130px;
    display: flex;
    flex-direction: column;
}

.widget-collecte .widget-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.widget-collecte .no-commune {
    text-align: center;
    padding: 15px 10px;
    font-size: 14px;
    line-height: 1.5;
}

.widget-collecte .no-commune a {
    color: #86efac;
    text-decoration: none;
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

.widget-collecte .no-commune a:hover {
    text-decoration: underline;
}

/* Sur mobile, widgets en colonne */
@media (max-width: 600px) {
    .widgets-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .widget-card {
        min-height: auto;
        padding: 15px;
    }
    
    .widget-meteo .meteo-icon {
        font-size: 36px;
    }
    
    .widget-meteo .meteo-temp {
        font-size: 24px;
    }
}

/* ==========================================
   WIDGETS DANS LE HERO
   ========================================== */
.hero-widgets {
    max-width: 700px;
    margin: 30px auto 0;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.hero-widgets .widget-card {
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.hero-widgets .widget-meteo {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%);
    backdrop-filter: blur(10px);
}

.hero-widgets .widget-collecte {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Ajuster le hero pour laisser de la place aux widgets */
.collecto-hero {
    padding-bottom: 30px;
}

/* ==========================================
   NOUVEAUX WIDGETS HERO - REFONTE COMPLETE
   ========================================== */
.hero-widgets-container {
    max-width: 800px;
    margin: 40px auto 0;
    padding: 0 20px;
}

.hero-widgets {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 600px) {
    .hero-widgets {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Widget Météo */
.widget-meteo {
    background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%);
    border-radius: 20px;
    padding: 25px;
    color: white;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    min-height: 160px;
}

.widget-meteo .meteo-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 10px;
    font-size: 18px;
    opacity: 0.7;
}

.widget-meteo .meteo-date {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 5px;
}

.widget-meteo .meteo-saint {
    font-size: 13px;
    opacity: 0.6;
    margin-bottom: 15px;
}

.widget-meteo .meteo-main {
    display: flex;
    align-items: center;
    gap: 20px;
}

.widget-meteo .meteo-icon {
    font-size: 50px;
    line-height: 1;
}

.widget-meteo .meteo-temp {
    font-size: 42px;
    font-weight: 700;
}

.widget-meteo .meteo-desc {
    font-size: 16px;
    opacity: 0.9;
    margin-top: 3px;
}

.widget-meteo .meteo-details {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    font-size: 14px;
    opacity: 0.8;
}

/* Widget Prochaine Collecte */
.widget-collecte {
    background: linear-gradient(135deg, #166534 0%, #14532d 100%);
    border-radius: 20px;
    padding: 25px;
    color: white;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.widget-collecte .widget-collecte-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 18px;
    opacity: 0.7;
}

.widget-collecte .collecte-header {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 15px;
}

.widget-collecte .collecte-main {
    display: flex;
    align-items: center;
    gap: 15px;
}

.widget-collecte .collecte-bac-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
}

.widget-collecte .collecte-bac-icon.jaune {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.widget-collecte .collecte-bac-icon.gris {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
}

.widget-collecte .collecte-info {
    flex: 1;
}

.widget-collecte .collecte-type {
    font-size: 20px;
    font-weight: 700;
}

.widget-collecte .collecte-date {
    font-size: 15px;
    opacity: 0.9;
    margin-top: 3px;
}

.widget-collecte .collecte-countdown {
    font-size: 18px;
    font-weight: 600;
    margin-top: 15px;
    padding: 10px 15px;
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
    text-align: center;
}

.widget-collecte .collecte-no-commune {
    text-align: center;
}

.widget-collecte .collecte-no-commune .icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.widget-collecte .collecte-no-commune a {
    color: #86efac;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
}

.widget-collecte .collecte-no-commune a:hover {
    text-decoration: underline;
}

/* Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 25px;
    padding: 20px;
}

.hero-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.9);
    font-size: 15px;
}

.hero-stat .stat-icon {
    font-size: 20px;
}

.hero-stat .stat-value {
    font-weight: 700;
    font-size: 18px;
}

.hero-stat .stat-label {
    opacity: 0.8;
}

@media (max-width: 500px) {
    .hero-stats {
        gap: 20px;
        flex-wrap: wrap;
    }
    
    .hero-stat {
        font-size: 13px;
    }
    
    .hero-stat .stat-value {
        font-size: 16px;
    }
}

/* ==========================================
   WIDGET DATE DU JOUR
   ========================================== */
.widget-date {
    background: linear-gradient(135deg, #166534 0%, #14532d 100%);
    border-radius: 20px;
    padding: 25px;
    color: white;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.widget-date .date-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 18px;
    opacity: 0.7;
}

.widget-date .date-jour {
    font-size: 18px;
    font-weight: 600;
    opacity: 0.9;
    margin-bottom: 5px;
}

.widget-date .date-numero {
    font-size: 52px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 5px;
}

.widget-date .date-mois {
    font-size: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.widget-date .date-saint {
    font-size: 16px;
    opacity: 0.85;
    padding: 8px 16px;
    background: rgba(255,255,255,0.15);
    border-radius: 20px;
}

/* ==========================================
   WIDGET MÉTÉO AMÉLIORÉ
   ========================================== */
.widget-meteo {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 20px;
    color: white;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    min-height: 160px;
}

.widget-meteo .meteo-main {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 8px;
}

.widget-meteo .meteo-icon {
    font-size: 55px;
    line-height: 1;
}

.widget-meteo .meteo-info {
    flex: 1;
}

.widget-meteo .meteo-temp {
    font-size: 38px;
    font-weight: 700;
    line-height: 1;
}

.widget-meteo .meteo-ressenti {
    font-size: 13px;
    opacity: 0.8;
    margin-top: 2px;
}

.widget-meteo .meteo-desc {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 10px;
}

.widget-meteo .meteo-details {
    display: flex;
    gap: 20px;
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 12px;
}

.widget-meteo .meteo-sun {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
    font-size: 14px;
}

.widget-meteo .meteo-sun .sun-icon {
    font-size: 20px;
}

.widget-meteo .meteo-sun .sun-text {
    font-weight: 500;
}

/* ==========================================
   DATE DU JOUR EN LIGNE
   ========================================== */
.hero-date {
    text-align: center;
    margin-top: 20px;
    padding: 15px 25px;
    background: rgba(255,255,255,0.1);
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: white;
    font-size: 16px;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
}

.hero-widgets-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-date .date-text {
    font-weight: 600;
}

.hero-date .date-saint {
    opacity: 0.85;
    padding-left: 15px;
    border-left: 1px solid rgba(255,255,255,0.3);
}

/* Widget Prochaine Collecte */
.widget-collecte {
    background: linear-gradient(135deg, #166534 0%, #14532d 100%);
    border-radius: 20px;
    padding: 20px;
    color: white;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.widget-collecte .collecte-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 16px;
    opacity: 0.7;
}

.widget-collecte .collecte-header {
    font-size: 13px;
    opacity: 0.8;
    margin-bottom: 12px;
}

.widget-collecte .collecte-main {
    display: flex;
    align-items: center;
    gap: 15px;
}

.widget-collecte .collecte-bac-icon {
    width: 55px;
    height: 55px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.widget-collecte .collecte-bac-icon.jaune {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.widget-collecte .collecte-bac-icon.gris {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
}

.widget-collecte .collecte-info {
    flex: 1;
}

.widget-collecte .collecte-type {
    font-size: 18px;
    font-weight: 700;
}

.widget-collecte .collecte-date {
    font-size: 14px;
    opacity: 0.9;
    margin-top: 2px;
}

.widget-collecte .collecte-countdown {
    font-size: 15px;
    font-weight: 600;
    margin-top: 12px;
    padding: 8px 12px;
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
    text-align: center;
}

.widget-collecte .collecte-no-commune {
    text-align: center;
    padding: 10px;
}

.widget-collecte .collecte-no-commune .icon {
    font-size: 35px;
    margin-bottom: 8px;
}

.widget-collecte .collecte-no-commune a {
    color: #86efac;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
}

.widget-collecte .collecte-no-commune a:hover {
    text-decoration: underline;
}

/* Secteurs dans le widget collecte */
.widget-collecte .collecte-secteurs {
    font-size: 12px;
    opacity: 0.8;
    margin-top: 8px;
    padding: 6px 10px;
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
}

/* Widget collecte couleur selon type de bac */
.widget-collecte-jaune {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
}

.widget-collecte-gris {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%) !important;
}

/* Widget collecte vide */
.widget-collecte-vide {
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%) !important;
}

.widget-collecte .collecte-no-data {
    text-align: center;
    padding: 20px;
    opacity: 0.8;
    font-size: 14px;
}

/* Widget Semaine */
.widget-semaine {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 20px;
    max-width: 500px;
    margin: 0 auto;
}

/* Header avec navigation */
.semaine-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.semaine-nav {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.semaine-nav:hover {
    background: rgba(255,255,255,0.35);
    transform: scale(1.1);
}

.semaine-nav:active {
    transform: scale(0.95);
}

.semaine-titre {
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: white;
    flex: 1;
}

.semaine-jours {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.jour-case {
    flex: 1;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 10px 5px;
    text-align: center;
    color: white;
    min-width: 45px;
    transition: transform 0.2s;
}

.jour-case.today {
    background: rgba(255,255,255,0.3);
    box-shadow: 0 0 0 2px white;
}

.jour-case.has-collecte {
    cursor: pointer;
}

.jour-case.collecte-jaune {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.jour-case.collecte-gris {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
}

.jour-case:hover {
    transform: scale(1.05);
}

.jour-nom {
    font-size: 11px;
    opacity: 0.8;
    margin-bottom: 3px;
}

.jour-num {
    font-size: 18px;
    font-weight: 700;
}

.jour-emoji {
    font-size: 16px;
    margin-top: 5px;
}

.semaine-legende {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.legende-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: white;
    opacity: 0.9;
}

.legende-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legende-dot.jaune {
    background: #f59e0b;
}

.legende-dot.gris {
    background: #6b7280;
}

.semaine-loading, .semaine-error {
    text-align: center;
    color: white;
    padding: 30px;
}

/* Mobile */
@media (max-width: 480px) {
    .jour-case {
        min-width: 38px;
        padding: 8px 3px;
    }
    
    .jour-nom {
        font-size: 10px;
    }
    
    .jour-num {
        font-size: 16px;
    }
    
    .jour-emoji {
        font-size: 14px;
    }
}

/* Secteurs dans les jours */
.jour-bac {
    font-size: 9px;
    font-weight: 600;
    margin-top: 4px;
    opacity: 0.9;
}

.jour-secteurs {
    font-size: 8px;
    margin-top: 3px;
    opacity: 0.8;
    line-height: 1.2;
    max-height: 40px;
    overflow: hidden;
}

/* Agrandir les cases pour les secteurs */
.jour-case.has-collecte {
    padding: 8px 4px;
}

@media (max-width: 600px) {
    .semaine-jours {
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .jour-case {
        flex: 0 0 calc(25% - 6px);
        min-width: unset;
    }
    
    .jour-secteurs {
        font-size: 7px;
    }
}

/* Modal détails jour */
.jour-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.jour-modal.open {
    display: flex;
}

.jour-modal-content {
    background: white;
    border-radius: 16px;
    max-width: 350px;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    position: relative;
    animation: modalPop 0.3s ease;
}

@keyframes modalPop {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.jour-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255,255,255,0.3);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    color: white;
    z-index: 10;
}

.modal-header {
    padding: 25px;
    text-align: center;
    color: white;
}

.modal-header.modal-jaune {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.modal-header.modal-gris {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
}

.modal-emoji {
    font-size: 50px;
    margin-bottom: 10px;
}

.modal-jour {
    font-size: 22px;
    font-weight: 700;
}

.modal-bac {
    font-size: 16px;
    opacity: 0.9;
    margin-top: 5px;
}

.modal-secteurs-title {
    padding: 15px 20px 10px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.modal-secteurs-list {
    padding: 0 20px 20px;
    color: #555;
    font-size: 14px;
    line-height: 1.8;
}

/* Centrer le widget semaine */
.hero-widgets-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.widget-semaine {
    margin: 0 auto;
    width: 100%;
    max-width: 600px;
}

.semaine-jours {
    justify-content: center;
}

/* Modal Préférences In-App */
#modal-preferences {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    box-sizing: border-box;
}

.modal-preferences-content {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 400px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 20px;
    position: relative;
    box-sizing: border-box;
}

.modal-preferences-content .modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #f3f4f6;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
}

.prefs-modal-inner {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.prefs-email-badge {
    background: #f0fdf4;
    color: #166534;
    padding: 10px 15px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 20px;
    font-size: 14px;
}

.prefs-section {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e7eb;
}

.prefs-section h3 {
    margin: 0 0 10px;
    font-size: 15px;
    color: #374151;
}

.prefs-section p {
    margin: 0;
    color: #6b7280;
}

.prefs-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.prefs-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
}

.prefs-checkbox input {
    width: 18px;
    height: 18px;
}

.prefs-radio-group {
    display: flex;
    gap: 10px;
}

.prefs-radio {
    flex: 1;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 13px;
}

.prefs-radio:hover {
    border-color: #2e7d32;
}

.prefs-radio.selected {
    border-color: #2e7d32;
    background: #dcfce7;
}

.prefs-radio input {
    display: none;
}

.prefs-toggle-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: #f9fafb;
    border-radius: 10px;
    font-size: 13px;
    gap: 10px;
}

.prefs-toggle-container span {
    flex: 1;
    line-height: 1.3;
}

.prefs-toggle {
    position: relative;
    width: 50px;
    min-width: 50px;
    height: 28px;
    flex-shrink: 0;
}

.prefs-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.prefs-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    border-radius: 28px;
    transition: 0.3s;
}

.prefs-toggle-slider:before {
    content: "";
    position: absolute;
    height: 22px; width: 22px;
    left: 3px; bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.3s;
}

.prefs-toggle input:checked + .prefs-toggle-slider {
    background-color: #2e7d32;
}

.prefs-toggle input:checked + .prefs-toggle-slider:before {
    transform: translateX(22px);
}

.prefs-push-status {
    margin-top: 10px;
    padding: 10px;
    border-radius: 8px;
    font-size: 13px;
    text-align: center;
    display: none;
    background: #f0fdf4;
    color: #166534;
}

.btn-save-prefs {
    display: block;
    width: 100%;
    padding: 14px;
    background: #2e7d32;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.2s;
}

.btn-save-prefs:hover {
    background: #1b5e20;
}

.btn-save-prefs:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.prefs-save-status {
    margin-top: 10px;
    padding: 10px;
    border-radius: 8px;
    font-size: 13px;
    text-align: center;
    display: none;
}

.prefs-save-status.success {
    background: #dcfce7;
    color: #166534;
    display: block;
}

