/* Responsive layer for the application, intentionally not loaded by cahier de sortie pages. */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: 1rem;
}

img,
video,
iframe,
svg {
    max-width: 100%;
}

button,
input,
select,
textarea {
    max-width: 100%;
}

button,
[role="button"],
a.btn-primary,
a.btn-secondary,
a.btn-logout {
    min-height: 44px;
}

.hero-carousel-dot {
    min-height: 10px;
}

.dashboard-wrapper,
.admin-main,
.container-bateau,
.bateau-details-grid,
.dashboard-top-header,
.quick-access-grid,
.equipements-grid-dash,
.locatif-action-cards,
.equipements-action-cards {
    min-width: 0;
}

.container-bateau {
    width: min(100% - 2rem, 1000px);
}

.bateau-details-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-header {
    gap: 1rem;
}

.admin-nav {
    max-width: 100%;
}

.admin-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    max-width: 100%;
}

.admin-nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
}

.admin-main {
    width: min(100%, 1600px);
    margin-inline: auto;
}

.admin-main table {
    max-width: 100%;
}

.dashboard-wrapper {
    width: calc(100% - 32px);
}

.dashboard-wrapper > * {
    min-width: 0;
}

.dashboard-tabs {
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
}

.header-modern {
    max-width: min(1500px, calc(100% - 2rem));
}

.subscription-header {
    max-width: calc(100% - 2rem);
}

.boats-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
    gap: clamp(1rem, 2vw, 2rem);
}

.boat-card,
.boat-content,
.boat-header,
.boat-club,
.location-dates,
.dates-text,
.boat-price-section {
    min-width: 0;
}

.boat-title,
.club-name,
.date-range,
.spec-label,
.spec-value {
    overflow-wrap: anywhere;
}

.boat-specs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.boat-specs .spec-item {
    min-width: 0;
}

.boat-specs .spec-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.boat-specs-location .spec-label {
    font-size: 0.58rem;
    letter-spacing: 0.04em;
}

.forgot-password-card,
.reset-password-card {
    padding: clamp(1.5rem, 4vw, 2.5rem);
}

.site-nav-toggle {
    display: none;
}

.landing-menu-toggle {
    display: none;
}

/* ==========================================================
   MODALE CONNEXION CLUB (AJAX) - fluide, mobile-first
   Aucun palier fixe : tailles via clamp()/dvh, scroll interne
   si l'écran est trop court (jamais de contenu coupé).
========================================================== */
#modal.show:has(.connexion-modal-wrapper) {
    --cx-gap: clamp(0.5rem, 2.5vw, 1.5rem);
    --cx-pad: clamp(1rem, 0.5rem + 3vw, 2.25rem);
    --cx-field-h: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(var(--cx-gap), env(safe-area-inset-top))
        max(var(--cx-gap), env(safe-area-inset-right))
        max(var(--cx-gap), env(safe-area-inset-bottom))
        max(var(--cx-gap), env(safe-area-inset-left));
    overflow: hidden;
}

#modal .modal-content:has(.connexion-modal-wrapper) {
    width: min(100%, 30rem);
    max-width: 30rem;
    max-height: 100%;
    margin: 0;
    padding: var(--cx-pad);
    border-radius: clamp(14px, 1rem + 1vw, 24px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

#modal .connexion-modal-wrapper {
    container-type: inline-size;
    width: 100%;
    max-width: 26rem;
    min-width: 0;
    padding: 0;
    margin-inline: auto;
}

#modal:has(.connexion-modal-wrapper) .close {
    top: clamp(0.5rem, 2vw, 1rem);
    right: clamp(0.5rem, 2vw, 1rem);
    width: 40px;
    height: 40px;
}

#modal .connexion-header {
    margin-bottom: clamp(0.85rem, 3dvh, 2rem);
    padding-inline: 2rem;
}

#modal .connexion-title {
    font-size: clamp(1.35rem, 1rem + 1.6vw, 2rem);
    line-height: 1.15;
}

