.custom-header {
    padding-left: 0;
    padding-right: 0;
}

header figure {
    cursor: pointer;
}

header .wp-block-search__inside-wrapper {
    height: 26px;
}

body header {
    background: transparent;
    box-shadow: none;
}

body header .custom-input-header input {
    background-color: var(--wp--preset--color--background-secondary);
    border-color: var(--wp--preset--color--font-primary);
    color: var(--wp--preset--color--font-primary);
    border: none;
}

body header .custom-input-header input::placeholder {
    color: var(--wp--preset--color--font-light-gray) !important;
    font-style: italic !important;
}

body header .custom-input-header input {
    background-color: var(--wp--preset--color--background-secondary);
    border-color: var(--wp--preset--color--font-primary);
    color: var(--wp--preset--color--font-primary);
    border: none;
    height: 26px;
}

body header .custom-input-header input:-webkit-autofill,
body header .custom-input-header input:-webkit-autofill:hover,
body header .custom-input-header input:-webkit-autofill:focus,
body header .custom-input-header input:invalid,
body header .custom-input-header input:disabled,
body header .custom-input-header input:user-invalid {
    background-color: var(--wp--preset--color--background-secondary) !important;
    color: var(--wp--preset--color--font-primary) !important;
    border: none !important;
    -webkit-box-shadow: 0 0 0px 1000px var(--wp--preset--color--background-secondary) inset !important;
    box-shadow: 0 0 0px 1000px var(--wp--preset--color--background-secondary) inset !important;
}

body header .custom-header a p,
body header .custom-mobile-header a p {
    display: block;
    font-size: 18px !important;
    white-space: nowrap;
    padding: 39px 0;

}

body header .wp-block-search .wp-block-search__inside-wrapper:after {
    filter: invert(100%) brightness(100%); 
}

body header .wp-block-search .wp-block-search__inside-wrapper {
    outline: 0.5px solid var(--wp--preset--color--font-primary);
}

body header > .custom-header, body header .custom-mobile-header  {
    margin: 0 15px 15px 15px;
    width: calc(100% - 30px);
}

body header .custom-wishlist-icon > img {
    width: 36px !important;
    height: 100%;
    min-width: 36px;
}

body header .custom-header-icons {
    max-height: 28px;
}

body header .custom-header-icons a {
    display: block;
    max-width: 30px !important;
}

body header .custom-header-icons a.custom-minicart-button {
    display: inline-flex;
}

body header .custom-account-icon,
body header .custom-account-icon > img {
    width: 30px !important;
    height: 100%;
    min-width: 30px;
}

body header .custom-cart-icon > button {
    margin-left: 0;
    cursor: pointer;
    height: 37px;
    width: 37px;
    padding: 0;
    position: relative;
    margin-top: -49px;
}

body header .custom-cart-icon > button span.wc-block-mini-cart__badge,
body header .custom-cart-icon > button span.wc-block-mini-cart__quantity-badge {
    color: var(--wp--preset--color--font-primary) !important;
    margin-left: 1.5px;
    margin-top: -7px;
    z-index: 101;
    font-size: 10px;
}

body header > .custom-header .wc-block-mini-cart > .wc-block-mini-cart__button:hover span.wc-block-mini-cart__badge,
body header > .custom-mobile-header .wc-block-mini-cart > .wc-block-mini-cart__button:hover span.wc-block-mini-cart__badge {
    color: var(--wp--preset--color--font-secondary) !important;
    z-index: 101;
}

body header > .custom-header .wc-block-mini-cart > .wc-block-mini-cart__button:after,
body header > .custom-mobile-header .wc-block-mini-cart > .wc-block-mini-cart__button:after {
    background: url(../icons/Panier-Blanc.png) !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    width: 29px !important;
    height: 100% !important;
}

body header > .custom-header .wc-block-mini-cart > .wc-block-mini-cart__button:hover:after,
body header > .custom-mobile-header .wc-block-mini-cart > .wc-block-mini-cart__button:hover:after {
    background: url(../icons/Panier-Blanc_plein.png) !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    width: 28px !important;
    height: 100% !important;
}

.wc-block-mini-cart__button:after {
    background: url('../icons/Panier-Blanc.png') !important;
}

.wc-block-mini-cart__button.custom-hover:after {
    background: url('../icons/Panier-Noir.png') !important;
}

body header .wc-block-mini-cart__button {
    display: none !important;
}

body header > .custom-header .custom-nav-list > .wp-block-ainoblocks-flex-item:hover,
body header > .custom-header .custom-nav-list > .wp-block-ainoblocks-flex-item.custom-is-active,
body header > .custom-mobile-header .custom-nav-list > .wp-block-ainoblocks-flex-item:hover,
body header > .custom-mobile-header .custom-nav-list > .wp-block-ainoblocks-flex-item.custom-is-active {
    background-color: var(--wp--preset--color--background-light-gray);
    cursor: pointer;
}


