/* Navigation Styles */
.main-header {
    width: 100%;
    position: relative;
    z-index: 2000;
}

.header-brand-section {
    background-color: var(--brand-bg, #fff);
    padding: 0.2rem 0;
    border-bottom: 1px solid var(--brand-border, #eee);
}

.header-nav-section {
    background-color: var(--nav-bg, #5d4037);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1999;
    transition: all 0.3s ease;
    width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-brand-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.4rem 0;
    min-height: 40px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 30px;
    text-decoration: none;
    max-width: 100%;
    /* Ensure it doesn't overflow container */
    overflow: hidden;
    /* Prevent spillover */
}

.nav-brand-logo {
    height: 75px;
    width: auto;
    object-fit: contain;
    margin-top: 0;
    transition: filter 0.4s ease;
    filter: var(--logo-filter, none);
    mix-blend-mode: var(--logo-blend-mode, normal);
}

.nav-brand-logo path,
.nav-brand-logo stop {
    transition: all 0.5s ease;
}

.nav-brand-text {
    display: flex;
    flex-direction: column;
    max-width: 100%;
}

.brand-title {
    font-family: 'Brush Script MT', 'Lucida Handwriting', cursive;
    /* Force single line and use fluid typography - Increased size */
    white-space: nowrap;
    font-size: clamp(1.4rem, 6vw, 3.5rem);
    /* Adjusted min size for small mobiles */
    color: var(--brand-title, #5D4E42);
    font-weight: normal;
    line-height: 1.1;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
    width: 100%;
    text-align: center;
    /* Ensure centering */
}

.brand-subtitle {
    font-family: 'Lato', sans-serif;
    font-size: 1.05rem;
    color: var(--brand-subtitle, #5D4E42);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.3px;
    display: block;
    /* Ensure visibility */
}

@media (max-width: 400px) {
    .brand-title {
        white-space: normal;
        /* Allow wrapping on very small screens */
        font-size: 1.5rem;
    }

    .brand-subtitle {
        font-size: 0.85rem;
    }
}

/* Style Widget in Header */
.style-widget-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-right: 20px;
}

.smile-container {
    display: flex;
    align-items: center;
    position: relative;
}

.smile-bubble {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 12px 20px;
    border-radius: 20px 20px 5px 20px;
    border: 1px solid var(--brand-border, rgba(238, 238, 238, 0.5));
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* min-width removed to allow theme overrides */
    width: auto;
    padding-right: 20px;
    /* Retour à une marge normale pour rétrécir le cadre */
    z-index: 1;
}

/* Suppression du triangle pour un design plus épuré avec la superposition du logo */
.smile-bubble::after,
.smile-bubble::before {
    display: none;
}

.bubble-text {
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--brand-title, #5D4E42);
    margin-bottom: 8px;
    font-family: 'Lato', sans-serif;
}

.style-line {
    display: inline-block;
    margin-left: 15px;
    /* Décalage pour centrer visuellement avec la ligne du dessus */
}

.bubble-text strong {
    font-weight: 700;
}

.bubble-selector {
    width: 100%;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid var(--brand-border, #eee);
    background-color: var(--brand-bg, #f9f9f9);
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--brand-subtitle, #4A90A4);
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234A90A4' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.bubble-selector:hover {
    border-color: var(--brand-subtitle);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.smile-logo {
    height: 65px;
    width: auto;
    margin-left: -85px;
    margin-top: -20px;
    z-index: 2;
    /* Passe au dessus du fond de la bulle */
    pointer-events: none;
    /* Permet de cliquer à travers si besoin */
    filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.1));
    animation: gentleSway 3s ease-in-out infinite;
}

@keyframes gentleSway {

    0%,
    100% {
        transform: translateY(0) rotate(0);
    }

    50% {
        transform: translateY(-3px) rotate(2deg);
    }
}

/* Desktop Menu */
.desktop-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.desktop-menu li a {
    text-decoration: none;
    color: var(--nav-text, #fff);
    font-weight: 500;
    font-family: 'Lato', sans-serif;
    transition: color 0.3s ease;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
}

.desktop-menu li a:hover {
    color: var(--nav-hover, #A8DCD9);
}

.highlight-link {
    color: #e91e63 !important;
    font-weight: 700 !important;
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    transition: all 0.3s ease;
}

/* Mobile Nav Overlay */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.98);
    transform: translateY(-150%);
    transition: transform 0.4s ease-in-out;
    z-index: 2001;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mobile-nav.active {
    transform: translateY(0);
}

.mobile-links {
    list-style: none;
    padding: 2rem;
    margin: 0;
    text-align: center;
}

.mobile-links li {
    margin-bottom: 1.5rem;
}

.mobile-links li a {
    text-decoration: none;
    color: #333;
    font-size: 1.2rem;
    font-weight: 700;
    font-family: 'Lato', sans-serif;
}

/* Hamburger Animation */
.hamburger-menu.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-menu.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 220px;
    padding: 10px 0;
    border-radius: 4px;
    z-index: 2001;
    list-style: none;
    text-align: left;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    padding: 0;
    margin: 0;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s;
    font-size: 0.9rem;
    text-transform: none;
    letter-spacing: normal;
    font-weight: 400;
}

.dropdown-menu li a:hover {
    background-color: #f5f5f5;
    color: #4A90A4;
}

.dropdown-toggle::after {
    content: ' ▼';
    font-size: 0.7em;
    margin-left: 5px;
    vertical-align: middle;
    color: #fff;
}

/* Mobile Dropdown Styles */
.mobile-dropdown-header {
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    gap: 10px;
}

.mobile-dropdown-menu {
    display: none;
    list-style: none;
    padding: 0;
    margin-top: 10px;
    background-color: #f9f9f9;
}

.mobile-dropdown.active .mobile-dropdown-menu {
    display: block;
}

.mobile-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-arrow {
    transition: transform 0.3s ease;
    font-size: 0.8em;
}

.mobile-dropdown-menu li {
    margin-bottom: 10px;
}

.mobile-dropdown-menu li a {
    font-size: 1rem;
    font-weight: normal;
}

.nav-cta {
    border: 1px solid var(--nav-cta-border, rgba(255, 255, 255, 0.8));
    padding: 8px 20px;
    border-radius: 4px;
    color: var(--nav-text, #fff) !important;
    transition: all 0.3s ease;
    font-weight: 600;
    letter-spacing: 0.5px;
    background-color: transparent;
    display: inline-block;
    line-height: 1.2;
}

.nav-cta:hover {
    background-color: var(--nav-text, #fff);
    color: var(--nav-cta-text-hover, #5d4037) !important;
    border-color: var(--nav-text, #fff);
}

/* Mobile Header CTA */
.mobile-header-cta {
    display: none;
    /* Hidden by default, shown in media queries */
    color: #fff;
    text-decoration: none;
    border: none;
    background-color: #D4AF37;
    /* Gold/Bronze color to stand out */
    padding: 8px 16px;
    border-radius: 4px;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    /* Bold */
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    margin-right: auto;
    /* Pushes hamburger to the right if using flex-start, but we use space-between/center */
    margin-left: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    /* Add shadow for depth */
}

.mobile-header-cta:hover {
    background-color: #C5A028;
    color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Top Bar Styles */
.top-bar {
    background: var(--aqua-cream);
    color: var(--aqua-soft-gray);
    padding: 10px 0;
    font-family: 'Georgia', serif;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(74, 144, 164, 0.2);
}

.top-bar-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.top-bar-contact {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    /* Bold text as requested */
    position: relative;
}

.top-bar-item i {
    color: #4A90A4;
    /* Ensure icons are visible */
    font-size: 1.1rem;
    margin-right: 2px;
}

/* Responsive Mobile Optimizations */
@media (max-width: 480px) {
    .header-brand-section {
        padding: 0.5rem 0;
    }

    .nav-brand-logo {
        height: 45px;
    }

    .brand-title {
        /* Font size is handled by clamp() in main rule, but we can tweak if needed */
    }

    .brand-subtitle {
        display: none;
    }

    /* Compact Style Selector for Mobile - VERY DISCRETE */
    body .style-widget-wrapper {
        display: block !important;
        position: fixed !important;
        bottom: 15px !important;
        right: 15px !important;
        z-index: 9999 !important;
        margin: 0 !important;
        opacity: 0.5;
        transition: opacity 0.3s ease;
    }

    .style-widget-wrapper:hover,
    .style-widget-wrapper:focus-within {
        opacity: 1;
    }

    .smile-container {
        width: auto;
        flex-direction: row;
        align-items: center;
        gap: 0;
    }

    .smile-bubble {
        display: contents;
    }

    .bubble-text {
        display: none;
    }

    .smile-logo {
        display: none;
    }

    /* Discrete Selector */
    .bubble-selector {
        width: auto;
        min-width: 40px;
        height: 32px;
        border-radius: 16px;
        padding: 0 10px 0 8px;
        font-size: 0.75rem;
        background-color: rgba(255, 255, 255, 0.9);
        border: 1px solid var(--brand-border, #ccc);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        cursor: pointer;
        color: #5D4E42;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%235D4E42' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 8px center;
        text-indent: 0;
    }

    .bubble-selector option {
        text-indent: 0;
        padding: 5px;
        font-size: 0.9rem;
    }

    .desktop-menu {
        display: none;
    }

    .hamburger-menu {
        display: flex;
    }

    .nav-container {
        justify-content: space-between;
        /* Space between CTA and Hamburger */
        padding: 0.5rem 20px;
    }

    .bar {
        background-color: #fff;
    }

    .mobile-header-cta {
        display: inline-block;
    }
}

@media (min-width: 481px) and (max-width: 640px) {
    .header-brand-section {
        padding: 0.5rem 0;
    }

    .nav-brand-logo {
        height: 50px;
    }

    .brand-subtitle {
        font-size: 0.9rem;
    }

    /* Compact Style Selector for Medium Mobile - VERY DISCRETE */
    body .style-widget-wrapper {
        display: block !important;
        position: fixed !important;
        bottom: 15px !important;
        right: 15px !important;
        z-index: 3000 !important;
        margin: 0 !important;
        opacity: 0.5;
        transition: opacity 0.3s ease;
    }

    .style-widget-wrapper:hover,
    .style-widget-wrapper:focus-within {
        opacity: 1;
    }

    .smile-container {
        width: auto;
    }

    .smile-bubble {
        display: contents;
    }

    .bubble-text {
        display: none;
    }

    .smile-logo {
        display: none;
    }

    .bubble-selector {
        width: auto;
        min-width: 40px;
        height: 32px;
        border-radius: 16px;
        padding: 0 10px 0 8px;
        font-size: 0.75rem;
        background-color: rgba(255, 255, 255, 0.9);
        border: 1px solid var(--brand-border, #ccc);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        cursor: pointer;
        color: #5D4E42;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%235D4E42' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 8px center;
        text-indent: 0;
    }

    .desktop-menu {
        display: none;
    }

    .hamburger-menu {
        display: flex;
    }

    .nav-container {
        justify-content: space-between;
        padding: 0.5rem 20px;
    }

    .bar {
        background-color: #fff;
    }

    .mobile-header-cta {
        display: inline-block;
    }
}

@media (min-width: 641px) and (max-width: 768px) {
    .header-brand-section {
        padding: 0.5rem 0;
    }

    .nav-brand-logo {
        height: 60px;
    }

    .brand-subtitle {
        font-size: 0.95rem;
    }

    /* Show desktop widget on tablet */
    .style-widget-wrapper {
        display: flex !important;
    }

    .desktop-menu {
        display: none;
    }

    .hamburger-menu {
        display: flex;
    }

    .nav-container {
        justify-content: space-between;
        padding: 0.5rem 20px;
    }

    .bar {
        background-color: #fff;
    }

    .mobile-header-cta {
        display: inline-block;
    }
}

/* Global Seagull Animation */
.seagull-container {
    position: absolute;
    top: 15%;
    /* Targeted at the top 1/3 of the hero image */
    left: -150px;
    z-index: 2005;
    opacity: 0.8;
    animation: flyAcross 32s linear infinite;
    pointer-events: none;
    color: #000000;
    filter: drop-shadow(1px 1px 0.5px rgba(0, 0, 0, 0.08));
}

.seagull {
    width: 50px;
    height: 20px;
    animation: bob 3.5s ease-in-out infinite alternate;
}

.seagull-wings {
    transform-origin: 50% 50%;
}

.wing {
    transform-origin: 50px 20px;
    animation: flap 0.9s ease-in-out infinite alternate;
}

.wing-left {
    animation-delay: 0s;
}

.wing-right {
    animation-delay: 0s;
}

@keyframes flap {
    0% {
        transform: rotate(8deg) scaleY(1);
    }

    100% {
        transform: rotate(-12deg) scaleY(0.85);
    }
}

@keyframes flyAcross {
    0% {
        left: -150px;
        top: 15%;
        transform: scale(0.65);
    }

    33% {
        top: 14%;
        transform: scale(0.68);
    }

    66% {
        top: 16%;
        transform: scale(0.68);
    }

    100% {
        left: 120%;
        top: 15%;
        transform: scale(0.65);
    }
}

@keyframes bob {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-2px);
    }
}