/**
 * Styles - Module Annonces Immobilieres Client
 * Mobile-first design
 */

/* ============================================================
   VARIABLES CSS
   ============================================================ */
:root {
    --primary-color: #12715B;
    --primary-hover: #0e5a49;
    --secondary-color: #f4f4f9;
    --success-color: #219653;
    --danger-color: #d32f2f;
    --warning-color: #f5a623;
    --text-color: #222222;
    --text-muted: #666666;
    --text-light: #999999;
    --background-color: #f8f9fa;
    --card-background: #ffffff;
    --border-color: #e9ecef;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.5;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ============================================================
   APP CONTAINER
   ============================================================ */
.app-container {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    background-color: var(--card-background);
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .app-container {
        max-width: 600px;
        box-shadow: var(--shadow-lg);
    }
}

/* ============================================================
   HEADER
   ============================================================ */
.app-header {
    padding: 24px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    text-align: center;
}

/* Header page annonce */
.annonce-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background-color: var(--card-background);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 200;
}

.back-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--secondary-color);
    color: var(--text-color);
    transition: background-color 0.2s ease;
}

.back-btn:hover {
    background-color: var(--border-color);
}

.header-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
}

.header-spacer {
    width: 40px;
}

.header-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin: 0 auto 16px;
    background: white;
    border-radius: 12px;
    padding: 8px;
}

.greeting {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.subtitle {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
    display: flex;
    justify-content: space-around;
    padding: 16px 20px;
    background-color: var(--card-background);
    border-bottom: 1px solid var(--border-color);
    margin-top: -12px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================================
   SECTION NOUVEAUTÉS
   ============================================================ */
.new-section {
    padding: 16px 16px 0;
    min-height: 180px;
}

.new-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 12px;
}

.new-badge-icon {
    font-size: 1.2rem;
}

.new-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    padding: 48px 24px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, rgba(99, 102, 241, 0.08) 100%);
    border-radius: var(--radius-lg);
    text-align: center;
}

.new-empty .empty-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.9;
}

.new-empty .empty-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 8px 0;
}

.new-empty .empty-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

.new-carousel {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 12px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.new-carousel::-webkit-scrollbar {
    display: none;
}

.new-card {
    flex: 0 0 auto;
    width: 160px;
    background-color: var(--card-background);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    scroll-snap-align: start;
    transition: transform 0.2s ease;
}

.new-card:hover {
    transform: scale(1.02);
}

.new-card-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.new-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.new-card-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 10px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1ecb8b 100%);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 12px;
}

.new-card-info {
    padding: 10px;
}

.new-card-price {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2px;
}

.new-card-location {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ============================================================
   FILTER TABS
   ============================================================ */
.filter-tabs {
    display: flex;
    overflow-x: auto;
    padding: 0 16px;
    margin: 16px 0;
    gap: 8px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.filter-tabs::-webkit-scrollbar {
    display: none;
}

.filter-tab {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background-color: var(--secondary-color);
    color: var(--text-muted);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.filter-tab:hover {
    background-color: var(--border-color);
}

.filter-tab.active {
    background-color: var(--primary-color);
    color: white;
}

.filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
}

.filter-tab.active .filter-count {
    background-color: rgba(255, 255, 255, 0.2);
}

/* ============================================================
   ANNONCES LIST
   ============================================================ */
.annonces-list {
    flex: 1;
    padding: 0 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ============================================================
   ANNONCE CARD
   ============================================================ */
.annonce-card {
    display: block;
    background-color: var(--card-background);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.annonce-card:active {
    transform: scale(0.98);
}

.annonce-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background-color: var(--secondary-color);
}

.annonce-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.annonce-info {
    padding: 16px;
}

.annonce-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-color);
    line-height: 1.3;
}

.annonce-location {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.annonce-location svg {
    color: var(--primary-color);
    flex-shrink: 0;
}

.annonce-details {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: var(--text-muted);
    background-color: var(--secondary-color);
    padding: 4px 10px;
    border-radius: 20px;
}

.detail-item svg {
    color: var(--primary-color);
}

.annonce-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-color);
}

/* ============================================================
   STATUS BADGES
   ============================================================ */
.status-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