#modal .connexion-subtitle {
    margin-top: 0.35rem;
    font-size: clamp(0.85rem, 0.8rem + 0.25vw, 1rem);
    line-height: 1.3;
}

#modal .connexion-errors {
    margin-bottom: clamp(0.75rem, 2dvh, 1.5rem);
}

#modal .connexion-form .form-group {
    margin-bottom: clamp(0.75rem, 2.2dvh, 1.5rem);
}

#modal .connexion-form .form-label-modal {
    margin: 0 0 0.4rem;
    font-size: clamp(0.82rem, 0.78rem + 0.2vw, 0.95rem);
}

#modal .connexion-form .form-input-modal {
    min-height: var(--cx-field-h);
    font-size: 16px; /* évite le zoom auto d'iOS */
}

#modal .connexion-form .password-wrapper .form-input-modal {
    padding-right: 3rem;
}

#modal .connexion-form .toggle-password {
    min-width: 40px;
    min-height: 40px;
    right: 4px;
}

#modal .connexion-form .forgot-password-link {
    display: inline-block;
    margin-top: 0.5rem;
    padding-block: 0.25rem;
}

#modal .connexion-form .btn-connexion-submit,
#modal .connexion-footer .btn-signup {
    display: flex;
    width: 100%;
    min-height: var(--cx-field-h);
    justify-content: center;
    text-align: center;
    white-space: normal;
}

#modal .connexion-form .btn-connexion-submit {
    margin-top: clamp(0.5rem, 1.5dvh, 1.5rem);
}

#modal .connexion-divider {
    margin: clamp(0.85rem, 2.5dvh, 2rem) 0;
}

#modal .connexion-footer .signup-prompt {
    margin: 0 0 0.6rem;
}

#modal .connexion-footer .legal-link {
    display: inline-block;
    margin-top: 0.75rem;
    padding-block: 0.25rem;
}

/* reCAPTCHA : widget de 304px de large, réduit si le conteneur est plus étroit */
#modal .connexion-form .g-recaptcha {
    flex: none;
    transform-origin: center top;
}

@container (max-width: 320px) {
    .g-recaptcha {
        transform: scale(0.92);
        margin-bottom: -6px;
    }
}

@container (max-width: 290px) {
    .g-recaptcha {
        transform: scale(0.82);
        margin-bottom: -14px;
    }
}

@container (max-width: 255px) {
    .g-recaptcha {
        transform: scale(0.72);
        margin-bottom: -22px;
    }
}

/* Écran large : un peu plus d'air */
@media (min-width: 1024px) and (min-height: 760px) {
    #modal.show:has(.connexion-modal-wrapper) {
        --cx-pad: 2.5rem;
    }
}

/* Paysage / écrans très bas : on compacte, le scroll interne fait le reste */
@media (max-height: 560px) {
    #modal.show:has(.connexion-modal-wrapper) {
        --cx-field-h: 42px;
        --cx-pad: 1rem;
    }

    #modal .connexion-header {
        margin-bottom: 0.6rem;
    }

    #modal .connexion-subtitle {
        display: none;
    }
}

@media (max-width: 1024px) {
    .pro-header {
        padding: 0.65rem 1rem;
    }

    .pro-header .header-inner {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto auto;
        gap: 0.5rem;
    }

    .pro-header .logo-group {
        grid-column: 1;
        grid-row: 1;
        min-width: 0;
    }

    .pro-header .logo-text {
        font-size: clamp(1rem, 2vw, 1.25rem);
        white-space: nowrap;
    }

    .pro-header .header-inner > div {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
        gap: 0.35rem;
    }

    .pro-header .nav-links {
        display: none;
        grid-column: 1 / -1;
        grid-row: 2;
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
        min-width: 0;
        padding-top: 0.5rem;
    }

    .pro-header .header-inner.menu-open .nav-links {
        display: flex;
    }

    .pro-header .nav-link {
        display: flex;
        align-items: center;
        min-height: 44px;
        padding: 0.65rem 0.75rem;
    }

    .pro-header .btn-header {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        padding: 0.55rem 0.8rem;
        white-space: nowrap;
    }

    .pro-header .landing-menu-toggle {
        display: flex;
        grid-column: 3;
        grid-row: 1;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 1px solid rgba(255, 255, 255, 0.18);
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.06);
        color: #fff;
        cursor: pointer;
    }

    .pro-header .landing-menu-toggle span {
        display: block;
        width: 18px;
        height: 2px;
        border-radius: 2px;
        background: currentColor;
    }
}

