/* ============================================================
   PILL NAVBAR — Romain Photographie
   ============================================================ */

/* --- WRAPPER --- */
.pill-nav-wrapper {
    position: relative;
    width: calc(100% - 200px);
    max-width: 1800px;
    margin: 20px auto 0 auto;
    z-index: 9999;
}

/* --- BARRE PRINCIPALE (pill shape, hauteur fixe) --- */
.pill-bar {
    display: flex;
    align-items: center;
    position: relative;
    background: #FF8559;
    border-radius: 60px;
    height: 54px;
    padding: 0 8px 0 6px;
    box-shadow: 0 4px 30px rgba(255, 133, 89, 0.35);
    gap: 6px;
    overflow: visible;
}

/* --- LOGO --- */
.pill-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    padding: 0 10px;
    align-self: center;
}

.pill-logo img {
    height: 34px;
    width: auto;
    display: block;
}

/* --- LIENS DESKTOP (centrés absolument au milieu de la barre) --- */
.pill-links {
    display: flex;
    list-style: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    padding: 0;
    margin: 0;
    gap: 2px;
    align-items: center;
}

.pill-links li a {
    display: block;
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.2px;
    padding: 8px 16px;
    border-radius: 50px;
    transition: background 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.pill-links li a:hover,
.pill-links li a.active {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

/* --- SÉPARATEUR VERTICAL avant "Contactez-moi" (CSS uniquement) --- */
.pill-links li:last-child {
    display: flex;
    align-items: center;
}

.pill-links li:last-child::before {
    content: '';
    display: inline-block;
    width: 1px;
    height: 18px;
    background: rgba(255, 255, 255, 0.45);
    margin-right: 6px;
    flex-shrink: 0;
}

/* --- HAMBURGER (mobile uniquement) --- */
.pill-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s;
    margin-left: auto;
}

.pill-hamburger:hover {
    background: rgba(255, 255, 255, 0.3);
}

.pill-hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

.pill-hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.pill-hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.pill-hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* --- MENU DÉROULANT MOBILE --- */
.pill-mobile-menu {
    display: none;
    flex-direction: column;
    background: #FF8559;
    border-radius: 24px;
    margin-top: 8px;
    padding: 8px;
    box-shadow: 0 8px 40px rgba(255, 133, 89, 0.4);
    gap: 4px;
}

.pill-mobile-menu.open {
    display: flex;
}

.pill-mobile-menu a {
    display: block;
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    padding: 13px 18px;
    border-radius: 50px;
    transition: background 0.2s, color 0.2s;
}

.pill-mobile-menu a:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.pill-mobile-menu a.pill-mobile-cta {
    background: rgba(255, 255, 255, 0.2);
    color: #fff !important;
    text-align: center;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-top: 4px;
    font-weight: 700;
    border-radius: 50px;
}

.pill-mobile-menu a.pill-mobile-cta:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* --- RESPONSIVE TABLETTE + MOBILE (< 1024px) --- */
@media (max-width: 1024px) {
    body {
        padding-top: 0 !important;
    }

    .pill-nav-wrapper {
        width: calc(100% - 24px);
        margin: 12px auto 0 auto;
    }

    .pill-links {
        display: none;
    }

    .pill-hamburger {
        display: flex;
    }

    .pill-bar {
        height: 52px;
        padding: 0 6px 0 4px;
        gap: 8px;
    }

    .pill-logo img {
        height: 30px;
    }
}
