/* Header MGE & CO */
.nav-logo {
    width: 3.75rem;
    height: 3.75rem;
    object-fit: contain;
}
@media (min-width: 1024px) {
    .nav-logo { width: 4.6875rem; height: 4.6875rem; }
}

nav.site-nav {
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(18px) saturate(1.2);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    border-bottom: 1px solid rgba(11, 61, 46, 0.06);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset,
                0 8px 32px rgba(11, 61, 46, 0.06);
    transition: background 0.35s ease, box-shadow 0.35s ease,
                border-color 0.35s ease;
}
nav.site-nav::before {
    content: '';
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--color-accent, #e8a317) 20%,
        var(--color-primary, #0b3d2e) 50%,
        var(--color-accent, #e8a317) 80%,
        transparent 100%);
    opacity: 0.85;
    pointer-events: none;
}
nav.site-nav.is-scrolled {
    background: rgba(255, 255, 255, 0.92);
    border-bottom-color: rgba(11, 61, 46, 0.08);
    box-shadow: 0 10px 36px rgba(11, 61, 46, 0.1);
}
nav.site-nav:has(.nav-mobile.is-open) {
    background: rgba(255, 255, 255, 0.98);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
    transition: padding 0.3s ease;
}
nav.site-nav.is-scrolled .nav-inner {
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 0;
    text-decoration: none;
    letter-spacing: -0.02em;
}
.nav-brand-mark {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.9rem;
    height: 2.9rem;
    border-radius: 0.85rem;
    background: linear-gradient(145deg, #eef5f1 0%, #d4e5dc 100%);
    border: 1px solid rgba(11, 61, 46, 0.08);
    box-shadow: 0 2px 8px rgba(11, 61, 46, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
@media (min-width: 1024px) {
    .nav-brand-mark { width: 3.35rem; height: 3.35rem; }
}
.nav-brand:hover .nav-brand-mark {
    transform: scale(1.04);
    box-shadow: 0 4px 14px rgba(11, 61, 46, 0.12);
}
.nav-brand-mark .nav-logo {
    width: 2.15rem !important;
    height: 2.15rem !important;
}
@media (min-width: 1024px) {
    .nav-brand-mark .nav-logo {
        width: 2.5rem !important;
        height: 2.5rem !important;
    }
}
.nav-brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.15;
}
.nav-brand-name {
    font-family: 'Poppins', 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--color-primary, #0b3d2e);
}
@media (min-width: 640px) {
    .nav-brand-name { font-size: 1.05rem; }
}
@media (min-width: 1024px) {
    .nav-brand-name { font-size: 1.15rem; }
}
.nav-brand-tag {
    font-size: 0.65rem;
    font-weight: 500;
    color: #6b7c74;
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 11rem;
}
@media (min-width: 640px) {
    .nav-brand-tag { font-size: 0.7rem; max-width: none; }
}

.nav-desktop {
    display: none;
    align-items: center;
    gap: 0.2rem;
}
@media (min-width: 1024px) {
    .nav-desktop { display: flex; }
}

.nav-link {
    position: relative;
    padding: 0.45rem 0.65rem;
    color: #1a1a1a;
    font-weight: 500;
    font-size: 0.875rem;
    text-decoration: none;
    white-space: nowrap;
    border-radius: 0.5rem;
    transition: color 0.2s ease, background 0.2s ease;
}
.nav-link:hover {
    color: var(--color-primary, #0b3d2e);
    background: rgba(11, 61, 46, 0.05);
}
.nav-link::after {
    content: '';
    position: absolute;
    left: 0.65rem;
    right: 0.65rem;
    bottom: 0.2rem;
    height: 2px;
    background: var(--color-accent, #e8a317);
    border-radius: 1px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.28s ease;
}
.nav-link:hover::after,
.nav-link.is-active::after { transform: scaleX(1); }
.nav-link.is-active {
    color: var(--color-primary, #0b3d2e);
    font-weight: 600;
    background: rgba(11, 61, 46, 0.06);
}

.nav-cta {
    display: none;
    align-items: center;
    gap: 0.4rem;
    margin-left: 0.55rem;
    padding: 0.55rem 1.15rem;
    border-radius: 9999px;
    background: var(--color-accent, #e8a317);
    color: #1a1a1a;
    font-weight: 600;
    font-size: 0.8125rem;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(232, 163, 23, 0.35);
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
@media (min-width: 1024px) {
    .nav-cta { display: inline-flex; }
}
.nav-cta:hover {
    background: #f0b52e;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(232, 163, 23, 0.45);
}

.nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    border-radius: 0.65rem;
    background: rgba(11, 61, 46, 0.06);
    color: var(--color-primary, #0b3d2e);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}
@media (min-width: 1024px) {
    .nav-toggle { display: none; }
}
.nav-toggle:hover { background: rgba(11, 61, 46, 0.12); }
.nav-toggle[aria-expanded="true"] {
    background: var(--color-primary, #0b3d2e);
    color: #fff;
}

.nav-mobile {
    display: none;
    flex-direction: column;
    gap: 0.15rem;
    margin-top: 0.35rem;
    padding: 0.65rem 0 0.85rem;
    border-top: 1px solid rgba(11, 61, 46, 0.08);
    animation: navMobileIn 0.28s ease;
}
.nav-mobile.is-open { display: flex; }
@media (min-width: 1024px) {
    .nav-mobile,
    .nav-mobile.is-open { display: none !important; }
}
@keyframes navMobileIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}
.nav-mobile a {
    display: block;
    padding: 0.7rem 0.85rem;
    border-radius: 0.6rem;
    color: #1a1a1a;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}
.nav-mobile a:hover,
.nav-mobile a.is-active {
    background: rgba(11, 61, 46, 0.07);
    color: var(--color-primary, #0b3d2e);
}
.nav-mobile a.is-active { font-weight: 600; }
.nav-mobile-cta {
    margin-top: 0.4rem !important;
    text-align: center;
    background: var(--color-accent, #e8a317) !important;
    color: #1a1a1a !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 12px rgba(232, 163, 23, 0.3);
}
.nav-mobile-cta:hover {
    background: #f0b52e !important;
}

@media (prefers-reduced-motion: reduce) {
    nav.site-nav,
    .nav-brand-mark,
    .nav-link,
    .nav-cta,
    .nav-mobile { transition: none; animation: none; }
    .back-to-top { transition: none; }
}

/* Bouton remonter en haut */
.back-to-top {
    position: fixed;
    right: 1.15rem;
    bottom: 1.15rem;
    z-index: 60;
    width: 2.85rem;
    height: 2.85rem;
    border: none;
    border-radius: 9999px;
    background: var(--color-primary, #0b3d2e);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(11, 61, 46, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(0.6rem);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease, background 0.2s ease;
}
.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    background: var(--color-accent, #e8a317);
    color: #1a1a1a;
}
.back-to-top:focus-visible {
    outline: 2px solid var(--color-accent, #e8a317);
    outline-offset: 3px;
}
@media (min-width: 640px) {
    .back-to-top {
        right: 1.5rem;
        bottom: 1.5rem;
        width: 3.1rem;
        height: 3.1rem;
    }
}

