html {
    scroll-behavior: smooth;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.portfolio-lightbox-open {
    overflow: hidden;
}

.portfolio-lightbox__trigger {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: #f1f5f9;
    cursor: zoom-in;
}

.portfolio-lightbox__trigger img {
    transition: transform 220ms ease, filter 220ms ease;
}

.portfolio-lightbox__trigger:hover img,
.portfolio-lightbox__trigger:focus-visible img {
    transform: scale(1.035);
    filter: brightness(.88);
}

.portfolio-lightbox__trigger:focus-visible {
    outline: 3px solid #20B7E7;
    outline-offset: -3px;
}

.portfolio-lightbox__zoom {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 9999px;
    color: #fff;
    background: rgba(17, 28, 78, .82);
    box-shadow: 0 8px 22px rgba(15, 23, 42, .25);
    transition: transform 180ms ease, background-color 180ms ease;
}

.portfolio-lightbox__trigger:hover .portfolio-lightbox__zoom {
    transform: scale(1.08);
    background: #20B7E7;
}

.portfolio-lightbox__zoom svg,
.portfolio-lightbox__close svg,
.portfolio-lightbox__nav svg {
    width: 20px;
    height: 20px;
}

.portfolio-lightbox[hidden] {
    display: none;
}

.portfolio-lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 160ms ease;
}

.portfolio-lightbox.is-open {
    opacity: 1;
}

.portfolio-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 9, 25, .92);
    backdrop-filter: blur(5px);
}

.portfolio-lightbox__panel {
    position: relative;
    z-index: 1;
    display: grid;
    width: min(1180px, 94vw);
    height: min(820px, 92vh);
    place-items: center;
}

.portfolio-lightbox__figure {
    display: flex;
    width: 100%;
    height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.portfolio-lightbox__image {
    display: block;
    max-width: 100%;
    max-height: calc(92vh - 82px);
    border-radius: 14px;
    object-fit: contain;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .5);
    user-select: none;
    touch-action: pan-y;
}

.portfolio-lightbox__caption {
    max-width: min(820px, 78vw);
    margin-top: 14px;
    color: rgba(255, 255, 255, .9);
    font-size: 14px;
    line-height: 1.55;
    text-align: center;
}

.portfolio-lightbox__close,
.portfolio-lightbox__nav {
    position: absolute;
    z-index: 2;
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 9999px;
    color: #fff;
    background: rgba(17, 28, 78, .78);
    transition: transform 160ms ease, background-color 160ms ease;
}

.portfolio-lightbox__close:hover,
.portfolio-lightbox__nav:hover,
.portfolio-lightbox__close:focus-visible,
.portfolio-lightbox__nav:focus-visible {
    transform: scale(1.07);
    background: #20B7E7;
    outline: none;
}

.portfolio-lightbox__close {
    top: 0;
    right: 0;
}

.portfolio-lightbox__nav {
    top: 50%;
    transform: translateY(-50%);
}

.portfolio-lightbox__nav:hover,
.portfolio-lightbox__nav:focus-visible {
    transform: translateY(-50%) scale(1.07);
}

.portfolio-lightbox__nav--previous {
    left: 0;
}

.portfolio-lightbox__nav--next {
    right: 0;
}

.portfolio-lightbox__counter {
    position: absolute;
    right: 58px;
    top: 11px;
    min-width: 54px;
    padding: 6px 10px;
    border-radius: 9999px;
    color: #fff;
    background: rgba(17, 28, 78, .78);
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}

@media (max-width: 639px) {
    .portfolio-lightbox {
        padding: 10px;
    }

    .portfolio-lightbox__panel {
        width: 100%;
        height: 94vh;
    }

    .portfolio-lightbox__image {
        max-height: calc(94vh - 110px);
        border-radius: 10px;
    }

    .portfolio-lightbox__nav {
        top: auto;
        bottom: 8px;
        transform: none;
    }

    .portfolio-lightbox__nav:hover,
    .portfolio-lightbox__nav:focus-visible {
        transform: scale(1.07);
    }

    .portfolio-lightbox__nav--previous {
        left: calc(50% - 56px);
    }

    .portfolio-lightbox__nav--next {
        right: calc(50% - 56px);
    }

    .portfolio-lightbox__caption {
        max-width: calc(100vw - 36px);
        margin-bottom: 52px;
        font-size: 13px;
    }
}

