.notaires-search-actions {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.notaires-search-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.notaires-search-trigger svg {
    width: 22px;
    height: 22px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
}

.notaires-search-trigger svg path,
.notaires-search-trigger svg circle {
    fill: none;
    stroke: currentColor;
}

.notaires-search-trigger:hover,
.notaires-search-trigger[aria-expanded="true"] {
    color: #d80811;
    background: transparent;
    transform: none;
}

.notaires-search-trigger:focus-visible {
    outline: 2px solid #d80811;
    outline-offset: 3px;
}

.notaires-search-login {
    display: none;
}

@media (max-width: 1025px) {
    .notaires-search-login {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        margin-left: 4px;
        color: inherit;
        font-size: 13px;
        font-weight: 600;
        line-height: 1;
        text-decoration: none;
        white-space: nowrap;
    }

    .notaires-search-login svg {
        width: 16px;
        height: 16px;
        flex: 0 0 16px;
        display: block;
    }

    .notaires-search-login svg,
    .notaires-search-login svg path {
        fill: none !important;
        stroke: currentColor !important;
        stroke-width: 1.5 !important;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .notaires-search-login:hover,
    .notaires-search-login:focus-visible {
        color: #d80811;
    }
}

.notaires-account {
    position: relative;
    display: inline-flex;
}

.notaires-account__trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    cursor: pointer;
}

.notaires-account__initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #d80811;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1;
}

.notaires-account__trigger:hover .notaires-account__initials,
.notaires-account.is-open .notaires-account__initials {
    background: #b00710;
}

.notaires-account__trigger:focus-visible {
    outline: 2px solid #d80811;
    outline-offset: 3px;
}

.notaires-account__menu {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1000;
    min-width: 210px;
    padding: 14px 8px 8px;
    background: #ffffff;
    border: 1px solid #e4e4e4;
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.notaires-account__menu::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 10px;
    transform: translateY(-100%);
}

.notaires-account:hover .notaires-account__menu,
.notaires-account:focus-within .notaires-account__menu,
.notaires-account.is-open .notaires-account__menu {
    opacity: 1;
    visibility: visible;
    transform: none;
}

@media (max-width: 1025px) {
    .notaires-account__menu {
        z-index: 100000;
    }

    .notaires-account__menu::before {
        top: auto;
        bottom: 0;
        height: 12px;
        transform: translateY(100%);
    }
}

.notaires-account__menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 6px;
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    text-decoration: none;
}

.notaires-account__menu a:hover,
.notaires-account__menu a:focus-visible {
    color: #d80811;
    background: #fafafa;
}

.notaires-account__logout {
    margin-top: 4px;
    border-top: 1px solid #eeeeee;
    border-radius: 0 0 6px 6px;
}

body:has(.notaires-account-page) .uicore-page-title {
    display: none;
}

.notaires-account-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 72px 0 96px;
}

.notaires-account-page__title {
    margin: 0 0 8px;
    font-size: 32px;
    font-weight: 600;
    line-height: 1.2;
}

.notaires-account-page__intro {
    margin: 0 0 24px;
    color: #666666;
    font-size: 15px;
    line-height: 1.5;
}

.notaires-account-page__notice {
    margin: 0 0 20px;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.4;
}

.notaires-account-page__notice.is-success {
    background: #f3f8f3;
    color: #1d6b32;
}

.notaires-account-page__notice.is-error {
    background: #fdf2f2;
    color: #9a0610;
}

.notaires-account-page__form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.notaires-account-page__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.notaires-account-page__field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.notaires-account-page__field label {
    font-size: 13px;
    font-weight: 600;
}

.notaires-account-page__field input {
    width: 100%;
    height: 48px;
    margin: 0;
    padding: 0 14px;
    border: 1px solid #e4e4e4;
    border-radius: 0 !important;
    background: #ffffff;
    color: #1a1a1a;
    font: inherit;
    font-size: 15px;
    box-shadow: none;
}

.notaires-account-page__field input:focus {
    outline: none;
    border-color: #1a1a1a;
    box-shadow: 0 0 0 3px rgba(216, 8, 17, 0.12);
}

.notaires-account-page__field input:disabled {
    background: #f4f4f4;
    color: #6b6b6b;
    cursor: not-allowed;
    -webkit-text-fill-color: #6b6b6b;
    opacity: 1;
}

.notaires-account-page__hint {
    color: #8a8a8a;
    font-size: 12px;
    line-height: 1.4;
}

.notaires-account-page__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    min-width: 180px;
    height: 48px;
    margin-top: 8px;
    padding: 0 20px;
    border: 0;
    border-radius: 8px;
    background: #d80811;
    color: #ffffff;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.notaires-account-page__submit:hover {
    background: #b00710;
    color: #ffffff;
}

@media (max-width: 640px) {
    .notaires-account-page {
        padding: 48px 0 64px;
    }

    .notaires-account-page__row {
        grid-template-columns: 1fr;
    }

    .notaires-account-page__submit {
        width: 100%;
    }
}

@property --notaires-search-blur {
    syntax: "<length>";
    inherits: false;
    initial-value: 0px;
}

