/*
Theme Name: Guide Londres
Theme URI: https://guidelondres.fr
Author: Antigravity
Description: Thème WordPress converti depuis Next.js pour GuideLondres.fr
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: guidelondres
*/

/* Fallback typography styles for content using Tailwind's prose classes. */
.prose {
    color: rgba(51, 51, 51, 0.9);
    line-height: 1.8;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
    color: #0A1128;
    font-family: "Playfair Display", serif;
    line-height: 1.25;
    margin-top: 1.4em;
    margin-bottom: 0.55em;
}

.prose h2 {
    font-size: 2rem;
}

.prose h3 {
    font-size: 1.5rem;
}

.prose p,
.prose ul,
.prose ol {
    margin: 1em 0;
}

.prose a {
    color: #C5A059;
    text-decoration: none;
}

.prose a:hover {
    color: #0A1128;
}

.prose strong {
    color: #0A1128;
}

.prose img {
    border-radius: 1rem;
}

/* Safety fallback when Tailwind runtime misses custom utility generation. */
.bg-offwhite {
    background-color: #F8F7F2 !important;
}

/* Robust mobile menu layout regardless of third-party CSS overrides. */
#mobile-menu {
    background: #ffffff !important;
    color: #0A1128 !important;
    overflow-x: hidden;
}

#mobile-menu ul {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    width: 100%;
    gap: 1rem;
}

/* Product category UX polish */
.tax-product_cat .woocommerce-ordering {
    float: none;
    margin: 0;
}

.tax-product_cat .woocommerce-ordering select {
    border: 1px solid rgba(10, 17, 40, 0.2);
    border-radius: 9999px;
    padding: 0.5rem 2.25rem 0.5rem 0.85rem;
    background: #fff;
    color: #0A1128;
    font-size: 0.875rem;
}

.tax-product_cat .page-numbers {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.tax-product_cat .page-numbers li .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    border: 1px solid rgba(10, 17, 40, 0.15);
    background: #fff;
    color: #0A1128;
    text-decoration: none;
}

.tax-product_cat .page-numbers li .page-numbers.current,
.tax-product_cat .page-numbers li .page-numbers:hover {
    background: #0A1128;
    color: #fff;
    border-color: #0A1128;
}

#mobile-menu li {
    display: block !important;
    float: none !important;
    clear: both !important;
    width: 100%;
    margin: 0 !important;
    min-width: 0;
}

#mobile-menu a {
    display: block;
    width: 100%;
    color: #0A1128 !important;
    white-space: normal;
    word-break: break-word;
}

#mobile-menu a:hover {
    color: #C5A059 !important;
}

/* Hero CTA hard fallback to avoid transparent button state. */
.hero-btn-primary {
    background-color: #0A1128 !important;
}

.hero-btn-primary:hover {
    background-color: #1C2541 !important;
}

/* Header becomes fixed with white background after scroll. */
#masthead.is-scrolled {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    background: #ffffff !important;
    color: #0A1128 !important;
    box-shadow: 0 8px 24px rgba(10, 17, 40, 0.12);
}

#masthead.is-scrolled a {
    color: #0A1128 !important;
}

#masthead.is-scrolled a:hover {
    color: #C5A059 !important;
}

#masthead.is-scrolled #mobile-menu-toggle {
    color: #0A1128 !important;
}

.site-branding .custom-logo {
    max-height: 26px;
    width: auto;
}

/* Ensure footer is always dark even if Tailwind runtime misses class generation. */
#colophon {
    background: #1C2541 !important;
    color: #ffffff !important;
}

/* Dropdown menu for primary navigation */
.main-navigation .menu-item-has-children {
    position: relative;
}

.main-navigation .menu-item-has-children > a,
#mobile-menu .menu-item-has-children > a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.main-navigation .menu-item-has-children > a::after,
#mobile-menu .menu-item-has-children > a::after {
    content: "";
    width: 0.45rem;
    height: 0.45rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
    opacity: 0.9;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.main-navigation .menu-item-has-children:hover > a::after,
.main-navigation .menu-item-has-children:focus-within > a::after {
    transform: rotate(45deg) translateY(1px);
    opacity: 1;
}

.main-navigation .sub-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.6rem);
    left: 0;
    min-width: 220px;
    background: #ffffff;
    border: 1px solid rgba(10, 17, 40, 0.12);
    border-radius: 12px;
    box-shadow: 0 14px 34px rgba(10, 17, 40, 0.16);
    padding: 0.45rem 0;
    z-index: 70;
}

.main-navigation .menu-item-has-children:hover > .sub-menu,
.main-navigation .menu-item-has-children:focus-within > .sub-menu {
    display: block;
}

.main-navigation .sub-menu li {
    display: block;
    width: 100%;
}

.main-navigation .sub-menu a {
    display: block;
    padding: 0.6rem 0.9rem;
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.9rem;
    color: #0A1128 !important;
    line-height: 1.3;
}

.main-navigation .sub-menu a:hover {
    background: #f6f7fb;
    color: #C5A059 !important;
}

#mobile-menu .sub-menu {
    display: block;
    position: static;
    border: 0;
    background: transparent;
    box-shadow: none;
    padding: 0.45rem 0 0 1rem;
}

#mobile-menu .sub-menu a {
    font-size: 0.82rem;
    letter-spacing: 0.02em;
    text-transform: none;
    color: #0A1128 !important;
}

/* Universal Form submit button fallback against global overrides. */
.uf-wrap .uf-submit,
.uf-wrap button[type="submit"] {
    background: #0A1128 !important;
    color: #ffffff !important;
    border: 1px solid #0A1128 !important;
}

.uf-wrap .uf-submit:hover,
.uf-wrap button[type="submit"]:hover {
    background: #C5A059 !important;
    border-color: #C5A059 !important;
    color: #0A1128 !important;
}