body header > .custom-header .custom-nav-list > .wp-block-ainoblocks-flex-item:hover a p,
body header > .custom-header .custom-nav-list > .wp-block-ainoblocks-flex-item.custom-is-active a p,
body header > .custom-mobile-header .custom-nav-list > .wp-block-ainoblocks-flex-item:hover a p,
body header > .custom-mobile-header .custom-nav-list > .wp-block-ainoblocks-flex-item.custom-is-active a p  {
    color: var(--wp--preset--color--font-secondary) !important;
}

body header .custom-input-header input:-webkit-autofill,
body header .custom-input-header input:-webkit-autofill:hover,
body header .custom-input-header input:-webkit-autofill:focus {
    background-color: var(--wp--preset--color--background-secondary) !important;
    color: var(--wp--preset--color--font-primary) !important;
    border: none !important;
}

header .img, .custom-header img, .custom-mobile-header img {
    color: var(--wp--preset--color--font-secondary) !important;
}

header img.custom-logo, .custom-header img.custom-logo, .custom-mobile-header img.custom-logo {
    transition: filter 0.3s ease;
}

header img.custom-logo:hover, .custom-header img.custom-logo:hover,
.custom-mobile-header img.custom-logo:hover {
    filter: invert(19%) sepia(81%) saturate(269%) hue-rotate(102deg) brightness(92%) contrast(96%);
}

header .wp-block-search .wp-block-search__inside-wrapper::after {
    content: "";
    height: 100%;
    width: 1rem;
    z-index: 100;
    background-position: 50%;
    background-repeat: no-repeat;
    transition: all .2s ease-in-out;
    position: absolute;
    top: 0;
    left: 7px;
  }

header .wp-block-search .wp-block-search__inside-wrapper input {
    width: 100%;
    min-height: auto;
    line-height: var(--global--line-height-reset);
    padding: 10px 0px 10px 28px !important;
}

.custom-input-header:not(.custom-mobile-menu .custom-input-header) {
    padding: 5px 15px 5px 15px !important;
}

.custom-input-header input:not(.custom-mobile-header *) {
    min-width: 150px;
}

body footer h3 {
    font-size: 20px !important;
    padding-top: 16px !important;
    margin-bottom: 25px !important;
}

body footer p a {
    font-size: 16px !important;
}

body footer .custom-footer {
    max-width: 100% !important;
}

