/* Association Bon Regard — complements Tailwind (dropdowns, tabs, motion) */

html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#mainHeader {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #0a1626;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    max-width: 80rem;
    margin: 0 auto;
    padding: 0.6rem 1rem;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    text-decoration: none;
}

.header-logo-mark {
    display: inline-flex;
    width: 2.5rem;
    height: 2.5rem;
    overflow: hidden;
    border-radius: 999px;
    background: #12243a;
    flex-shrink: 0;
}

.header-logo-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
}

.header-logo-text {
    display: none;
    flex-direction: column;
    line-height: 1.15;
}

.header-logo-text span {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
}

.header-logo-text small {
    color: #d4af37;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.18em;
}

.header-desktop-nav {
    display: none;
    align-items: center;
    gap: 0.15rem;
}

.header-desktop-nav > a,
.header-desktop-nav .nav-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.8rem;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 999px;
    cursor: pointer;
}

.header-desktop-nav > a:hover,
.header-desktop-nav .nav-tab:hover,
.header-desktop-nav > a.is-active,
.header-desktop-nav .nav-tab.is-active {
    color: #d4af37;
}

.header-desktop-nav .nav-tab i {
    font-size: 10px;
    opacity: 0.7;
}

.nav-item {
    position: relative;
}

.dropdown-panel {
    display: none;
    position: absolute;
    left: 0;
    top: calc(100% + 0.4rem);
    min-width: 16rem;
    padding: 0.4rem 0;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 18px 50px -20px rgba(10, 22, 38, 0.28);
    z-index: 60;
}

.nav-item.open .dropdown-panel {
    display: block;
}

.dropdown-panel a {
    display: block;
    padding: 0.6rem 1rem;
    color: #12243a;
    font-size: 0.875rem;
    text-decoration: none;
}

.dropdown-panel a:hover {
    background: #f7f4ee;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-link,
.header-cta {
    display: none;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
}

.header-link {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.header-cta {
    background: #d4af37;
    color: #0a1626;
}

.header-burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.mobile-panel {
    display: none;
    background: #fff;
    border-top: 1px solid #eee;
    padding: 0.5rem 0.75rem 1rem;
    max-height: 70vh;
    overflow-y: auto;
}

.mobile-panel:not([hidden]) {
    display: block;
}

.mobile-panel a,
.mobile-acc-btn {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0.85rem;
    border: 0;
    background: transparent;
    color: #0a1626;
    font-size: 0.925rem;
    font-weight: 600;
    text-align: left;
    text-decoration: none;
    border-radius: 0.75rem;
    cursor: pointer;
}

.mobile-acc-panel {
    display: none;
    padding: 0 0.5rem 0.4rem 1rem;
}

.mobile-acc.open .mobile-acc-panel {
    display: block;
}

.mobile-acc.open .mobile-acc-btn i {
    transform: rotate(180deg);
}

.mobile-acc-panel a {
    color: #3c597c;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.5rem 0.85rem;
}

.mobile-contact {
    background: #d4af37 !important;
    color: #0a1626 !important;
    justify-content: center !important;
    margin-top: 0.4rem;
}

@media (min-width: 640px) {
    .header-logo-text {
        display: flex;
    }
}

@media (min-width: 1024px) {
    .header-link,
    .header-cta {
        display: inline-flex;
    }
}

@media (min-width: 1280px) {
    .header-desktop-nav {
        display: flex;
    }

    .header-burger,
    .mobile-panel {
        display: none !important;
    }
}

.tab-content,
.gallery-tab-content {
    display: none;
}

.tab-content.active,
.gallery-tab-content.active {
    display: block;
    animation: fadeUp 0.35s ease both;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-btn.active,
.gallery-tab-btn.active {
    background-color: #0a1626;
    color: #d4af37;
    border-color: #0a1626;
}

.filter-btn.active {
    background-color: #12243a;
    color: #fff;
    border-color: #12243a;
}

.faq-answer {
    display: none;
}

.faq-answer.active {
    display: block;
}

.link-copied-message {
    display: none;
}

.link-copied-message.show {
    display: block;
}
