html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem #ffffff, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

/* Corps général */

body.app-body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f3f4f6;
}

/* ----- Topbar ----- */

.topbar {
    position: sticky;
    top: 0;
    z-index: 1030;
}

.brand-icon {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: #e11d48;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 18px;
}

.navbar-brand span:last-child {
    font-weight: 600;
}

/* ----- En-tête de page / contenu ----- */

.app-main-single {
    flex: 1 0 auto;
}

.page-header {
    padding-top: 0.25rem;
}

.page-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: #111827;
}

.page-subtitle {
    font-size: 0.85rem;
    color: #6b7280;
}

.btn-back-home {
    border-radius: 999px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.btn-back-home-icon {
    font-size: 1rem;
    line-height: 1;
}

/* ----- Footer simple ----- */

.app-footer-simple {
    flex-shrink: 0;
    background-color: #ffffff;
    border-top: 1px solid #e5e7eb;
}

/* ----- Cartes / tables générales ----- */

.table {
    background-color: #ffffff;
}

    .table thead th {
        border-bottom-width: 1px;
        background-color: #f9fafb;
    }

.card {
    border-radius: 1rem;
    border-color: rgba(148, 163, 184, 0.4);
}

    .card .card-title {
        font-weight: 600;
    }

/* ============================
   Accueil : hero de Noël
   ============================ */

.home-hero {
    position: relative;
    min-height: 220px;
    border-radius: 1.5rem;
    overflow: hidden;
    color: #ffffff;
    background-color: #111827;
    margin-top: 0.25rem;
}

.home-hero-bg {
    position: absolute;
    inset: 0;
    background-image: linear-gradient( 120deg, rgba(15, 23, 42, 0.9), rgba(185, 28, 28, 0.75) ), url("/images/hero-noel.jpg");
    background-size: cover;
    background-position: center;
    filter: brightness(0.9);
    opacity: 0.95;
}

.home-hero-content {
    position: relative;
    padding: 2.25rem 2.25rem;
    z-index: 1;
}

.home-hero-title {
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.home-hero-subtitle {
    font-size: 0.98rem;
    max-width: 560px;
    color: #e5e7eb;
    margin-bottom: 0;
}

/* Cartes de la section "Accès rapide" */

.home-card {
    border-radius: 1rem;
    border-color: rgba(148, 163, 184, 0.4);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

/* Liste des groupes sur l'accueil */

.home-group-list {
    margin: 0;
    padding: 0;
}

.home-group-item {
    padding: 0.75rem 0.9rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background-color: #f9fafb;
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

    .home-group-item:hover {
        background-color: #f3f4f6;
        box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
    }

.home-group-name {
    font-weight: 600;
    font-size: 0.98rem;
}

.home-group-members {
    font-size: 0.9rem;
}

/* ============================
   "Cadeaux de mes groupes" (AllGroups)
   ============================ */

.group-board {
    border-radius: 1.25rem;
    border: 1px solid rgba(148, 163, 184, 0.45);
    background-color: #ffffff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    margin-bottom: 1.5rem;
}

.group-board-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.group-title {
    font-weight: 600;
    font-size: 1.05rem;
    color: #111827;
}

.group-meta {
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 0.15rem;
}

.group-badges .badge {
    margin-left: 0.25rem;
}

.group-members-grid {
    padding: 1rem 1.25rem 1.25rem;
}

.member-column-card {
    border-radius: 1rem;
    border: 1px solid rgba(209, 213, 219, 0.9);
    background-color: #f9fafb;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.member-header {
    padding: 0.75rem 0.9rem;
    border-bottom: 1px solid #e5e7eb;
}

.member-name {
    font-weight: 600;
    font-size: 0.98rem;
}

.member-email {
    font-size: 0.8rem;
    color: #6b7280;
}

.member-body {
    padding: 0.75rem 0.9rem 0.9rem;
}

.wishlist-item-card {
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    background-color: #ffffff;
    padding: 0.5rem 0.6rem;
    margin-bottom: 0.5rem;
}

.wishlist-item-title {
    font-weight: 600;
    font-size: 0.95rem;
}

.wishlist-item-price {
    font-size: 0.85rem;
    color: #111827;
}

.wishlist-item-description {
    font-size: 0.85rem;
    color: #4b5563;
}

.wishlist-item-link .btn {
    padding: 0.1rem 0.55rem;
    font-size: 0.8rem;
}

/* ============================
   Responsive / mobile
   ============================ */

@media (max-width: 768px) {
    body.app-body {
        background-color: #f9fafb;
    }

    .home-hero {
        margin: 0 -0.75rem 1rem;
        border-radius: 0;
    }

    .home-hero-content {
        padding: 1.5rem 1.25rem;
        text-align: center;
    }

    .home-hero-title {
        font-size: 1.5rem;
        line-height: 1.2;
    }

    .home-hero-subtitle {
        margin-inline: auto;
    }

    .home-card {
        border-radius: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .home-group-item {
        padding: 0.6rem 0.7rem;
    }

    .home-group-members {
        font-size: 0.9rem;
    }

    .form-control,
    .btn {
        font-size: 0.95rem;
    }

    .btn-block-mobile {
        width: 100%;
        display: inline-flex;
        justify-content: center;
    }

    .group-board-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .group-badges {
        margin-top: 0.25rem;
    }
}

@media (max-width: 480px) {
    .home-hero-title {
        font-size: 1.3rem;
    }

    .home-hero-subtitle {
        font-size: 0.9rem;
    }
}

/* ============================
   Tableaux -> cartes sur mobile
   (pour les vues qui utilisent .table-card-mobile)
   ============================ */

@media (max-width: 768px) {
    .table.table-card-mobile {
        border-collapse: separate;
        border-spacing: 0;
        width: 100%;
    }

        .table.table-card-mobile thead {
            display: none;
        }

        .table.table-card-mobile tbody tr {
            display: block;
            background-color: #ffffff;
            border-radius: 0.75rem;
            border: 1px solid rgba(148, 163, 184, 0.5);
            margin-bottom: 0.75rem;
            padding: 0.5rem 0.75rem;
            box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
        }

        .table.table-card-mobile tbody td {
            display: flex;
            width: 100%;
            padding: 0.25rem 0;
            border-top: none;
            font-size: 0.95rem;
        }

            .table.table-card-mobile tbody td::before {
                content: attr(data-label);
                flex: 0 0 40%;
                max-width: 40%;
                font-weight: 600;
                color: #6b7280;
                padding-right: 0.5rem;
            }

            .table.table-card-mobile tbody td.actions-cell {
                justify-content: flex-end;
            }

                .table.table-card-mobile tbody td.actions-cell::before {
                    content: attr(data-label);
                    flex: 0 0 auto;
                    max-width: none;
                    font-weight: 500;
                    color: #9ca3af;
                    margin-right: auto;
                }
}
