* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    padding-bottom: 100px; /* Space for bottom navigation */
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

header {
    text-align: center;
    color: white;
    margin-bottom: 40px;
}

header h1 {
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.header-logo {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.user-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
}

.user-info span {
    font-size: 1.1rem;
}

.logout-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: white;
    color: #667eea;
}

.admin-btn {
    background: #ffd700;
    color: #333;
    border: 2px solid #ffd700;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.admin-btn:hover {
    background: #ffed4e;
    border-color: #ffed4e;
    transform: translateY(-2px);
}

/* Section Styles */
section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.section-header h2 {
    color: #333;
    font-size: 1.8rem;
}

/* Upload Area */
.upload-area {
    text-align: center;
    margin-bottom: 30px;
}

.upload-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.upload-icon {
    font-size: 1.3rem;
}

/* Files Grid */
.files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.file-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
}

.file-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.file-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.file-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    word-break: break-word;
}

.file-size {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.file-meta {
    color: #888;
    font-size: 0.8rem;
    font-style: italic;
}

.view-hint {
    margin-top: 10px;
    color: #667eea;
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.file-card:hover .view-hint {
    opacity: 1;
}

.delete-file-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff4757;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    transition: background 0.3s ease;
}

.delete-file-btn:hover {
    background: #ff3838;
}

/* Notes Section */
.add-note-btn {
    background: #10ac84;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background 0.3s ease;
}

.add-note-btn:hover {
    background: #0e9470;
}

.notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.note-card {
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
}

.note-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.note-card h3 {
    color: #2d3436;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.note-card p {
    color: #636e72;
    line-height: 1.6;
    max-height: 100px;
    overflow: hidden;
}

.note-date {
    font-size: 0.8rem;
    color: #636e72;
    margin-top: 10px;
}

.note-meta {
    margin-top: 10px;
}

.note-author {
    font-size: 0.8rem;
    color: #636e72;
    font-style: italic;
    margin-top: 5px;
}

.delete-note-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ff4757;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    transition: background 0.3s ease;
}

.delete-note-btn:hover {
    background: #ff3838;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 2px solid #f0f0f0;
}

.modal-header h3 {
    color: #333;
    font-size: 1.5rem;
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #333;
}

.modal-body {
    padding: 25px;
}

.note-input {
    width: 100%;
    padding: 12px;
    font-size: 1.1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: border-color 0.3s ease;
}

.note-input:focus {
    outline: none;
    border-color: #667eea;
}