.site-header {
    background: #FFFFFF;
    min-height: 56px;
    isolation: isolate;
}

.site-header__bar {
    height: 56px;
    min-height: 56px;
    max-height: 56px;
}

.site-header__logo {
    display: block;
    max-height: 42px;
}

.site-header__nav {
    line-height: 1;
}

.home-hero {
    margin-top: 0;
    background: #111C4E;
}

.home-hero [data-hero-slide] {
    /* Garder le haut de la photo visible lorsque object-cover recadre en hauteur. */
    object-position: center top;
}

.home-hero__role-card {
    background-color: rgb(255 255 255 / 60%);
}

.home-hero__role-card:hover {
    background-color: rgb(255 255 255 / 72%);
}

.register-login-link {
    max-width: 100%;
}

@media (min-width: 640px) {
    .register-login-link {
        width: auto;
        flex-shrink: 0;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}

.home-pathways {
    display: block;
    position: relative;
    z-index: 30;
    margin-top: -24px;
    padding: 0 0 40px;
    background: #EEF8FD;
}

.home-pathways__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
}

.home-pathways .home-hero__role-card {
    min-height: 132px;
}

.public-search-type-options {
    display: none;
}

.list-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    max-width: 1216px;
    margin: 0 auto 32px;
    padding: 16px;
    color: #111C4E;
    font-size: 14px;
}

.list-pagination a,
.list-pagination [aria-current] {
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 10px 16px;
}

.list-pagination a:hover { background: #EEF8FD; }
.list-pagination [aria-current] { background: #EEF8FD; }
.list-pagination__summary { font-weight: 700; }

@media (min-width: 1024px) {
    .home-pathways {
        margin-top: -64px;
        margin-bottom: 24px;
        padding-bottom: 0;
        background: transparent;
    }

    .home-pathways__grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }

    .home-pathways .home-hero__role-card {
        min-height: 136px;
    }

    .home-hero .home-hero__content {
        max-width: 44rem;
    }

    .home-hero > .relative.z-10 {
        padding-bottom: 110px;
    }

    #recherche-principale {
        margin-top: 0;
    }
}

@media (max-width: 1023px) {
    .home-hero > .relative.z-10 {
        padding-bottom: 165px;
    }

    .home-pathways {
        margin-top: -170px;
        padding-bottom: 40px;
        background: transparent;
    }

    .home-pathways__grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        overflow: visible;
    }

    .home-pathways .home-hero__role-card {
        min-height: 154px;
        border-color: rgb(255 255 255 / 48%);
        color: white;
    }

    .home-pathways .home-hero__role-card:nth-child(1) {
        background: linear-gradient(135deg, rgb(0 174 214 / 94%), rgb(20 157 198 / 94%));
    }

    .home-pathways .home-hero__role-card:nth-child(2) {
        background: linear-gradient(135deg, rgb(117 75 220 / 94%), rgb(146 91 231 / 94%));
    }

    .home-pathways .home-hero__role-card:nth-child(3) {
        background: linear-gradient(135deg, rgb(17 28 78 / 94%), rgb(31 42 83 / 90%));
    }

    .home-pathways .home-hero__role-card p,
    .home-pathways .home-pathways__action {
        color: white;
    }

    .public-search-form {
        border-radius: 24px;
        padding: 20px;
    }

    .public-search-heading h2 {
        font-size: 1.5rem;
        line-height: 1.25;
    }

    .public-search-heading p,
    .public-search-type-dropdown {
        display: none;
    }

    .public-search-type-options {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .public-search-type-option {
        display: inline-flex;
        min-height: 56px;
        align-items: center;
        justify-content: center;
        gap: 8px;
        border: 1px solid #dbeafe;
        border-radius: 14px;
        background: #f4f2ff;
        padding: 10px 12px;
        color: #6750c9;
        font-size: 14px;
        font-weight: 800;
        transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
    }

    .public-search-type-option.is-active {
        border-color: #16afd4;
        background: #16afd4;
        color: white;
        box-shadow: 0 7px 18px rgb(22 175 212 / 22%);
    }

    .public-search-form [data-public-dropdown-button],
    .public-search-form [data-public-zone-field] label,
    .public-search-form button[type="submit"] {
        min-height: 56px;
        height: 56px;
    }

    .public-search-form button[type="submit"] {
        width: 100%;
        font-size: 16px;
    }
}