.notaires-search-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: grid;
    place-items: center;
    padding: 24px;
    visibility: hidden;
    pointer-events: none;
}

.notaires-search-modal.is-open,
.notaires-search-modal.is-closing {
    visibility: visible;
}

.notaires-search-modal.is-open {
    pointer-events: auto;
}

.notaires-search-modal__backdrop {
    --notaires-search-blur: 0px;
    position: absolute;
    inset: 0;
    background-color: rgba(17, 17, 17, 0);
    backdrop-filter: blur(var(--notaires-search-blur));
    -webkit-backdrop-filter: blur(var(--notaires-search-blur));
}

.notaires-search-modal.is-ready .notaires-search-modal__backdrop {
    transition:
        --notaires-search-blur 1.05s cubic-bezier(0.45, 0.05, 0.15, 1),
        background-color 1.05s cubic-bezier(0.45, 0.05, 0.15, 1);
}

.notaires-search-modal.is-open .notaires-search-modal__backdrop {
    --notaires-search-blur: 12px;
    background-color: rgba(17, 17, 17, 0.46);
}

.notaires-search-modal__dialog {
    position: relative;
    width: min(560px, 100%);
    max-height: min(720px, calc(100vh - 48px));
    overflow: auto;
    background: #ffffff;
    color: #1a1a1a;
    padding: 40px 36px 32px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.18);
    transform: translateY(28px) scale(0.96);
    opacity: 0;
}

.notaires-search-modal.is-ready .notaires-search-modal__dialog {
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
}

.notaires-search-modal.is-open .notaires-search-modal__dialog {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.notaires-search-modal__dialog > * {
    opacity: 0;
    transform: translateY(10px);
}

.notaires-search-modal.is-ready .notaires-search-modal__dialog > * {
    transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.notaires-search-modal.is-open .notaires-search-modal__dialog > * {
    opacity: 1;
    transform: none;
}

.notaires-search-modal.is-open .notaires-search-modal__close { transition-delay: 0.05s; }
.notaires-search-modal.is-open .notaires-search-modal__eyebrow { transition-delay: 0.08s; }
.notaires-search-modal.is-open .notaires-search-modal__title { transition-delay: 0.12s; }
.notaires-search-modal.is-open .notaires-search-modal__intro { transition-delay: 0.16s; }
.notaires-search-modal.is-open .notaires-search-modal__form { transition-delay: 0.2s; }

.notaires-search-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #666666;
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
}

.notaires-search-modal__close svg {
    width: 18px;
    height: 18px;
}

.notaires-search-modal__close:hover {
    color: #d80811;
    background: rgba(216, 8, 17, 0.08);
}

.notaires-search-modal__eyebrow {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #d80811;
}

.notaires-search-modal__title {
    margin: 0 0 8px;
    font-size: 32px;
    line-height: 1.15;
    font-weight: 600;
}

.notaires-search-modal__intro {
    margin: 0 0 28px;
    font-size: 15px;
    line-height: 1.5;
    color: #666666;
}

.notaires-search-modal__form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.notaires-search-modal__field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.notaires-search-modal__field label {
    font-size: 13px;
    font-weight: 600;
}

.notaires-search-modal__field input,
.notaires-search-modal__field select {
    width: 100%;
    height: 48px;
    margin: 0;
    padding: 0 14px;
    border: 1px solid #e5e5e5;
    background: #ffffff;
    color: #1a1a1a;
    font: inherit;
    font-size: 15px;
    border-radius: 0;
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.notaires-search-modal__field input::placeholder {
    color: #8a8a8a;
}

.notaires-search-modal__field input:focus,
.notaires-search-modal__field select:focus {
    outline: none;
    border-color: #1a1a1a;
    box-shadow: 0 0 0 3px rgba(216, 8, 17, 0.12);
}

.notaires-search-modal__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 52px;
    margin-top: 8px;
    padding: 0 20px;
    border: 0;
    background: #d80811;
    color: #ffffff;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.25s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.notaires-search-modal__submit svg {
    width: 18px;
    height: 18px;
}

.notaires-search-modal__submit:hover {
    background: #b00710;
    transform: translateY(-1px);
}

.notaires-search-modal__submit:focus-visible,
.notaires-search-modal__close:focus-visible {
    outline: 2px solid #d80811;
    outline-offset: 3px;
}

body.notaires-search-open {
    overflow: hidden;
}

@media (max-width: 640px) {
    .notaires-search-modal {
        padding: 16px;
        align-items: end;
    }

    .notaires-search-modal__dialog {
        padding: 32px 20px 20px;
        transform: translateY(40px) scale(1);
    }

    .notaires-search-modal.is-open .notaires-search-modal__dialog {
        transform: translateY(0) scale(1);
    }

    .notaires-search-modal__title {
        font-size: 26px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .notaires-search-trigger,
    .notaires-search-modal,
    .notaires-search-modal.is-ready .notaires-search-modal__backdrop,
    .notaires-search-modal.is-ready .notaires-search-modal__dialog,
    .notaires-search-modal.is-ready .notaires-search-modal__dialog > *,
    .notaires-search-modal__submit {
        transition: none;
    }
}