@media (max-width: 1100px) {
    .header-modern .site-nav-layout {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto auto;
        gap: 0.5rem;
    }

    .header-modern .site-nav-layout > div:first-child {
        grid-column: 1;
        grid-row: 1;
        min-width: 0;
        white-space: nowrap;
    }

    .header-modern .site-nav-layout > div:first-child h1 {
        font-size: clamp(1rem, 2.2vw, 1.35rem);
        white-space: nowrap;
    }

    .header-modern .site-nav-links {
        display: none;
        grid-column: 1 / -1;
        grid-row: 2;
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
        min-width: 0;
        padding: 0.5rem 0;
        overflow: visible;
        white-space: normal;
    }

    .header-modern .site-nav-links .catalogue-dropdown {
        display: none;
    }

    .header-modern .site-nav-layout.menu-open .site-nav-links {
        display: flex;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        align-self: stretch;
        gap: 0.35rem;
        margin-top: 0.35rem;
        padding: 0.55rem;
        border: 1px solid rgba(148, 163, 184, 0.16);
        border-radius: 16px;
        background: linear-gradient(145deg, rgba(20, 27, 43, 0.98), rgba(12, 17, 29, 0.98));
        box-shadow: 0 18px 38px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.04);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        animation: mobile-nav-enter 180ms ease-out both;
    }

    .header-modern .site-nav-links > :not([hidden]) ~ :not([hidden]) {
        margin-inline: 0 !important;
    }

    .header-modern .site-nav-links > * {
        min-width: 0;
        box-sizing: border-box;
    }

    .header-modern .site-nav-links .header-link {
        display: flex;
        justify-content: flex-start;
        width: 100%;
        min-height: 46px;
        padding: 0.7rem 0.85rem;
        border: 1px solid transparent;
        border-radius: 11px;
        color: rgba(241, 245, 249, 0.88);
        text-shadow: none;
        transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
    }

    .header-modern .site-nav-links .header-link::before {
        display: none;
    }

    .header-modern .site-nav-links .header-link svg {
        flex: 0 0 auto;
        color: #93a4bf;
    }

    .header-modern .site-nav-links .header-link:hover,
    .header-modern .site-nav-links .header-link:focus-visible {
        border-color: rgba(148, 163, 184, 0.14);
        background: rgba(255, 255, 255, 0.07);
        color: #fff;
        transform: translateX(2px);
        outline: none;
    }

    .header-modern .site-nav-links .mobile-menu-create {
        margin-top: 0.15rem;
        border-color: rgba(96, 165, 250, 0.28);
        background: linear-gradient(110deg, rgba(37, 99, 235, 0.2), rgba(30, 64, 175, 0.12));
        color: #dbeafe;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    }

    .header-modern .site-nav-links .mobile-menu-create svg {
        color: #93c5fd;
    }

    .header-modern .site-nav-actions {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
        gap: 0.35rem;
        min-width: 0;
    }

    .header-modern .site-nav-actions > * {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .header-modern .site-nav-toggle {
        display: flex;
        grid-column: 3;
        grid-row: 1;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 1px solid rgba(148, 163, 184, 0.25);
        border-radius: 14px;
        background: linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035));
        color: #fff;
        cursor: pointer;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 4px 12px rgba(0, 0, 0, 0.16);
        transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
    }

    .header-modern .site-nav-toggle:hover,
    .header-modern .site-nav-toggle:focus-visible,
    .header-modern .site-nav-toggle[aria-expanded="true"] {
        border-color: rgba(96, 165, 250, 0.55);
        background: linear-gradient(145deg, rgba(37, 99, 235, 0.24), rgba(30, 64, 175, 0.14));
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }

    .header-modern .site-nav-toggle:active {
        transform: scale(0.96);
    }

    .header-modern .site-nav-toggle:focus-visible {
        outline: 2px solid rgba(96, 165, 250, 0.8);
        outline-offset: 2px;
    }

    .header-modern .site-nav-toggle span {
        display: block;
        width: 18px;
        height: 2px;
        border-radius: 2px;
        background: linear-gradient(90deg, #fff, #bfdbfe);
        transform-origin: center;
        transition: transform 180ms ease, opacity 140ms ease, width 180ms ease;
    }

    .header-modern .site-nav-toggle[aria-expanded="true"] span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .header-modern .site-nav-toggle[aria-expanded="true"] span:nth-child(2) {
        width: 0;
        opacity: 0;
    }

    .header-modern .site-nav-toggle[aria-expanded="true"] span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    @keyframes mobile-nav-enter {
        from {
            opacity: 0;
            transform: translateY(-6px) scale(0.985);
        }

        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }
}