@media (max-width: 767px) {
    .home-pathways > div {
        padding-left: 8px;
        padding-right: 8px;
    }

    .home-pathways__grid {
        gap: 5px;
    }

    .home-pathways .home-hero__role-card {
        min-width: 0;
        min-height: 132px;
        border-radius: 13px;
        padding: 8px;
    }

    .home-pathways .home-hero__role-card > div {
        display: block;
    }

    .home-pathways .home-hero__role-card span:first-child {
        width: 28px;
        height: 28px;
        margin-bottom: 5px;
        border-radius: 8px;
    }

    .home-pathways .home-hero__role-card span:first-child svg {
        width: 14px;
        height: 14px;
    }

    .home-pathways .home-hero__role-card h2 {
        font-size: 11px;
        line-height: 1.15;
    }

    .home-pathways .home-hero__role-card p {
        margin-top: 4px;
        font-size: 8.5px;
        line-height: 1.3;
    }

    .home-pathways .home-pathways__action {
        margin-top: 5px;
        gap: 2px;
        font-size: 8.5px;
        line-height: 1.15;
    }

    .home-pathways .home-pathways__action svg {
        width: 10px;
        height: 10px;
    }

}

.home-hero__content {
    width: min(72rem, calc(100vw - 32px));
    max-width: 100%;
}

@media (min-width: 640px) {
    .home-hero__content {
        width: min(72rem, calc(100vw - 48px));
    }
}

.site-header--account {
    height: 56px;
    min-height: 56px;
    max-height: 56px;
}

.site-header--account .site-header__bar {
    height: 56px !important;
    min-height: 56px !important;
    max-height: 56px !important;
}

@media (min-width: 1024px) {
    .site-header {
        height: 56px;
        min-height: 56px;
        max-height: 56px;
    }

    .site-header__bar {
        height: 56px !important;
        min-height: 56px !important;
        max-height: 56px !important;
    }
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    scrollbar-width: none;
}

.sponsored-profile-card {
    flex: 0 0 100%;
}

.home-profile-card {
    display: flex;
    height: 19rem;
    flex-direction: column;
}

.direct-payment-reference {
    letter-spacing: .2em;
}

.direct-payments-table {
    min-width: 1100px;
}

.direct-payment-actions {
    min-width: 11rem;
}

@media (min-width: 640px) {
    .sponsored-profile-card {
        flex-basis: calc((100% - 1rem) / 2);
    }
}

