.pf-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    background: rgba(6, 29, 12, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pf-header.scrolled {
    background: rgba(255, 255, 255, 0.96);
    border-bottom-color: rgba(15, 74, 33, 0.12);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.pf-nav-inner {
    /* Pleine largeur avec petites marges latérales */
    max-width: 100%;
    margin: 0;
    padding: 0 24px 0 40px; /* un peu plus de marge à gauche pour recentrer visuellement le bloc de menus */
    height: 84px;
    display: flex;
    align-items: center;
    gap: 32px;
}

@media (max-width: 1199px) {
    .pf-nav-inner {
        padding: 0 16px;
        height: 72px;
        gap: 20px;
    }
}

.pf-brand-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #ffffff;
    flex-shrink: 0;
}

.pf-brand-logo {
    width: 48px;
    height: auto;
}

.pf-brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.pf-brand-title {
    font-weight: 700;
    font-size: 1.05rem;
}

.pf-brand-tagline {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.75);
}

.pf-header.scrolled .pf-brand-link,
.pf-header.scrolled .pf-brand-title {
    color: #0f3a1a;
}

.pf-header.scrolled .pf-brand-tagline {
    color: rgba(0, 0, 0, 0.6);
}

.pf-nav-desktop {
    flex: 0 1 auto;
    display: none;
    margin-left: 32px;   /* espace entre le logo et les menus */
    padding-left: 24px;  /* espace interne */
    border-left: 1px solid rgba(255, 255, 255, 0.18); /* séparation visuelle logo / menus */
}

@media (min-width: 1024px) {
    .pf-nav-desktop {
        display: flex;
    }
}

/* Couleur de la séparation quand le header est sur fond blanc */
.pf-header.scrolled .pf-nav-desktop {
    border-left-color: rgba(15, 58, 26, 0.18);
}

.pf-nav-list {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    gap: 8px;
    align-items: center;
}

.pf-nav-item {
    position: relative;
}

.pf-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: 999px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.94);
    font-size: 0.98rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

/* Empêcher le retour à la ligne des libellés principaux (ex: \"À propos\") */
.pf-nav-link span {
    white-space: nowrap;
}

.pf-header.scrolled .pf-nav-link {
    color: #0f3a1a;
}

.pf-nav-link::after {
    content: '';
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 6px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #84cc16, #22c55e);
    opacity: 0;
    transform: scaleX(0);
    transform-origin: center;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.pf-nav-link:hover,
.pf-nav-link:focus-visible {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

.pf-header.scrolled .pf-nav-link:hover,
.pf-header.scrolled .pf-nav-link:focus-visible {
    color: #0f3a1a;
    background: rgba(15, 58, 26, 0.08);
}

.pf-nav-link:hover::after,
.pf-nav-item:focus-within .pf-nav-link::after,
.pf-nav-link.is-active::after {
    opacity: 1;
    transform: scaleX(1);
}

.pf-nav-toggle-link {
    padding-right: 32px;
}

.pf-nav-caret {
    width: 10px;
    height: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-left: 8px;
    transition: transform 0.2s ease;
}

.pf-nav-item-dropdown.is-open .pf-nav-caret {
    transform: rotate(225deg);
}

.pf-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    /* Légère séparation visuelle sous le bouton, sans créer de "trou" cliquable */
    transform: translate(-50%, 8px);
    min-width: 320px;
    background: #ffffff;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 30px 60px rgba(15, 74, 33, 0.2);
    border: 1px solid rgba(15, 74, 33, 0.08);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 1200;
}

.pf-dropdown::before {
    content: '';
    position: absolute;
    top: -7px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 14px;
    height: 14px;
    background: #ffffff;
    border-left: 1px solid rgba(15, 74, 33, 0.08);
    border-top: 1px solid rgba(15, 74, 33, 0.08);
}

.pf-nav-item-dropdown:hover .pf-dropdown,
.pf-nav-item-dropdown:focus-within .pf-dropdown,
.pf-nav-item-dropdown.is-open .pf-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.pf-dropdown-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(160px, 1fr));
    gap: 12px;
}