@media (max-width: 600px) {
    .header-modern .site-nav-actions #open-creation {
        display: none !important;
    }

    .header-modern .site-nav-links .mobile-menu-create {
        display: flex;
    }
}

@media (min-width: 601px) {
    .header-modern .site-nav-links .mobile-menu-create {
        display: none;
    }
}

@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.5rem;
    }

    .hero-content.hero-search,
    .hero-visual {
        width: 100%;
        max-width: none;
        min-width: 0;
    }

    .admin-main {
        padding-inline: clamp(1rem, 3vw, 2rem);
    }

    .dashboard-wrapper {
        gap: 1rem;
    }

    .container-bateau {
        margin-block: 1.5rem;
        padding: clamp(1.25rem, 4vw, 2rem);
    }
}

@media (max-width: 768px) {
    html {
        scroll-padding-top: 0.75rem;
    }

    body {
        font-size: 16px;
    }

    input,
    select,
    textarea {
        font-size: 16px;
    }

    .admin-header {
        position: relative;
        flex-wrap: wrap;
        padding: 0.875rem 1rem;
    }

    .admin-user {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .admin-nav {
        position: sticky;
        top: 0;
        z-index: 90;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
    }

    .admin-nav ul {
        flex-wrap: nowrap;
        width: max-content;
        min-width: 100%;
        padding-inline: 0.75rem;
    }

    .admin-nav li,
    .admin-nav a {
        flex: 0 0 auto;
    }

    .admin-main {
        padding: 1.25rem 1rem 2rem;
    }

    .admin-main .page-header {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .admin-main .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-main .page-header,
    .admin-main .page-title,
    .admin-main .filters,
    .admin-main .filters-grid {
        min-width: 0;
    }

    .admin-main .filters-grid,
    .admin-main .form-grid,
    .admin-main .info-grid,
    .admin-main .detail-grid,
    .admin-main .grid-2 {
        grid-template-columns: minmax(0, 1fr);
    }

    .admin-main table {
        display: block;
        width: 100%;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
    }

    .admin-main th,
    .admin-main td {
        white-space: nowrap;
    }

    .dashboard-wrapper {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        min-height: 0;
    }

    .dashboard-tabs {
        position: static;
        display: flex;
        flex-direction: row;
        gap: 0.5rem;
        width: 100%;
        min-width: 0;
        max-height: none;
        padding: 0.65rem;
        overflow-x: auto;
        overflow-y: hidden;
        border-radius: 14px;
        scrollbar-width: thin;
    }

    .dashboard-tabs > * {
        flex: 0 0 auto;
    }

    .dashboard-logo,
    .dashboard-tabs .tab-section-title {
        display: none;
    }

    .dashboard-tabs .tab-btn {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .boats-grid-dash {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    }

    .equipements-grid-dash {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    }

    .dashboard-wrapper .tab-content {
        padding: 1rem;
        border-radius: 14px;
    }

    .boats-grid-dash,
    .equipements-grid-dash {
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }

    .dashboard-top-header {
        flex-wrap: wrap;
        gap: 0.75rem;
        padding: 0.875rem;
    }

    .dashboard-top-header .header-left {
        min-width: 0;
        flex-wrap: wrap;
    }

    .quick-access-grid,
    .equipements-grid-dash,
    .locatif-action-cards,
    .equipements-action-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bateau-details-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.25rem;
    }

    .container-bateau {
        width: min(100% - 1.5rem, 1000px);
        margin-block: 1rem;
        padding: 1rem;
        border-radius: 14px;
    }

    .header-modern {
        top: 0.5rem;
        max-width: calc(100% - 1rem);
        border-radius: 20px;
    }

    .header-modern > nav {
        padding: 0.5rem 0.75rem;
    }

    .pro-header {
        padding-inline: 0.75rem;
    }

    .header-modern .site-nav-layout > div:first-child h1 {
        display: none;
    }

    .header-modern .header-top {
        flex-wrap: wrap;
        gap: 0.75rem;
        padding: 0.75rem 1rem;
    }
}

@media (min-width: 1101px) and (max-width: 1280px) {
    .header-modern > nav {
        padding-inline: clamp(0.75rem, 1.6vw, 1.25rem);
    }

    .header-modern .site-nav-layout {
        flex-wrap: nowrap;
        gap: clamp(0.35rem, 0.8vw, 0.65rem);
    }

    .header-modern .site-nav-layout > div:first-child {
        flex: 0 0 auto;
        gap: 0.5rem;
        white-space: nowrap;
    }

    .header-modern .site-nav-layout > div:first-child h1 {
        flex: 0 0 auto;
        font-size: clamp(1.05rem, 1.5vw, 1.2rem);
        letter-spacing: -0.02em;
        white-space: nowrap;
    }

    .header-modern .site-nav-links {
        flex: 1 1 auto;
        justify-content: center;
        gap: clamp(0.1rem, 0.4vw, 0.35rem);
        min-width: 0;
        white-space: nowrap;
    }

    .header-modern .site-nav-links > :not([hidden]) ~ :not([hidden]) {
        margin-inline: 0 !important;
    }

    .header-modern .site-nav-links .header-link {
        flex: 0 0 auto;
        padding: 0.55rem 0.5rem;
        font-size: 0.86rem;
        white-space: nowrap;
    }

    .header-modern .site-nav-actions {
        flex: 0 0 auto;
        gap: 0.4rem;
        white-space: nowrap;
    }

    .header-modern .site-nav-actions > :not([hidden]) ~ :not([hidden]) {
        margin-inline: 0 !important;
    }

    .header-modern .site-nav-actions #open-creation {
        gap: 0.35rem;
        padding: 0.55rem 0.5rem;
        font-size: 0.82rem;
        white-space: nowrap;
    }

    .header-modern .site-nav-actions #open-connexion {
        gap: 0.35rem;
        padding: 0.6rem 0.75rem;
        font-size: 0.86rem;
        white-space: nowrap;
    }

    .header-modern .site-nav-actions .btn-dashboard-main,
    .header-modern .site-nav-actions .btn-dashboard-messages,
    .header-modern .site-nav-actions .btn-logout-header {
        gap: 0.35rem;
        padding-inline: 0.65rem;
        white-space: nowrap;
    }

    .header-modern .site-nav-toggle {
        display: none;
    }
}