@media (min-width: 1024px) {
    .sponsored-profile-card {
        flex-basis: calc((100% - 3rem) / 4);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .72s cubic-bezier(.2, .65, .25, 1), transform .72s cubic-bezier(.2, .65, .25, 1);
    will-change: opacity, transform;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.ui-card {
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.ui-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 42px rgba(15, 23, 42, .10);
}

.ui-card img,
.gallery-img {
    transition: transform .55s cubic-bezier(.2, .65, .25, 1);
}

.ui-card:hover img,
.gallery-img:hover {
    transform: scale(1.045);
}

.ui-btn {
    transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
}

.ui-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(17, 28, 78, .16);
}

.ui-btn:active {
    transform: translateY(0) scale(.98);
}

.heart.active {
    color: #FF8A00;
    fill: #FF8A00;
}

.grid-fade {
    background-image: radial-gradient(circle at 1px 1px, rgba(17, 28, 78, .08) 1px, transparent 0);
    background-size: 22px 22px;
}

.prestataire-card {
    background:
        radial-gradient(circle at 12% 15%, rgba(255, 255, 255, .16), transparent 34%),
        linear-gradient(135deg, #20B7E7 0%, #16B3DF 55%, #20B7E7 100%);
    border-color: rgba(255, 255, 255, .28);
}

.category-icon {
    transition: transform .25s ease;
}

.category-card:hover .category-icon {
    transform: translateY(-3px);
}

.card {
    border: 1px solid #E8EAF0;
    border-radius: 8px;
    background: #FFFFFF;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .06);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 8px;
    font-weight: 800;
}

.button-primary {
    color: #FFFFFF;
    background: #20B7E7;
}

.button-secondary {
    color: #111C4E;
    background: #FFFFFF;
    border: 1px solid #E8EAF0;
}

.alert {
    padding: 14px 16px;
    border-radius: 8px;
    font-weight: 700;
}

.alert-success {
    color: #065f46;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
}

.alert-error {
    color: #991b1b;
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.container {
    width: min(1140px, calc(100% - 32px));
    margin: 0 auto;
}

.section,
.page-hero,
.auth-page {
    padding: 72px 0;
}

.page-hero {
    background: #F6F7F9;
    border-bottom: 1px solid #E8EAF0;
}

.page-hero h1,
.section h1,
.section h2,
.section h3,
.auth-page h1,
.auth-page h2 {
    color: #111C4E;
    font-weight: 800;
}

.page-hero h1 {
    max-width: 760px;
    margin-bottom: 16px;
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.05;
}

.page-hero p {
    max-width: 760px;
    color: #475569;
    line-height: 1.7;
}

.section-soft {
    background: #F6F7F9;
}

.section-heading {
    margin-bottom: 24px;
}

.cards-grid,
.feature-grid,
.steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.cards-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.directory-layout,
.form-layout,
.profile-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 24px;
}

.form-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
}

.filter-panel,
.results-panel,
.contact-aside {
    border: 1px solid #E8EAF0;
    border-radius: 8px;
    padding: 24px;
    background: #FFFFFF;
}

.empty-state {
    padding: 34px;
    color: #475569;
    border: 1px dashed #E8EAF0;
    border-radius: 8px;
    background: #fbfdff;
}

.form-card,
.auth-card {
    display: grid;
    gap: 16px;
    padding: 24px;
}

.auth-page {
    min-height: 68vh;
    display: grid;
    place-items: center;
    background: #F6F7F9;
}

.auth-card {
    width: min(480px, calc(100% - 32px));
}

.wide-card {
    width: min(900px, calc(100% - 32px));
}

.role-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.role-grid article {
    padding: 18px;
    border: 1px solid #E8EAF0;
    border-radius: 8px;
}

label {
    display: grid;
    gap: 8px;
    color: #111C4E;
    font-size: 14px;
    font-weight: 800;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 13px 14px;
    color: #10172A;
    font: inherit;
    background: #F6F7F9;
    caret-color: #111C4E;
    box-shadow: none;
    transition: border-color .18s ease, background-color .18s ease;
}

select {
    font-weight: 400;
}

input::placeholder,
textarea::placeholder {
    color: #94a3b8;
    opacity: 1;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #20B7E7;
    outline: none;
    background: #FFFFFF;
    box-shadow: none;
}

input[type="checkbox"],
input[type="radio"] {
    width: auto;
    padding: 0;
}

input:disabled {
    color: #64748b;
    background: #f8fafc;
}

.auth-form input:not([type="checkbox"]):not([type="radio"]),
.auth-form textarea,
.auth-form select {
    min-height: 44px;
    border: 1px solid #3B78FF;
    border-radius: 8px;
    padding: 10px 18px;
    color: #111C4E;
    background: #FFFFFF;
    box-shadow: none;
}

.auth-form input:not([type="checkbox"]):not([type="radio"])::placeholder,
.auth-form textarea::placeholder {
    color: #A1A9BC;
    font-weight: 700;
}

.auth-form input:not([type="checkbox"]):not([type="radio"]):focus,
.auth-form textarea:focus,
.auth-form select:focus {
    border-color: #2F6BFF;
    background: #FFFFFF;
    box-shadow: none;
}

.password-field {
    position: relative;
    display: block;
}

.password-field input {
    padding-right: 48px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    color: #111C4E;
    border-radius: 8px;
    transform: translateY(-50%);
    transition: color .18s ease, background-color .18s ease;
}

.password-toggle:hover,
.password-toggle:focus-visible {
    color: #20B7E7;
    background: #F6F7F9;
    outline: 2px solid rgba(32, 183, 231, .32);
    outline-offset: 2px;
}

.password-hint {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.45;
}

.password-hint[data-state="warning"] {
    color: #b45309;
}

.password-hint[data-state="success"] {
    color: #047857;
}

.pwa-install {
    position: fixed;
    right: 14px;
    bottom: 14px;
    left: 14px;
    z-index: 110;
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 12px;
    align-items: center;
    padding: 14px;
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 16px;
    background: #111C4E;
    box-shadow: 0 18px 44px rgba(15, 23, 42, .22);
}

.pwa-install.hidden {
    display: none;
}

.pwa-install__icon {
    display: flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 12px;
    background: #FFFFFF;
}

.pwa-install__icon img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.pwa-install__content strong {
    display: block;
    font-size: 14px;
    font-weight: 800;
}

.pwa-install__content p {
    margin-top: 2px;
    color: rgba(255, 255, 255, .78);
    font-size: 12px;
    line-height: 1.45;
}

.pwa-install__actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.pwa-install__primary,
.pwa-install__secondary {
    min-height: 40px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 800;
}

.pwa-install__primary {
    color: #111C4E;
    background: #FFFFFF;
}

.pwa-install__secondary {
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, .24);
}

