/**
 * Shared Header & Footer Styles
 * Include this CSS in all pages that use the template parts
 */

/* ============================================
   NAVIGATION
============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.25rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(250, 248, 245, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0px 1px 0px rgba(0, 0, 0, 0.05);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-logo-icon {
    width: 38px;
    height: 38px;
    background: var(--color-olive);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.nav-logo-icon svg {
    width: 18px;
    height: 18px;
    fill: var(--color-pink);
}

.nav-logo-text {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--color-charcoal);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.3rem;
    list-style: none;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-earth);
    transition: color 0.3s var(--ease-out);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-olive);
    border-radius: 2px;
    transition: width 0.3s var(--ease-out);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-charcoal);
}

.nav-cta {
    background: var(--color-charcoal);
    color: var(--color-white);
    padding: 0.55rem 1.5rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s var(--ease-out);
}

.nav-cta:hover {
    background: var(--color-olive);
    transform: translateY(-2px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-charcoal);
    border-radius: 2px;
    transition: all 0.3s var(--ease-out);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   FOOTER
============================================ */
.footer {
    background: var(--color-charcoal);
    color: var(--color-caramel);
    padding: 6rem 5% 2rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    font-size: 0.9rem;
    margin-top: 1rem;
    max-width: 280px;
    line-height: 1.7;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--color-white);
}

.footer-column h4 {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-white);
    margin-bottom: 1.25rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--color-caramel);
    transition: color 0.3s var(--ease-out);
}

.footer-links a:hover {
    color: var(--color-white);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.footer-docto {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.footer-docto-icon {
    width: 18px;
    height: 18px;
    background: #F1FCAC;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-docto-icon span {
    font-size: 10px;
    font-weight: 700;
    color: #000;
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    font-size: 0.85rem;
    transition: color 0.3s var(--ease-out);
}

.footer-legal a:hover {
    color: var(--color-white);
}

/* ============================================
   RESPONSIVE - Navigation & Footer
============================================ */
@media (max-width: 1024px) {
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 350px;
        height: 100vh;
        background: var(--color-bg);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        transition: right 0.4s var(--ease-out);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand p {
        max-width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-copyright {
        justify-content: center;
    }
}

/* ==================== SOCIAL NETWORKS FOOTER ==================== */
.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.footer-social-link {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.footer-social-link:hover {
    background: var(--color-olive, #7D8B6F);
    transform: translateY(-3px);
}

.footer-social-link svg {
    width: 18px;
    height: 18px;
    fill: rgba(255, 255, 255, 0.7);
    transition: fill 0.3s ease;
}

.footer-social-link:hover svg {
    fill: white;
}

/* Liens professionnels (Ordre des dentistes, etc.) */
.footer-pro-links {
    display: none;
    flex-direction: column;
    gap: 0.35rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-pro-links a {
    font-size: 0.8rem;
    color: rgba(184, 169, 154, 0.7);
    transition: color 0.3s ease;
}

.footer-pro-links a:hover {
    color: rgba(255, 255, 255, 0.9);
}

/* ============================================
   PREVIEW BANNER (Brouillons)
============================================ */
.preview-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.preview-banner svg {
    flex-shrink: 0;
}

.preview-banner ~ .nav {
    top: 44px;
}

.preview-banner ~ * .hero,
.preview-banner ~ .hero {
    padding-top: calc(78px + 44px + 2rem);
}
/* ============================================
   DROPDOWN SPÉCIALITÉS 
   ============================================ */

/* Dropdown container */
.nav-dropdown {
    position: relative;
}

.nav-dropdown > .nav-link {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.nav-dropdown-arrow {
    transition: transform 0.3s var(--ease-out);
}

.nav-dropdown:hover .nav-dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown menu */
.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 200px;
    background: var(--color-white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--ease-out);
    z-index: 1001;
    list-style: none;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu li a {
    display: block;
    padding: 0.65rem 1.25rem;
    font-size: 0.9rem;
    color: var(--color-earth);
    transition: all 0.2s;
}

.nav-dropdown-menu li a:hover {
    background: var(--color-cream-light);
    color: var(--color-charcoal);
}

.nav-dropdown-divider {
    height: 1px;
    background: var(--color-sand);
    margin: 0.5rem 0;
}

.nav-dropdown-all {
    font-weight: 500;
    color: var(--color-olive) !important;
}

/* Mobile dropdown */
@media (max-width: 768px) {
    .nav-dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        background: var(--color-cream-light);
        border-radius: var(--radius-sm);
        margin-top: 0.5rem;
        padding: 0.5rem;
        opacity: 1;
        visibility: visible;
        display: none;
    }
    
    .nav-dropdown.active .nav-dropdown-menu {
        display: block;
    }
    
    .nav-dropdown-menu li a {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

/* ==================== FLOATING DOCTOLIB BUTTON ==================== */
.doctolib-floating-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    position: fixed;
    bottom: 0;
    right: 16px;
    z-index: 1000;
    background-color: #0596DE;
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 40px;
    height: 40px;
    padding: 0 16px;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    transition: background-color 0.2s ease, transform 0.2s ease;
    box-shadow: 0 -2px 12px rgba(5, 150, 222, 0.25);
    white-space: nowrap;
}

.doctolib-floating-btn:hover {
    background-color: #0480c0;
    transform: translateY(-2px);
    box-shadow: 0 -4px 16px rgba(5, 150, 222, 0.35);
}

.doctolib-floating-btn span {
    font-weight: 500;
}

.doctolib-floating-btn img {
    height: 15px;
    width: auto;
    vertical-align: middle;
    margin-bottom: 1px;
}

@media (max-width: 768px) {
    .doctolib-floating-btn {
        right: 0;
        left: 0;
        width: 100%;
        justify-content: center;
        border-radius: 0;
        font-size: 12px;
        height: 38px;
        line-height: 38px;
    }
    .doctolib-floating-btn:hover {
        transform: translateY(-2px);
    }
}