.badge-new {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1ecb8b 100%);
    color: white;
}

.badge-viewed {
    background-color: var(--text-muted);
    color: white;
}

.badge-favorite {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
    color: white;
}

.badge-rejected {
    background-color: var(--danger-color);
    color: white;
}

.badge-archived {
    background-color: #999;
    color: white;
}

/* ============================================================
   DPE BADGE
   ============================================================ */
.dpe-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
}

.dpe {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.dpe-unknown {
    background-color: #999;
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
    text-align: center;
    padding: 48px 24px;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 16px;
}

.empty-state h2 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--text-color);
}

.empty-state p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.app-footer {
    padding: 20px;
    text-align: center;
    border-top: 1px solid var(--border-color);
    background-color: var(--secondary-color);
}

.app-footer p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.contact-link {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
}

.contact-link:hover {
    text-decoration: underline;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: #25D366;
    color: white;
    border-radius: 24px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.whatsapp-btn:hover {
    background-color: #128C7E;
}

.whatsapp-btn:active {
    transform: scale(0.95);
}

.whatsapp-btn svg {
    flex-shrink: 0;
}

/* ============================================================
   PAGE ANNONCE - TABS
   ============================================================ */
.tabs-container {
    position: sticky;
    top: 0;
    background-color: var(--card-background);
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.tabs-nav {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 8px;
}

.tabs-nav::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    flex-shrink: 0;
    padding: 14px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    display: none;
    padding: 20px;
    padding-bottom: 100px; /* Marge pour le bandeau d'action flottant */
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

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

/* ============================================================
   PAGE ANNONCE - IMAGES GRID (Presentation)
   ============================================================ */
.images-grid {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.main-photo {
    flex: 2;
    aspect-ratio: 4/3;
    border-radius: var(--radius-md);
    overflow: hidden;
    background-color: var(--secondary-color);
}

.main-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.side-photos {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.side-photos img {
    flex: 1;
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: var(--radius-md);
    background-color: var(--secondary-color);
}

@media (max-width: 480px) {
    .images-grid {
        flex-direction: column;
    }
    
    /* Sur mobile, cacher les photos secondaires - afficher uniquement la photo principale */
    .side-photos {
        display: none;
    }
    
    .main-photo {
        flex: 1;
        aspect-ratio: 16/10;
    }
}

/* Images grid wrapper avec bouton voir plus */
.images-grid-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.btn-voir-photos {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background-color: rgba(0, 0, 0, 0.75);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: background-color 0.2s ease, transform 0.1s ease;
    z-index: 10;
}

.btn-voir-photos:hover {
    background-color: rgba(0, 0, 0, 0.9);
}

.btn-voir-photos:active {
    transform: scale(0.95);
}

.btn-voir-photos-icon {
    font-size: 1rem;
}

/* Contact professionnel */
.pro-contact-section {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.pro-contact-section h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-color);
}

.pro-contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background-color: var(--secondary-color);
    border-radius: var(--radius-md);
}

.pro-contact-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 8px;
    background-color: white;
    padding: 4px;
}

.pro-contact-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pro-contact-info strong {
    font-size: 0.95rem;
    color: var(--text-color);
}

.pro-contact-link {
    font-size: 0.85rem;
    color: var(--primary-color);
    text-decoration: none;
}

.pro-contact-link:hover {
    text-decoration: underline;
}

/* Marge de sécurité pour le bandeau d'action */
.action-banner-spacer {
    height: 100px;
}

/* ============================================================
   PAGE ANNONCE - PROPERTY INFO
   ============================================================ */
.property-header {
    margin-bottom: 20px;
}

.property-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-color);
}

.property-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 1rem;
}

.property-location svg {
    color: var(--primary-color);
}

.property-price {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 16px 0;
}

/* ============================================================
   PAGE ANNONCE - FEATURES GRID
   ============================================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 20px 0;
}

.feature-card {
    background-color: var(--secondary-color);
    border-radius: var(--radius-md);
    padding: 12px 8px;
    text-align: center;
}

.feature-icon {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.feature-value {
    display: block;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-color);
}

.feature-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

@media (max-width: 360px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================================
   PAGE ANNONCE - DESCRIPTION
   ============================================================ */