@media (min-width: 640px) {
    .pwa-install {
        right: 22px;
        bottom: 22px;
        left: auto;
        width: min(420px, calc(100vw - 44px));
        grid-template-columns: 48px 1fr;
    }

    .pwa-install__actions {
        grid-column: 2;
    }
}

@media (max-width: 980px) {
    .cards-grid,
    .feature-grid,
    .steps,
    .role-grid,
    .directory-layout,
    .form-layout,
    .profile-layout {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }

    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}
.mobile-menu-drawer, .mobile-menu-backdrop { display: none; }
@media (max-width: 1023px) {
  .mobile-menu-drawer {
    display: block;
    position: fixed;
    top: 56px;
    right: 0;
    bottom: 0;
    width: min(340px, 88vw);
    z-index: 2;
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 300ms ease, visibility 0s linear 300ms;
    box-shadow: -12px 0 32px rgba(17, 28, 78, .15);
  }
  .mobile-menu-backdrop {
    display: block;
    position: fixed;
    inset: 56px 0 0;
    z-index: 1;
    background: rgba(0, 0, 0, .4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 300ms ease, visibility 0s linear 300ms;
  }
  .mobile-menu-drawer.is-open {
    transform: translateX(0);
    visibility: visible;
    transition-delay: 0s;
  }
  .mobile-menu-backdrop.is-open {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
  }
}
@media (prefers-reduced-motion: reduce) {
  .mobile-menu-drawer, .mobile-menu-backdrop { transition: none; }
}
.mobile-app-install {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 16px;
  border: 2px solid #111c4e;
  border-radius: 16px;
  background: #111c4e;
  color: #fff;
  text-align: left;
  box-shadow: 0 6px 16px rgba(17, 28, 78, .22);
  transition: background 180ms ease, box-shadow 180ms ease;
}
.mobile-app-install:hover { background: #1c2d70; }
.mobile-app-install:focus-visible { outline: 3px solid #f97316; outline-offset: 3px; }
.mobile-app-install:disabled { opacity: .75; cursor: default; }
.mobile-app-install strong { display: block; font-size: 15px; font-weight: 800; line-height: 1.4; }
.mobile-app-install__icon {
  display: flex;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #fff;
  color: #111c4e;
}
.mobile-app-install__hint { display: block; margin-top: 4px; font-size: 12px; font-weight: 500; color: #e2e8f0; }

/* Bandeaux des espaces connectes : photo a droite, texte sur fond stable. */
.whatsapp-contact-btn { background: #075e54; color: #fff; border: 2px solid #25d366; box-shadow: 0 4px 12px rgba(37,211,102,.18); }
.whatsapp-contact-btn:hover { background: #064c44; color: #fff; box-shadow: 0 6px 16px rgba(37,211,102,.28); }
.whatsapp-contact-btn:focus-visible { outline: 3px solid #25d366; outline-offset: 3px; }
.account-page-hero { position: relative; isolation: isolate; overflow: hidden; }
.account-menu-toggle, .account-menu-close, .account-menu-backdrop { display: none; }
@media (max-width: 1023px) {
  .account-drawer-ready .account-menu-toggle, .account-drawer-ready .account-menu-close { display: inline-flex; }
  .account-drawer-ready .account-sidebar {
    position: fixed; top: 56px; bottom: 0; right: 0; z-index: 81;
    width: min(320px, 88vw); height: auto; max-height: none; border-radius: 0;
    overflow-y: auto; overscroll-behavior: contain;
    transform: translateX(100%); visibility: hidden;
    transition: transform 300ms ease, visibility 0s linear 300ms;
    box-shadow: -12px 0 32px rgba(17,28,78,.18);
  }
  .account-drawer-ready .account-menu-backdrop {
    display: block; position: fixed; inset: 56px 0 0; z-index: 80;
    background: rgba(0,0,0,.4); opacity: 0; visibility: hidden;
    transition: opacity 300ms ease, visibility 0s linear 300ms;
  }
  .account-drawer-ready .account-sidebar.is-open { transform: translateX(0); visibility: visible; transition-delay: 0s; }
  .account-drawer-ready .account-menu-backdrop.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
}
@media (prefers-reduced-motion: reduce) {
  .account-drawer-ready .account-sidebar, .account-drawer-ready .account-menu-backdrop { transition: none; }
}
.account-page-hero__visual { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.account-page-hero__visual img {
  position: absolute; top: 0; right: 0; width: min(54%, 620px); height: 100%;
  object-fit: cover; object-position: right 15%;
  /* Fondu relatif a la photo, et non a la largeur de l ecran : aucune bordure nette. */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, transparent 10%, rgba(0,0,0,.15) 28%, rgba(0,0,0,.55) 52%, #000 85%);
  mask-image: linear-gradient(to right, transparent 0%, transparent 10%, rgba(0,0,0,.15) 28%, rgba(0,0,0,.55) 52%, #000 85%);
}
.account-page-hero > .max-w-7xl { position: relative; padding-right: max(30%, calc((100% - 1280px) / 2 + 340px)); }
@media (max-width: 767px) {
  .account-page-hero > .max-w-7xl { padding-right: 1.5rem; }
  .account-page-hero__visual img { width: 100%; object-position: right top; }
}

/* Profil Prestataire en etapes. */
.profile-wizard { overflow: hidden; }
.profile-wizard [hidden] { display: none !important; }
.profile-wizard__header {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 24px;
  padding: 28px 28px 22px; border-bottom: 1px solid #e2e8f0;
}
.profile-wizard__counter {
  flex: 0 0 auto; border-radius: 999px; background: #eef8fd; padding: 9px 14px;
  color: #111c4e; font-size: 12px; font-weight: 800;
}
.profile-wizard__progress {
  position: relative; display: grid; grid-template-columns: repeat(var(--wizard-step-count, 5), 1fr); margin: 0;
  padding: 24px 28px; list-style: none; background: #f8fafc;
}
.profile-wizard__progress::before {
  content: ""; position: absolute; top: 45px; right: 10%; left: 10%; height: 2px; background: #dbe5ec;
}
.profile-wizard__progress li { position: relative; z-index: 1; min-width: 0; }
.profile-wizard__progress button {
  display: flex; width: 100%; flex-direction: column; align-items: center; gap: 8px;
  border: 0; background: transparent; color: #64748b; cursor: pointer;
}
.profile-wizard__progress button:disabled { cursor: default; }
.profile-wizard__progress button > span {
  display: grid; width: 44px; height: 44px; place-items: center; border: 2px solid #dbe5ec;
  border-radius: 999px; background: #fff; transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.profile-wizard__progress svg { width: 18px; height: 18px; }
.profile-wizard__progress strong { overflow: hidden; max-width: 100%; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.profile-wizard__progress button.is-active { color: #111c4e; }
.profile-wizard__progress button.is-active > span { border-color: #20b7e7; background: #20b7e7; color: #fff; box-shadow: 0 0 0 5px rgba(32,183,231,.12); }
.profile-wizard__progress button.is-complete { color: #111c4e; }
.profile-wizard__progress button.is-complete > span { border-color: #111c4e; background: #111c4e; color: #fff; }
.profile-wizard__body { padding: 28px; }
.profile-wizard__panel { display: grid; gap: 22px; animation: profile-wizard-panel .22s ease both; }
.profile-wizard__panel[hidden] { display: none; }
.profile-wizard__title { display: flex; align-items: flex-start; gap: 14px; }
.profile-wizard__title > span { display: grid; width: 44px; height: 44px; flex: 0 0 auto; place-items: center; border-radius: 13px; background: #eef8fd; color: #20aede; }
.profile-wizard__title svg { width: 21px; height: 21px; }
.profile-wizard__title h3 { color: #111c4e; font-size: 20px; font-weight: 800; }
.profile-wizard__title p { margin-top: 4px; color: #64748b; font-size: 13px; line-height: 1.6; }
.profile-wizard__actions {
  display: flex; align-items: center; justify-content: flex-end; gap: 12px;
  padding: 20px 28px; border-top: 1px solid #e2e8f0; background: #f8fafc;
}
.profile-wizard__actions button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 8px; border-radius: 12px; padding: 11px 20px; font-size: 14px; font-weight: 800; }
.profile-wizard__actions svg { width: 17px; height: 17px; }
.profile-wizard__previous { margin-right: auto; border: 1px solid #cbd5e1; background: #fff; color: #111c4e; }
.profile-wizard__next, .profile-wizard__submit { border: 1px solid #ff8210; background: #ff8210; color: #fff; box-shadow: 0 7px 18px rgba(255,130,16,.18); }
.profile-wizard__summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.profile-wizard__summary > div { min-width: 0; border: 1px solid #e2e8f0; border-radius: 14px; background: #f8fafc; padding: 14px; }
.profile-wizard__summary dt { color: #64748b; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.profile-wizard__summary dd { margin-top: 6px; overflow-wrap: anywhere; color: #111c4e; font-size: 14px; font-weight: 800; }
.profile-wizard__error { color: #dc2626 !important; }
@keyframes profile-wizard-panel { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: translateX(0); } }

@media (max-width: 639px) {
  .profile-wizard__header { display: grid; padding: 22px 18px 18px; }
  .profile-wizard__counter { width: fit-content; }
  .profile-wizard__progress { padding: 18px 8px; }
  .profile-wizard__progress::before { top: 37px; right: 11%; left: 11%; }
  .profile-wizard__progress button { gap: 6px; }
  .profile-wizard__progress button > span { width: 38px; height: 38px; }
  .profile-wizard__progress strong { font-size: 9px; }
  .profile-wizard__body { padding: 22px 18px; }
  .profile-wizard__summary { grid-template-columns: 1fr; }
  .profile-wizard__actions { padding: 16px 18px; }
  .profile-wizard__actions button { padding-inline: 14px; }
}
