/* Ambax - Le Site du Village */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,700&display=swap');

:root {
    --vert: #198754;
    --vert-fonce: #146c43;
    --beige: #f8f9fc;
}

body {
    font-family: 'DM Sans', sans-serif;
    color: #1f1f1f;
    background: var(--beige);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Sora', sans-serif;
}

/* Hero section */
.hero-section {
    background: linear-gradient(135deg, #1a3a2a 0%, #2d6a4f 50%, #1a3a2a 100%);
    min-height: 60vh;
    background-size: cover;
    background-position: center;
}

.hero-section h1 {
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* Cards */
.card {
    transition: transform 0.2s, box-shadow 0.2s;
    border-radius: 12px;
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important;
}

/* Formulaires */
.form-control:focus, .form-select:focus {
    border-color: var(--vert);
    box-shadow: 0 0 0 0.2rem rgba(25,135,84,0.25);
}

/* Boutons */
.btn-success {
    background: var(--vert);
    border-color: var(--vert);
}
.btn-success:hover {
    background: var(--vert-fonce);
    border-color: var(--vert-fonce);
}
.btn-outline-success {
    color: var(--vert);
    border-color: var(--vert);
}
.btn-outline-success:hover {
    background: var(--vert);
    border-color: var(--vert);
}

/* Messages */
.alert {
    border-radius: 10px;
}

/* Galerie */
.galerie-img {
    height: 250px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 0.4em 0.7em;
}

/* Annonce cards */
.card-title {
    font-family: 'Sora', sans-serif;
    font-weight: 600;
}

/* Footer */
footer a {
    text-decoration: none;
}
footer a:hover {
    color: var(--vert) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        min-height: 40vh;
    }
    .hero-section h1 {
        font-size: 2rem;
    }
}

/* === Dark theme overrides === */
[data-bs-theme="dark"] body {
    background: #1a1d21;
    color: #e0e0e0;
}

[data-bs-theme="dark"] .card {
    background: #2a2d33;
    border-color: #3a3d43;
}
[data-bs-theme="dark"] .card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.3) !important;
}

[data-bs-theme="dark"] .card-header {
    background: #2a2d33;
    border-color: #3a3d43;
}

[data-bs-theme="dark"] .table {
    color: #e0e0e0;
}
[data-bs-theme="dark"] .table-light {
    background: #33363d;
    color: #e0e0e0;
}
[data-bs-theme="dark"] .table-hover tbody tr:hover {
    background: #363940;
    color: #e0e0e0;
}

[data-bs-theme="dark"] .bg-light {
    background: #2a2d33 !important;
}

[data-bs-theme="dark"] .text-muted {
    color: #9a9ea8 !important;
}

[data-bs-theme="dark"] .modal-content {
    background: #2a2d33;
    border-color: #3a3d43;
}
[data-bs-theme="dark"] .modal-header {
    border-color: #3a3d43;
}
[data-bs-theme="dark"] .modal-footer {
    border-color: #3a3d43;
}

[data-bs-theme="dark"] .dropdown-menu {
    background: #2a2d33;
    border-color: #3a3d43;
}
[data-bs-theme="dark"] .dropdown-item {
    color: #e0e0e0;
}
[data-bs-theme="dark"] .dropdown-item:hover {
    background: #3a3d43;
    color: #fff;
}
[data-bs-theme="dark"] .dropdown-divider {
    border-color: #3a3d43;
}

[data-bs-theme="dark"] .breadcrumb-item a {
    color: #4caf50;
}
[data-bs-theme="dark"] .breadcrumb-item.active {
    color: #9a9ea8;
}

[data-bs-theme="dark"] .list-group-item {
    background: #2a2d33;
    border-color: #3a3d43;
    color: #e0e0e0;
}

[data-bs-theme="dark"] footer.bg-dark {
    background: #15171a !important;
}

[data-bs-theme="dark"] .table-warning {
    background: #3d3520 !important;
    color: #e0e0e0;
}

[data-bs-theme="dark"] .alert {
    background: #2a2d33;
    border-color: #3a3d43;
    color: #e0e0e0;
}
[data-bs-theme="dark"] .alert-success {
    background: #1b3a2a;
    border-color: #2d6a4f;
}
[data-bs-theme="dark"] .alert-danger {
    background: #3a1b1b;
    border-color: #6a2d2d;
}
[data-bs-theme="dark"] .alert-info {
    background: #1b2a3a;
    border-color: #2d4f6a;
}
[data-bs-theme="dark"] .alert-warning {
    background: #3a3520;
    border-color: #6a5f2d;
}

[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select {
    background: #1e2126;
    border-color: #3a3d43;
    color: #e0e0e0;
}
[data-bs-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] .form-select:focus {
    background: #25282e;
    border-color: #198754;
    color: #e0e0e0;
}
[data-bs-theme="dark"] .form-control::placeholder {
    color: #6a6e78;
}

[data-bs-theme="dark"] .input-group-text {
    background: #2a2d33;
    border-color: #3a3d43;
    color: #e0e0e0;
}

[data-bs-theme="dark"] .btn-outline-secondary {
    color: #9a9ea8;
    border-color: #5a5e68;
}
[data-bs-theme="dark"] .btn-outline-secondary:hover {
    background: #3a3d43;
    color: #fff;
}

[data-bs-theme="dark"] .table-responsive {
    background: transparent;
}

[data-bs-theme="dark"] .badge.bg-light {
    background: #3a3d43 !important;
    color: #e0e0e0 !important;
}

[data-bs-theme="dark"] .nav-tabs .nav-link {
    color: #9a9ea8;
}
[data-bs-theme="dark"] .nav-tabs .nav-link.active {
    background: #2a2d33;
    border-color: #3a3d43;
    color: #e0e0e0;
}