.note-textarea {
    width: 100%;
    min-height: 200px;
    padding: 12px;
    font-size: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    resize: vertical;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.note-textarea:focus {
    outline: none;
    border-color: #667eea;
}

.modal-footer {
    padding: 20px 25px;
    border-top: 2px solid #f0f0f0;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.cancel-btn, .save-btn {
    padding: 10px 25px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.cancel-btn {
    background: #e0e0e0;
    color: #333;
}

.cancel-btn:hover {
    background: #d0d0d0;
}

.save-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.save-btn:hover {
    background: linear-gradient(135deg, #5568d3 0%, #6a4190 100%);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px;
    color: #999;
}

.empty-state p {
    font-size: 1.1rem;
}

/* Calendar Section */
.calendar-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

.calendar-controls h3 {
    color: #333;
    font-size: 1.3rem;
}

.nav-btn {
    background: #667eea;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background 0.3s ease;
}

.nav-btn:hover {
    background: #5568d3;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.calendar-day-header {
    background: #667eea;
    color: white;
    padding: 10px;
    text-align: center;
    font-weight: 600;
    border-radius: 5px;
}

.calendar-day {
    background: #f8f9fa;
    min-height: 100px;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.calendar-day:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.calendar-day.other-month {
    opacity: 0.3;
}

.calendar-day.today {
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
    font-weight: 600;
}

.day-number {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.calendar-day.other-month .day-number {
    color: #999;
}

.day-events {
    margin-top: 5px;
}

.event-dot {
    display: block;
    padding: 3px 6px;
    margin: 2px 0;
    border-radius: 3px;
    font-size: 0.75rem;
    color: white;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.8rem;
    }

    section {
        padding: 20px;
    }

    .section-header h2 {
        font-size: 1.4rem;
    }

    .files-grid, .notes-grid {
        grid-template-columns: 1fr;
    }

    .calendar-grid {
        gap: 5px;
    }

    .calendar-day {
        min-height: 80px;
        padding: 5px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Pages Container */
.pages-container {
    position: relative;
    min-height: 60vh;
}

.page {
    display: none;
}

.page.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Bottom Navigation Bar */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #5a9fd4;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 12px 0;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px 15px;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    font-weight: 500;
    flex: 1;
    max-width: 120px;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.nav-icon {
    width: 28px;
    height: 28px;
    stroke-width: 2.5;
}

.nav-item span {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Travaux Section */
.travaux-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.travaux-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.travaux-card {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    padding: 25px;
    border-radius: 12px;
    color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.travaux-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.travaux-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.travaux-card p {
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.5;
}

.travaux-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.travaux-edit {
    flex: 1;
    padding: 8px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.travaux-edit:hover {
    background: rgba(255, 255, 255, 0.3);
}

.travaux-delete {
    flex: 1;
    padding: 8px;
    background: rgba(255, 71, 87, 0.8);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.travaux-delete:hover {
    background: rgba(238, 47, 59, 0.9);
}

/* Budget Section */
.budget-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.budget-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.budget-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 25px;
    border-radius: 12px;
    color: white;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.budget-card h3 {
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.9;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.budget-card .amount {
    font-size: 2rem;
    font-weight: 700;
}

.budget-grid {
    margin-top: 20px;
}

.budget-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.budget-table th,
.budget-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.budget-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.budget-table tr:hover {
    background: #f8f9fa;
}

.budget-table .income {
    color: #10ac84;
    font-weight: 600;
}

.budget-table .expense {
    color: #ee5a6f;
    font-weight: 600;
}

/* Infos Section */
.infos-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.infos-content {
    display: grid;
    gap: 20px;
    margin-top: 20px;
}

.info-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px;
    border-radius: 12px;
    color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.info-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.info-card p {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.95;
}

/* Sub-tabs for Maison page */
.sub-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 10px;
}

.sub-tab {
    flex: 1;
    min-width: 120px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

.sub-tab:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.sub-tab.active {
    background: white;
    color: #667eea;
    border-color: white;
}

.sub-tab-content {
    display: none;
}

.sub-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Poubelles Section */
.poubelles-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.poubelles-calendar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.poubelle-card {
    padding: 25px;
    border-radius: 12px;
    color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    text-align: center;
}

.poubelle-card:hover {
    transform: translateY(-5px);
}

.poubelle-card.ordures {
    background: linear-gradient(135deg, #434343 0%, #000000 100%);
}

.poubelle-card.recyclage {
    background: linear-gradient(135deg, #f7971e 0%, #ffd200 100%);
}

.poubelle-card.verre {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e063 100%);
}

.poubelle-card.bio {
    background: linear-gradient(135deg, #93a5cf 0%, #e4efe9 100%);
}

.poubelle-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.poubelle-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.poubelle-day {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 10px 0;
}

.next-collection {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.poubelle-container {
    font-size: 1rem;
    font-weight: 700;
    margin: 8px 0;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
}

.poubelle-link {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.3);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.poubelle-link:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.poubelles-info {
    margin-top: 30px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #667eea;
}

.poubelles-info h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.poubelles-info ul {
    list-style: none;
    padding: 0;
}

.poubelles-info li {
    padding: 10px 0;
    color: #555;
    font-size: 0.95rem;
    border-bottom: 1px solid #e0e0e0;
}

.poubelles-info li:last-child {
    border-bottom: none;
}

.poubelles-info strong {
    color: #667eea;
}

/* Courses Section */
.courses-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.courses-input {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.course-input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.course-input:focus {
    outline: none;
    border-color: #667eea;
}

.add-course-quick-btn {
    padding: 12px 25px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.add-course-quick-btn:hover {
    background: #5568d3;
    transform: translateY(-2px);
}

.courses-list {
    margin-top: 20px;
}

.course-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.course-item:hover {
    background: #e9ecef;
}

.course-item.checked {
    opacity: 0.6;
    text-decoration: line-through;
}

.course-checkbox {
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.course-text {
    flex: 1;
    font-size: 1.05rem;
    color: #333;
}

.course-delete {
    padding: 8px 15px;
    background: #ff4757;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.course-delete:hover {
    background: #ee2f3b;
}

/* Inventaire Section */
.inventaire-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.inventaire-categories {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.category-filter {
    padding: 10px 20px;
    background: #f8f9fa;
    color: #333;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.category-filter:hover {
    background: #e9ecef;
    border-color: #667eea;
}

.category-filter.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.inventaire-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.inventaire-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    border-radius: 12px;
    color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.inventaire-card:hover {
    transform: translateY(-5px);
}

.inventaire-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.inventaire-info {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 5px 0;
}

.inventaire-quantity {
    display: inline-block;
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    font-weight: 600;
    margin-top: 10px;
}

.inventaire-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.inventaire-edit {
    flex: 1;
    padding: 8px;
    background: #5a9fd4;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.inventaire-edit:hover {
    background: #4a8fc4;
}

.inventaire-delete {
    flex: 1;
    padding: 8px;
    background: #ff4757;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.inventaire-delete:hover {
    background: #ee2f3b;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    body {
        padding-bottom: 90px;
    }

    .bottom-nav {
        padding: 8px 0;
    }

    .nav-item {
        padding: 6px 8px;
        max-width: 80px;
    }

    .nav-icon {
        width: 24px;
        height: 24px;
    }

    .nav-item span {
        font-size: 0.65rem;
    }
}

/* Adresses Section */
.adresses-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-top: 30px;
}

.adresses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.adresse-card {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e063 100%);
    padding: 20px;
    border-radius: 12px;
    color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
}

.adresse-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.adresse-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.adresse-card .categorie-badge {
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    border-radius: 15px;
    display: inline-block;
    margin-bottom: 10px;
    margin-right: 8px;
}

.adresse-card .no-map-badge {
    font-size: 0.75rem;
    background: rgba(255, 193, 7, 0.3);
    color: #fff;
    padding: 3px 8px;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 193, 7, 0.5);
}

.adresse-card .on-map-badge {
    font-size: 0.75rem;
    background: rgba(40, 167, 69, 0.3);
    color: #fff;
    padding: 3px 8px;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 10px;
    border: 1px solid rgba(40, 167, 69, 0.5);
}

.adresse-card p {
    margin: 8px 0;
    font-size: 0.95rem;
    opacity: 0.95;
}

.adresse-card .adresse-info {
    margin: 8px 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.adresse-card .adresse-notes {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 0.9rem;
    font-style: italic;
    opacity: 0.9;
}

.adresse-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.adresse-edit,
.adresse-delete {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.adresse-edit:hover {
    background: rgba(0, 123, 255, 0.9);
}

.adresse-delete:hover {
    background: rgba(220, 53, 69, 0.9);
}

/* Map customization */
.custom-marker {
    background: transparent !important;
    border: none !important;
}

.leaflet-popup-content-wrapper {
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.leaflet-popup-content {
    margin: 15px;
}

/* Infos Page Sections */
.infos-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-bottom: 30px;
}

/* Bricorama Section */
.bricorama-content {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.bricorama-image {
    max-width: 400px;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.2s;
}

.bricorama-image:hover {
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .bricorama-image {
        max-width: 300px;
    }
}

/* WiFi Section */
.wifi-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.wifi-info p {
    font-size: 1.1rem;
    margin: 0;
}

.wifi-info strong {
    color: #5a9fd4;
}

.show-password-btn {
    padding: 10px 20px;
    background: #5a9fd4;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background 0.2s;
    align-self: flex-start;
}

.show-password-btn:hover {
    background: #4a8fc4;
}

/* Utile Grid */
.utile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.utile-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    border-radius: 12px;
    color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
}

.utile-card:hover {
    transform: translateY(-5px);
}

.utile-card h3 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
}

.utile-card .phone {
    font-size: 1.3rem;
    font-weight: bold;
    margin: 10px 0;
}

.utile-card .notes {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 10px;
}

.utile-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.utile-delete {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.utile-delete:hover {
    background: rgba(220, 53, 69, 0.9);
}

/* Suggestions Grid */
.suggestions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.suggestion-card {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    padding: 20px;
    border-radius: 12px;
    color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
}

.suggestion-card:hover {
    transform: translateY(-5px);
}

.suggestion-card h3 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
}

.suggestion-card .categorie-badge {
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    border-radius: 15px;
    display: inline-block;
    margin-bottom: 10px;
}

.suggestion-card p {
    margin: 10px 0;
    font-size: 0.95rem;
    opacity: 0.95;
}

.suggestion-card a {
    color: white;
    text-decoration: underline;
    font-size: 0.9rem;
}

.suggestion-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.suggestion-delete {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.suggestion-delete:hover {
    background: rgba(220, 53, 69, 0.9);
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.article-card {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    padding: 25px;
    border-radius: 12px;
    color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
}

.article-card:hover {
    transform: translateY(-5px);
}

.article-card h3 {
    margin: 0 0 10px 0;
    font-size: 1.3rem;
}

.article-card .date {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-bottom: 15px;
}

.article-card .contenu {
    margin: 15px 0;
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.95;
}

.article-card a {
    color: white;
    text-decoration: underline;
    font-size: 0.9rem;
}

.article-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.article-delete {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.article-delete:hover {
    background: rgba(220, 53, 69, 0.9);
}

/* Marées Section */
.marees-info {
    margin-top: 20px;
}

/* Généalogie Section */
.genealogie-content {
    margin-top: 20px;
}

/* ========== ARTICLES ========== */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.article-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.article-header {
    margin-bottom: 10px;
}

.article-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.15rem;
    line-height: 1.4;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.article-author {
    font-size: 0.9rem;
    color: #667eea;
    font-weight: 500;
}

.article-date {
    font-size: 0.85rem;
    color: #888;
}

.article-content {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1;
}

.article-link {
    display: inline-block;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 0;
    transition: color 0.2s;
}

.article-link:hover {
    color: #5a6fd6;
    text-decoration: underline;
}

.article-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid #eee;
}

.article-actions button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background 0.2s, transform 0.2s;
}

.article-actions .edit-btn:hover {
    background: #e3f2fd;
    transform: scale(1.1);
}

.article-actions .delete-btn:hover {
    background: #ffebee;
    transform: scale(1.1);
}