body footer form .mc4wp-form-fields {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.custom-width-footer-link {
    max-width: 84%;
}

body footer .custom-footer {
    margin-left: 5% !important;
}

body footer .custom-footer > div {
    margin-left: 20px !important;
    width: 70%;
}

body footer .footer-logo-item {
    min-width: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    height: 100%;
}

body footer .footer-logo-item p {
    margin: 0;
}

body footer .footer-logo-item img {
    max-width: 100%;
    height: auto;
    min-width: 190px;
    width: 223px !important;
}

body footer .footer-logo-item * {
    font-size: 13px !important;
}

body footer .custom-footer-copyright * {
    font-size: 10px !important;
}

body footer .site-footer a {
    display: inline-block;
    transition: transform 0.4s ease-in-out, color 0.4s ease-in-out;
}

body footer .site-footer a:hover {
    color: var(--wp--preset--color--font-dark-gray);
    transform: scale(1.05) !important;
}

body .searchwp-live-search-results {
    position: fixed;
    min-height: 0;
    border-radius: 0;
    margin-left: 0%;
    min-width: 415px;
    max-width: 415px;
}

body header form.searchwp-form input.swp-input--search {
    background-color: var(--wp--preset--color--background-secondary);
    color: var(--wp--preset--color--background-primary);
    padding-right: 8px;
    padding-left: 36px;
    height: 26px;
    background-image: none;
}

body header .custom-mobile-menu form.searchwp-form input.swp-input--search {
    background-color: var(--wp--preset--color--background-light-gray);
    color: var(--wp--preset--color--background-secondary);
    padding-right: 8px;
    padding-left: 36px;
    height: 26px;
    background-image: none;
    border: 1px solid var(--wp--preset--color--background-secondary);
}

body header form.searchwp-form .searchwp-form-input-container {
    position: relative;
}

body header form.searchwp-form .searchwp-form-input-container::after {
    content: '';
    position: absolute;
    top: 46%;
    left: -1px;
    width: 30px;
    height: 30px;
    background-image: url("data:image/svg+xml,%3Csvg width='28' height='28' viewBox='0 0 28 28' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg transform='translate(14,14)'%3E%3Ccircle cx='0' cy='0' r='6' stroke='%23CFCFCF' stroke-width='1.5' fill='none'/%3E%3Cline x1='4.2' y1='4.2' x2='8.5' y2='8.5' stroke='%23CFCFCF' stroke-width='1.5'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 28px 28px; /* <-- Taille fixe du SVG, ne bouge plus */
    background-position: center;
    transform: translateY(-50%);
    pointer-events: none;
    opacity: 1;
    z-index: 10;
}

input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
}

input[type="search"]::-webkit-search-cancel-button {
    height: 16px;
    width: 16px;
    background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"%3E%3Cline x1="4" y1="4" x2="12" y2="12" stroke="white" stroke-width="2"/%3E%3Cline x1="12" y1="4" x2="4" y2="12" stroke="white" stroke-width="2"/%3E%3C/svg%3E') no-repeat center center;
    background-size: contain;
    cursor: pointer;
}

body header form.searchwp-form .searchwp-form-input-container.loading::after {
    background-image: url("data:image/svg+xml,%3Csvg width='28' height='28' viewBox='0 0 28 28' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg transform='translate(14,14)'%3E%3Ccircle cx='0' cy='0' r='6' stroke='%23CFCFCF' stroke-width='1.5' fill='none'/%3E%3Cg%3E%3Cline x1='4.2' y1='4.2' x2='8.5' y2='8.5' stroke='%23CFCFCF' stroke-width='1.5'/%3E%3CanimateTransform attributeName='transform' attributeType='XML' type='rotate' from='0' to='360' dur='1s' repeatCount='indefinite'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

body .searchwp-live-search-no-results {
    padding: 0 0 0;
    text-align: center;
}

.searchwp-form-input-container {
    position: relative;
    overflow: visible;
    z-index: 10;
}

body header form.searchwp-form input.swp-input--search::placeholder {
    color: red;
}

.swp-input--search {
    position: relative;
}

body .woocommerce-message {
    color: var(--wp--preset--color--font-light-gray);
    font-style: italic;
    font-weight: 200;
}

body .mc4wp-alert {
    display: none !important;
}

main .custom-newsletter p.custom-secondary-button > input[type=submit],
main .custom-newsletter p.custom-secondary-button > button[type=submit],
footer .custom-newsletter p.custom-secondary-button > input[type=submit],
footer .custom-newsletter p.custom-secondary-button > button[type=submit] {
    margin-left: 5px !important;
}

body .custom-minicart-button {
    display: flex;
    position: relative;
    width: 29px;
    height: 29px;
    background-color: transparent;
    background-image: url('/wp-content/themes/custom/assets/icons/Panier-Blanc.png') !important;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border: none;
    cursor: pointer;
    padding: 0;
    vertical-align: middle;
}

body .custom-minicart-button:hover,
body .custom-minicart-button.custom-is-active {
    background-image: url('/wp-content/themes/custom/assets/icons/Panier-Blanc_plein.png') !important;
}

body .custom-minicart-button:hover .custom-minicart-count,
body .custom-minicart-button.custom-is-active .custom-minicart-count {
    color: var(--wp--preset--color--font-secondary) !important;
    font-size: 10.3px !important;
}

body .custom-minicart-count {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: transparent;
    color: var(--wp--preset--color--font-primary);
    border-radius: 50%;
    font-size: 10px !important;
    font-weight: 100;
    text-align: center;
    align-self: end;
}

body footer .custom-newsletter p.custom-secondary-button > button[type=submit] {
    height: 40px !important;
}

body .mc4wp-form .mc4wp-form-fields {
    justify-content: center;
}

body .mc4wp-form .mc4wp-response .woocommerce-message {
    /* margin-left: 3%; */
    margin-right: 3%;
}

.searchwp-live-search-result {
    cursor: pointer;
}

.searchwp-live-search-result:hover {
    transform: scale(1.01) !important;
}

.searchwp-live-search-results-showing {
    overflow-x: hidden !important;
}

header.wp-block-template-part.cst-header-pinned{
    position: fixed;
    left: 0;
    right: 0;
    z-index: 9999;
    margin-top: 0px !important;
}

.cst-header-placeholder{
    height: 0;
}

/*--------------------------------------- HEADER START ---------------------------------------*/

/*:where(.wp-site-blocks) > :first-child {
    margin-top: 15px !important;
}*/

header {
    /*position: sticky !important;*/
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    background-color: var(--wp--preset--color--background-primary);
    margin-top: 15px !important;
}

.wp-site-blocks > div,
footer {
    overflow-x: hidden;
    z-index: 2;
}

.entry-header,
.entry-header h2 {
    display: none;
}

header a, header span, .custom-header a, .custom-header span,  .custom-mobile-header a, .custom-mobile-header span {
    font-family: 'Cooper Hewitt', sans-serif;
    font-size: 20px;
    text-decoration: none;
}

.custom-newsletter-error {
    color: red;
    font-size: 0.9em;
    margin-top: 5px;
    display: none;
  }

body .mc4wp-form {
    max-width: 432px !important;
    margin: auto !important;
}

body .searchwp-live-search-no-results > em {
    font-weight: 100;
    font-style: italic;
}

body header .searchwp-form-input-container > input.swp-input--search,
body header .searchwp-form-input-container > input.swp-input--search::placeholder {
    text-align: start;
}


/*--------------------------------------- HEADER END ---------------------------------------*/

/*--------------------------------------- MOBILE HEADER START ---------------------------------------*/

.custom-mobile-header {
    display: none; 
    padding-left: 0;
    padding-right: 0;
}

.custom-mobile-header > div {
    width: 100%;
}

.custom-mobile-header .wp-block-ainoblocks-flexbox.align-items__stretch__t {
    align-items: center;
}

.mobile-menu-icon button {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.menu-bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    border-radius: 3px;
}

.mobile-navigation nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.mobile-navigation nav ul li a {
    text-decoration: none;
    color: #333;
}

body .custom-mobile-menu {
    display: none;
    position: fixed;
    top: 0px;
    left: -4096px;
    width: 70%;
    background-color: var(--wp--preset--color--background-primary);
    color: var(--wp--preset--color--font-primary);
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: left 0.4s ease;
    height: 80%;
    min-width: 330px;
    min-height: 650px;
}
  
body .custom-mobile-menu.open {
    left: 0;
}
  
body .custom-mobile-menu > div {
    margin: 0 auto !important;
}

body .custom-mobile-nav-items > .wp-block-ainoblocks-flexbox > div,
body .custom-mobile-nav-items > .wp-block-ainoblocks-flexbox > form {
    margin: 2% 0 !important;
    padding: 0;
}

body .custom-mobile-nav-items p {
    padding: 0;
    min-width: 200px;
    flex-wrap: nowrap;
}

body .custom-mobile-nav-items .wp-block-ainoblocks-flex-item,
body .custom-mobile-nav-items .wp-block-search__inside-wrapper  {
    min-width: 300px;
    margin: auto;
}

body .custom-mobile-menu .custom-mobile-title {
    display: flex;
    margin: auto;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
    width: 40%;
    height: auto;
}

body .custom-mobile-menu .custom-mobile-title img {
    width: 100% !important;
}

body .custom-mobile-menu .custom-mobile-title-separator {
    margin: 3px auto;
    border: none;
}

body .wp-block-separator.has-background:not(.is-style-dots) {
    height: 0;
    border-bottom: none;
}

body input[type=search]:focus-visible {
    outline-offset: 0;
    outline: none;
}

body header .custom-input-header.custom-search-input-header input,
body header .custom-input-header.custom-search-input-header input:-webkit-autofill, 
body header .custom-input-header.custom-search-input-header input:-webkit-autofill:hover, 
body header .custom-input-header.custom-search-input-header input:-webkit-autofill:focus, 
body header .custom-input-header.custom-search-input-header input:invalid, 
body header .custom-input-header.custom-search-input-header input:disabled, 
body header .custom-input-header.custom-search-input-header input:user-invalid {
    background-color: var(--wp--preset--color--background-light-gray) !important;
    color: var(--wp--preset--color--font-secondary) !important;
    -webkit-box-shadow: 0 0 0px 1000px var(--wp--preset--color--background-light-gray) inset !important;
    box-shadow: 0 0 0px 1000px var(--wp--preset--color--background-light-gray) inset !important;
    border: 1px solid var(--wp--preset--color--font-secondary) !important;
}

body header .custom-input-header.custom-search-input-header input::placeholder {
    color: var(--wp--preset--color--font-secondary) !important;
    font-style: italic !important;
}

body header .custom-input-header.custom-search-input-header .wp-block-search__inside-wrapper:after {
    filter: invert(100%) brightness(0%);
}

body header .custom-input-header.custom-search-input-header {
    margin: 6% 0;
}

body .custom-mobile-nav-items h3 {
    color: var(--wp--preset--color--font-primary) !important;
    text-align: center;
    font-weight: 600;
    padding: 6% 0;
}

body .custom-mobile-header-icons {
    margin-right: 15%;
}

body header .custom-mobile-menu:hover,
body header .custom-mobile-menu:active,
body header .custom-mobile-menu:focus {
    text-decoration: none;
}

/*--------------------------------------- MOBILE HEADER END ---------------------------------------*/