.pf-dropdown-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 12px;
    text-decoration: none;
    color: #0f3a1a;
    font-weight: 500;
    transition: background 0.2s ease, transform 0.2s ease;
}

.pf-dropdown-link:hover {
    background: rgba(34, 197, 94, 0.08);
    transform: translateX(4px);
}

.pf-dropdown-icon {
    font-size: 1.2rem;
}

.pf-dropdown-highlight {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(15, 74, 33, 0.12);
}

.pf-dropdown-link.highlight {
    background: linear-gradient(135deg, #22c55e, #15803d);
    color: #ffffff;
}

.pf-dropdown-link.highlight:hover {
    background: linear-gradient(135deg, #16a34a, #166534);
    transform: translateY(-1px);
}

.pf-dropdown-link.highlight .pf-dropdown-text small {
    display: block;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92);
}

.pf-nav-cta {
    display: none;
}

@media (min-width: 1100px) {
    .pf-nav-cta {
        display: block;
        margin-left: auto; /* pousse le CTA complètement à droite dans la grille */
    }
}

.pf-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px; /* un peu plus d'espace autour du numéro */
    border-radius: 999px;
    background: linear-gradient(135deg, #4ade80, #15803d);
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 15px 30px rgba(21, 128, 61, 0.3);
    white-space: nowrap; /* évite les retours à la ligne dans le bouton */
}

.pf-cta-label {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.pf-cta-label small {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.11em;
    color: rgba(255, 255, 255, 0.8);
}

.pf-nav-toggle {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 12px;
    cursor: pointer;
}

.pf-nav-toggle span {
    height: 2px;
    width: 100%;
    background: #ffffff;
    border-radius: 999px;
}

.pf-header.scrolled .pf-nav-toggle span {
    background: #0f3a1a;
}

@media (min-width: 1100px) {
    .pf-nav-toggle {
        display: none;
    }
}

.pf-nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 1050;
}

.pf-nav-backdrop.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.pf-mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(340px, 85%);
    background: #f8faf5;
    box-shadow: -25px 0 50px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 1200;
    overflow-y: auto;
}

.pf-mobile-nav.is-open {
    transform: translateX(0);
}

.pf-mobile-inner {
    padding: 28px 26px 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.pf-mobile-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
}

.pf-mobile-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: #0f3a1a;
}

.pf-mobile-tagline {
    margin: 2px 0 0;
    font-size: 0.85rem;
    color: #4b5563;
}

.pf-mobile-close {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    position: relative;
    cursor: pointer;
}

.pf-mobile-close span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 2px;
    background: #111827;
    border-radius: 999px;
}

.pf-mobile-close span:first-child {
    transform: translate(-50%, -50%) rotate(45deg);
}

.pf-mobile-close span:last-child {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.pf-mobile-section {
    border-top: 1px solid #e4e7ec;
    padding-top: 18px;
}

.pf-mobile-section-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #6b7280; /* plus foncé pour meilleur contraste */
    margin-bottom: 12px;
    font-weight: 600;
}

.pf-mobile-link {
    display: block;
    padding: 12px 0;
    color: #0f3a1a;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(15, 58, 26, 0.08);
}

.pf-mobile-accordion {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    border: none;
    background: transparent;
    padding: 14px 0;
    font-size: 1rem;
    font-weight: 600;
    color: #0f3a1a;
}

.pf-mobile-caret {
    width: 12px;
    height: 12px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.pf-mobile-accordion[aria-expanded=\"true\"] .pf-mobile-caret {
    transform: rotate(225deg);
}

.pf-mobile-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-bottom: 1px solid rgba(15, 58, 26, 0.08);
}

.pf-mobile-panel.is-open {
    max-height: 600px;
}

.pf-mobile-sub-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    color: #4b5563;
    text-decoration: none;
}

.pf-mobile-sub-link.highlight {
    color: #047857;
    font-weight: 600;
}

.pf-mobile-cta {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: 16px;
    background: linear-gradient(135deg, #22c55e, #0d6b33);
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 20px 30px rgba(13, 107, 51, 0.2);
}

.pf-mobile-cta-icon {
    font-size: 1.3rem;
}

.pf-body-lock {
    overflow: hidden !important;
    position: fixed !important;
    inset: 0;
}


