.header-hero-wrapper {
    position: relative;
    width: 100%;
    min-height: 500px;
    margin-bottom: 0;
}

.article-hero-banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 500px;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 0;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 40px 20px;
    text-align: center;
    margin-top: 3rem !important;
}

.hero-title {
    font-family: "Karma", Arial, Helvetica, serif;
    font-size: 3.75rem;
    font-weight: 400;
    color: #ffffff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    margin: 0;
    line-height: 1.2;
}

/* === HEADER SUPERPOSÉ === */
.header-overlay {
    position: relative;
    z-index: 100;
    background: transparent !important;
}

.header-overlay .fr-header__body {
    background: transparent !important;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.custom-header-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    flex-wrap: nowrap !important;
}

.home-banniere__title {
    font-size: 4rem;
    line-height: 5rem;
    font-weight: 400;
}

.white-pill {
    background: white;
    padding: 0.5rem 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.fr-header__menu {
    box-shadow: none !important;
}

.fr-header__logo, .fr-header__operator {
    order: 0 !important;
}

.fr-header__logo {
    padding: 0.75rem !important;
    max-height: 80px;
    width: auto;
}

.fr-header__logo.white-pill {
    display: flex;
    align-items: center;
}

.header-overlay .fr-logo {
    font-size: 0.75rem;
    margin: 0;
    line-height: 1.2;
}

.fr-header__operator.white-pill {
    display: flex;
    align-items: center;
    padding: 0.5rem;
}

.fr-header__logo .fr-logo {
    font-size: 0.7rem !important;
}

.fr-menu {
    top: 68% !important;
}

.fr-nav__list {
    font-family: "Montserrat";
    font-size: 1.2rem;
    font-weight: 300;
}

.header-overlay .fr-header__operator img.onacvg-logo {
    max-height: 70px;
    width: auto;
}

.header-mon-compte-btn {
    font-family: "Montserrat";
    background-color: #0d7bc6 !important;
    color: white !important;
    padding: 0.75rem 1.5rem !important;
    border: none;
    border-radius: 0;
    font-size: 0.95rem;
    font-weight: 300 !important;
    white-space: nowrap;
    cursor: not-allowed;
    opacity: 1;
}

.header-search-btn {
    background-color: #132a67 !important;
    color: white !important;
    padding: 0.75rem 1rem !important;
    border: none;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.header-search-btn:hover {
    background-color: #1212ff !important;
}

.header-search-btn .fr-icon-search-line {
    font-size: 1.5rem;
}

.header-mon-compte-btn:hover {
    background-color: #1212ff !important;
}

.header-nav-search-container {
     display: flex;
     align-items: stretch;
     background: white;
     border-radius: 4px;
     box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
     overflow: visible;
     width: fit-content;
     max-width: none;
 }

.header-nav-container {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    padding: 5px 0 !important;
}

.header-nav-container .fr-nav {
    margin: 0;
    padding: 0;
}

.header-nav-container .fr-nav__list {
    display: flex !important;
    flex-wrap: nowrap !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 0;
}

.header-nav-container .fr-nav__item {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    white-space: nowrap;
}

.header-nav-container .fr-nav__link {
    color: #161616 !important;
    padding: 1rem 1.25rem !important;
    display: block !important;
    text-decoration: none !important;
    font-size: 0.95rem;
    font-weight: 400;
    background: transparent !important;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.header-nav-container .fr-nav__link:hover {
    background-color: rgba(0, 0, 0, 0.05) !important;
}

.header-nav-container .current-menu-item .fr-nav__link {
    color: #000091 !important;
    font-weight: 500;
}

.search-modal {
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    max-width: 100vw;
    max-height: 100vh;
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
}

.search-modal::backdrop {
    background: rgba(255, 255, 255, 0.98);
}

.search-modal[open] {
    display: block;
}

.search-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-modal-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: transparent !important;
    border: none;
    padding: 1rem;
    cursor: pointer;
    z-index: 10;
}

.search-modal-close .fr-icon-close-line {
    font-size: 2rem;
    color: #161616;
}

.search-modal-close:hover .fr-icon-close-line {
    color: #000091;
}

.search-modal-content {
    width: 100%;
    max-width: 800px;
    padding: 2rem;
}

.search-form-wrapper {
    width: 100%;
}

.custom-search-form {
    width: 100%;
}

.search-input-group {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    border-bottom: 2px solid #132a67;
    padding-bottom: 0.5rem;
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 3rem;
    font-weight: 400;
    color: #132a67;
    padding: 0.5rem 0;
    outline: none;
    font-family: "Karma";
}

.search-input::placeholder {
    color: #132a67;
    opacity: 1;
}

.search-input:focus {
    outline: none;
}

.search-submit-btn {
    background: transparent;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-submit-btn .fr-icon-search-line {
    font-size: 2rem;
    color: #000091;
}

.search-submit-btn:hover .fr-icon-search-line {
    color: #1212ff;
}

.search-helper-text {
    margin-top: 1rem;
    font-size: 1rem;
    color: #666;
    font-weight: 300;
}

@media (max-width: 768px) {
    .search-modal-close {
        top: 1rem;
        right: 1rem;
    }
    
    .search-modal-content {
        padding: 1rem;
    }
    
    .search-input {
        font-size: 1.75rem;
    }
    
    .search-submit-btn .fr-icon-search-line {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .search-input {
        font-size: 1.5rem;
    }
    
    .search-helper-text {
        font-size: 0.875rem;
    }
}

.search-modal[data-fr-opened="true"] {
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-modal .fr-modal__body {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    min-width: 500px;
}

.search-modal .fr-modal__header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.search-modal .fr-modal__title {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #161616;
}

.search-modal .fr-search-bar {
    margin: 0;
}

.search-modal .fr-search-bar input[type="search"] {
    font-size: 1.125rem;
    padding: 1rem;
    border: 2px solid #e5e5e5;
    border-radius: 4px;
}

.search-modal .fr-search-bar input[type="search"]:focus {
    border-color: #000091;
    outline: none;
}

.search-modal .fr-search-bar button[type="submit"] {
    background: #000091;
    color: white;
    padding: 1rem 2rem;
    font-size: 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 1rem;
    width: 100%;
}

.search-modal .fr-search-bar button[type="submit"]:hover {
    background: #1212ff;
}

@media (max-width: 768px) {
    .search-modal .fr-modal__body {
        min-width: 90vw;
        padding: 1.5rem;
    }
    
    .search-modal .fr-modal__title {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .header-mon-compte-btn {
        padding: 0.75rem 1rem !important;
        font-size: 0.85rem;
    }
}

.header-search-wrapper {
    display: flex;
    align-items: center;
    border-left: 1px solid #e5e5e5;
    padding: 0 1rem;
}

.header-search-wrapper .fr-header__tools {
    display: flex;
    align-items: center;
}

.header-search-wrapper .fr-header__search {
    position: static;
    background: transparent;
}

.header-search-wrapper .fr-search-bar {
    margin: 0;
}

.header-search-wrapper input[type="search"] {
    background: #f6f6f6 !important;
    border: none;
    border-radius: 4px;
    padding: 0.5rem 1rem;
    min-width: 200px;
}

.header-search-wrapper button[type="submit"] {
    background: #000091;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
}

.header-search-wrapper .fr-btn--close {
    display: none;
}


#content {
    position: relative;
    z-index: 1;
    margin-top: 0;
}

.hero {
    margin-bottom: 0;
}


.onacvg-logo {
    max-height: 80px;
    width: auto;
}

/* === RESPONSIVE === */
@media (max-width: 1200px) {
    .header-nav-search-container {
        max-width: 600px;
    }
    
    .header-nav-container .fr-nav__link {
        padding: 1rem 0.75rem !important;
        font-size: 0.9rem;
    }
}

@media (max-width: 992px) {
    .header-hero-wrapper {
        min-height: 400px;
    }
    
    .article-hero-banner {
        height: 400px;
        min-height: 400px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .custom-header-row {
        flex-wrap: wrap !important;
    }
    
    .header-nav-search-container {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .header-hero-wrapper {
        min-height: 300px;
    }
    
    .article-hero-banner {
        height: 300px;
        min-height: 300px;
    }

    .hero-title {
        font-size: 2rem;
    }
    
    .header-overlay .fr-header__operator img.onacvg-logo {
        max-height: 40px;
    }
    
    .header-nav-container .fr-nav__link {
        padding: 0.75rem 0.5rem !important;
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .header-hero-wrapper {
        min-height: 300px;
    }
    
    .article-hero-banner {
        height: 300px;
    }

    .hero-title {
        font-size: 1.5rem;
    }
}