.property-description {
    margin-top: 20px;
}

.property-description h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-color);
}

.property-description p {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ============================================================
   PAGE ANNONCE - INFO LIST
   ============================================================ */
.info-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.info-value {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.95rem;
}

/* ============================================================
   PAGE ANNONCE - PHOTOS GALLERY
   ============================================================ */
.photos-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.gallery-item {
    aspect-ratio: 4/3;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================================
   PAGE ANNONCE - QUARTIER IFRAME
   ============================================================ */
.quartier-iframe {
    width: 100%;
    height: 500px;
    border: none;
    border-radius: var(--radius-md);
    background-color: var(--secondary-color);
}

/* ============================================================
   PAGE ANNONCE - NOTES
   ============================================================ */
.notes-section {
    padding: 0;
}

.notes-textarea {
    width: 100%;
    min-height: 200px;
    padding: 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.6;
    resize: vertical;
    transition: border-color 0.2s ease;
}

.notes-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.notes-save-btn {
    display: block;
    width: 100%;
    margin-top: 12px;
    padding: 14px;
    background-color: var(--primary-color);
    color: white;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.notes-save-btn:hover {
    background-color: var(--primary-hover);
}

/* ============================================================
   ACTION BANNER (Floating)
   ============================================================ */
.action-banner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background-color: var(--card-background);
    border-radius: 28px;
    box-shadow: var(--shadow-lg);
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: transform 0.15s ease, background-color 0.2s ease;
}

.action-btn:active {
    transform: scale(0.92);
}

/* Bouton Notes (secondaire) */
.btn-notes {
    width: 48px;
    height: 48px;
    background-color: var(--secondary-color);
    color: var(--text-muted);
    font-size: 1.25rem;
}

.btn-notes:hover {
    background-color: var(--border-color);
}

/* Bouton J'aime (principal vert) */
.btn-like {
    width: 56px;
    height: 56px;
    background-color: var(--success-color);
    color: white;
    font-size: 1.5rem;
}

.btn-like:hover {
    background-color: #1a8047;
}

.btn-like.active {
    background-color: #ff6b6b;
}

/* Bouton Rejeter (principal rouge) */
.btn-reject {
    width: 48px;
    height: 48px;
    background-color: var(--danger-color);
    color: white;
    font-size: 1.25rem;
}

.btn-reject:hover {
    background-color: #b71c1c;
}

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    width: 100%;
    max-width: 400px;
    background-color: var(--card-background);
    border-radius: var(--radius-xl);
    padding: 24px;
    position: relative;
    animation: modalIn 0.3s ease;
}

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

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-muted);
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.modal-close:hover {
    background-color: var(--secondary-color);
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-color);
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 3000;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* ============================================================
   PAGE PARAMETRES
   ============================================================ */
.settings-form {
    padding: 20px;
}

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

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

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

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

.form-input[type="color"] {
    height: 48px;
    padding: 4px;
    cursor: pointer;
}

.color-preview {
    display: flex;
    align-items: center;
    gap: 12px;
}

.color-preview .color-box {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border-color);
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background-color: var(--primary-color);
    color: white;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.submit-btn:hover {
    background-color: var(--primary-hover);
}

/* ============================================================
   UTILITIES
   ============================================================ */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

/* ============================================================
   LOADING STATE
   ============================================================ */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 14px 24px;
    background-color: var(--text-color);
    color: white;
    border-radius: var(--radius-lg);
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 5000;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast.success {
    background-color: var(--success-color);
}

.toast.error {
    background-color: var(--danger-color);
}

/* ============================================================
   SECTION TITLES
   ============================================================ */
.section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border-color);
}

/* ============================================================
   DPE DISPLAY
   ============================================================ */
.dpe-display {
    display: flex;
    gap: 24px;
    margin-bottom: 20px;
}

.dpe-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dpe-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}

.dpe {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* ============================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================ */
@media (max-width: 480px) {
    .annonce-header {
        padding: 12px 16px;
    }
    
    .header-title {
        font-size: 1rem;
    }
    
    .action-banner {
        bottom: 16px;
        gap: 8px;
        padding: 8px 12px;
    }
    
    .btn-like {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .btn-notes,
    .btn-reject {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }
}