@media (max-width: 480px) {
    .boat-specs-location .spec-item {
        padding-inline: 4px;
    }

    .boat-specs-location .spec-label {
        font-size: 0.54rem;
        letter-spacing: 0.02em;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .boat-specs-location .spec-value-date-range {
        font-size: 0.65rem;
    }

    .admin-header {
        align-items: flex-start;
    }

    .admin-logo {
        font-size: 1rem;
    }

    .admin-user {
        width: 100%;
        justify-content: space-between;
    }

    .admin-user-info {
        text-align: left;
    }

    .header-modern .site-nav-actions #open-creation {
        display: inline-flex;
    }

    .site-nav-links .mobile-menu-create {
        display: flex;
    }

    .header-modern .site-nav-actions .btn-dashboard-main span,
    .header-modern .site-nav-actions .btn-logout-header .logout-text {
        display: none;
    }

    .header-modern .site-nav-actions .btn-dashboard-main,
    .header-modern .site-nav-actions .btn-dashboard-messages,
    .header-modern .site-nav-actions .btn-logout-header {
        justify-content: center;
        width: 44px;
        padding-inline: 0.5rem;
    }

    .pro-header .logo-text {
        display: none;
    }

    .pro-header .header-inner {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .pro-header .landing-menu-toggle {
        grid-column: 3;
        grid-row: 1;
    }

    .pro-header .header-inner > div {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
        justify-content: flex-end;
    }

    .pro-header .btn-header {
        padding-inline: 0.55rem;
        font-size: 0.8rem;
    }

    .pro-header .nav-links {
        grid-row: 2;
    }

    .admin-main {
        padding-inline: 0.75rem;
    }

    .admin-main .stats-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .login-container,
    .forgot-password-container {
        width: calc(100% - 1rem);
        max-width: 100%;
        margin-inline: auto;
    }

    .login-card {
        width: 100%;
        padding: clamp(1rem, 5vw, 1.5rem);
    }

    .forgot-password-card,
    .reset-password-card {
        padding: clamp(1rem, 5vw, 1.5rem);
    }

    .admin-main .stats-grid,
    .admin-main .images-grid,
    .quick-access-grid,
    .equipements-grid-dash,
    .locatif-action-cards,
    .equipements-action-cards {
        grid-template-columns: minmax(0, 1fr);
    }

    .dashboard-top-header {
        align-items: flex-start;
    }

    .header-modern,
    .subscription-header {
        max-width: calc(100% - 1rem);
    }

    .container-bateau {
        width: calc(100% - 1rem);
        padding: 0.75rem;
    }

    .admin-main .page-title,
    .container-bateau h1 {
        font-size: clamp(1.35rem, 7vw, 1.8rem);
        overflow-wrap: anywhere;
    }
}

@media (max-width: 360px) {
    .pro-header .header-inner {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .pro-header .landing-menu-toggle {
        grid-column: 2;
        grid-row: 1;
    }

    .pro-header .header-inner > div {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-self: stretch;
        justify-content: flex-start;
    }

    .pro-header .nav-links {
        grid-row: 3;
    }

    .boat-specs-location .spec-value-date-range {
        font-size: 0.56rem;
    }

    .boat-image {
        height: 150px;
    }

    .boat-content {
        padding: 12px;
    }

    .boat-header {
        margin-bottom: 8px;
    }

    .boat-specs {
        gap: 6px;
        margin-bottom: 12px;
    }

    .boat-specs .spec-item {
        min-height: 76px;
        padding: 6px 4px;
    }

    .boat-price-section {
        min-height: 118px;
        margin-bottom: 12px;
        padding: 12px;
    }

    .boat-specs-sale .spec-label {
        font-size: 0.54rem;
        letter-spacing: 0.02em;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

@media (max-width: 1100px) {
    .dashboard-wrapper {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        min-height: 0;
    }

    .dashboard-tabs {
        position: static;
        display: flex;
        flex-direction: row;
        gap: 0.5rem;
        width: 100%;
        min-width: 0;
        max-height: none;
        padding: 0.65rem;
        overflow-x: auto;
        overflow-y: hidden;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
        border-radius: 14px;
        scrollbar-width: thin;
        background-color: #141928;
        background-image: linear-gradient(135deg, #141928, #0f1423);
    }

    .dashboard-logo,
    .dashboard-tabs .tab-section-title,
    .dashboard-tabs .tab-spacer {
        display: none;
    }

    .dashboard-tabs .tab-btn.tab-parent:not(.tab-parent-espace) {
        display: none;
    }

    .dashboard-tabs > *,
    .dashboard-tabs .tab-btn {
        flex: 0 0 auto;
    }

    .dashboard-tabs .tab-btn {
        width: auto;
        white-space: nowrap;
    }

    .dashboard-tabs .tab-btn.tab-parent-espace {
        display: flex;
        width: auto;
        margin-bottom: 0;
        padding: 10px 14px;
    }

    .dashboard-tabs .tab-btn.tab-child-espace {
        width: auto;
        margin-left: 0;
        padding: 10px 14px;
        border-left: 0;
        border: 1px solid rgba(45, 212, 191, 0.16);
        border-radius: 10px;
        background: rgba(45, 212, 191, 0.04);
    }

    .dashboard-tabs .tab-btn.tab-child-espace::before {
        content: none;
    }

    #toggle-mon-espace:checked ~ .dashboard-tabs .tab-btn.tab-parent-espace {
        color: #2dd4bf;
        background: rgba(45, 212, 191, 0.12);
    }

    .dashboard-wrapper .tab-content {
        width: 100%;
        min-width: 0;
        padding: clamp(1rem, 2.5vw, 1.5rem);
        border-radius: 14px;
    }

    .dashboard-top-header {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .dashboard-top-header .header-left {
        flex: 1 1 320px;
        min-width: 0;
    }

    .dashboard-top-header .header-club-info {
        flex: 1 1 0;
        min-width: 0;
    }

    .dashboard-top-header .header-right {
        flex: 0 1 auto;
        gap: 0.75rem;
    }

    .dashboard-top-header .header-greeting,
    .dashboard-top-header .header-subtitle {
        overflow-wrap: anywhere;
    }

    .dashboard-top-header .header-date,
    .dashboard-top-header .header-time {
        white-space: nowrap;
    }

    .dashboard-wrapper .location-table-container {
        max-width: 100%;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
    }

    .dashboard-wrapper .location-table {
        min-width: 900px;
    }

    .dashboard-wrapper .location-table th {
        padding: 0.75rem 0.65rem;
        line-height: 1.3;
        white-space: normal;
    }

    .dashboard-wrapper .location-table th.th-jours {
        width: 8%;
        min-width: 64px;
    }
}

@media (max-width: 768px) {
    .dashboard-top-header {
        align-items: stretch;
        padding: 0.875rem;
    }

    .dashboard-top-header .header-left {
        width: 100%;
        flex: 0 1 auto;
        flex-wrap: nowrap;
    }

    .dashboard-top-header .header-right {
        width: 100%;
        flex: 0 1 auto;
        justify-content: space-between;
    }

    .dashboard-top-header .header-datetime {
        flex-wrap: wrap;
        gap: 0.6rem;
    }

    .dashboard-top-header .notification-bell {
        width: 44px;
        height: 44px;
        padding: 0;
    }
}

@media (max-width: 900px) {
    .dashboard-wrapper .quick-access-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
    }

    .dashboard-wrapper .locatif-action-cards,
    .dashboard-wrapper .equipements-action-cards {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
        gap: 1rem;
    }

    .dashboard-wrapper .locatif-action-cards > *,
    .dashboard-wrapper .equipements-action-cards > * {
        min-width: 0;
    }
}

@media (max-width: 600px) {
    .dashboard-wrapper .quick-access-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .dashboard-top-header {
        padding: 0.75rem;
    }

    .dashboard-top-header .header-left {
        gap: 0.65rem;
    }

    .dashboard-top-header .header-greeting {
        font-size: clamp(0.95rem, 4.5vw, 1rem);
        line-height: 1.25;
    }

    .dashboard-top-header .header-subtitle {
        font-size: 0.75rem;
    }

    .dashboard-wrapper .locatif-action-cards,
    .dashboard-wrapper .equipements-action-cards {
        grid-template-columns: minmax(0, 1fr);
    }
}

#hero-date_debut,
#hero-date_fin,
#date_debut,
#date_fin {
    display: block;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
    inline-size: 100%;
    width: 100%;
    max-width: 100%;
    min-inline-size: 0;
    min-width: 0;
    height: 44px;
    min-height: 44px;
    max-height: 44px;
    padding: 0 40px 0 14px;
    font-size: 16px;
    line-height: normal;
    text-align: left;
}

#filter-form,
#filter-form .filter-group,
#hero-filter-form,
#hero-filter-form .hero-filter-group {
    min-width: 0;
}

#hero-date_debut::-webkit-date-and-time-value,
#hero-date_fin::-webkit-date-and-time-value,
#date_debut::-webkit-date-and-time-value,
#date_fin::-webkit-date-and-time-value {
    display: flex;
    align-items: center;
    height: 100%;
    min-height: 1.2em;
    line-height: 1.2;
    text-align: left;
}

#hero-date_debut::-webkit-calendar-picker-indicator,
#hero-date_fin::-webkit-calendar-picker-indicator,
#date_debut::-webkit-calendar-picker-indicator,
#date_fin::-webkit-calendar-picker-indicator {
    width: 20px;
    height: 20px;
    margin: 0 2px 0 0;
    padding: 0;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Keep application-level headers aligned with the landing-page palette. */
.pro-header,
.pro-header.scrolled {
    background: rgba(17, 21, 30, .82) !important;
    border-bottom: 1px solid rgba(127, 168, 255, .25);
    box-shadow: 0 4px 30px rgba(0, 0, 0, .3);
}

.pro-header .nav-link {
    color: #d5dbec;
}

.pro-header .nav-link:hover {
    color: #fff;
}

.pro-header .logo-text span {
    color: #7fa8ff;
}

.pro-header .btn-header-outline {
    border-color: rgba(127, 168, 255, .4);
    color: #fff;
}

.pro-header .btn-header-outline:hover {
    border-color: #7fa8ff;
    background: rgba(127, 168, 255, .12);
}

.pro-header .btn-header-primary {
    background: #fff;
    color: #04061f;
}

.pro-header .btn-header-primary:hover {
    background: #dce7ff;
    color: #04061f;
}

.admin-header,
.admin-nav {
    background: rgba(17, 21, 30, .82) !important;
    border-color: rgba(127, 168, 255, .25) !important;
    color: #f3f5fa;
}

.admin-logo span {
    color: #7fa8ff !important;
}

.admin-user-role {
    color: #aeb7d3 !important;
}

.admin-nav a {
    color: #aeb7d3 !important;
}

.admin-nav a:hover {
    background: rgba(127, 168, 255, .12);
    color: #fff !important;
}

.admin-nav a.active {
    border-bottom-color: #7fa8ff !important;
    color: #7fa8ff !important;
}

.subscription-header {
    padding: clamp(18px, 4vw, 28px);
    border: 1px solid rgba(127, 168, 255, .25);
    border-radius: 16px;
    background: rgba(17, 21, 30, .82);
}

.subscription-header h1 {
    color: #fff !important;
}

.subscription-header p {
    color: #aeb7d3 !important;
}

button,
input[type="button"],
input[type="submit"],
input[type="reset"],
[role="button"],
[class~="btn"],
[class*="btn-"],
[class*="-btn"],
[class*="button"] {
    box-shadow: none !important;
}

button:focus-visible,
input[type="button"]:focus-visible,
input[type="submit"]:focus-visible,
input[type="reset"]:focus-visible,
[role="button"]:focus-visible,
[class~="btn"]:focus-visible,
[class*="btn-"]:focus-visible,
[class*="-btn"]:focus-visible,
[class*="button"]:focus-visible {
    outline: 2px solid #7fa8ff;
    outline-offset: 2px;
}
