/* Service switcher — accueil (desktop + mobile) */
.home-service-switcher {
    padding: 0.5rem 0 0.75rem;
}

.home-service-switcher__track {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 0.15rem;
}

.home-service-switcher__track::-webkit-scrollbar {
    display: none;
}

.home-service-switcher__item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex: 0 0 auto;
    min-height: 36px;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    border: 1px solid #e9ecef;
    background: #fff;
    color: #495057;
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.home-service-switcher__icon {
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.home-service-switcher__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: invert(27%) sepia(95%) saturate(3730%) hue-rotate(347deg) brightness(94%) contrast(97%);
}

.home-service-switcher__item:hover {
    border-color: #ced4da;
    color: #212529;
    background: #f8f9fa;
}

.home-service-switcher__item.active {
    border-color: #dee2e6;
    background: #f8f9fa;
    color: #212529;
    font-weight: 600;
}

@media (min-width: 992px) {
    .home-service-switcher__track {
        justify-content: center;
        flex-wrap: wrap;
        overflow-x: visible;
    }
}

/* App bar services — mobile (style application native) */
.home-services-app-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1025;
    background: #fff;
    border-top: 1px solid #e9ecef;
    box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.08);
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.home-services-app-bar__inner {
    display: grid;
    grid-template-columns: 1fr 1fr auto 1fr 1fr;
    align-items: end;
    min-height: 3.75rem;
    max-width: 100%;
    padding-top: 0.35rem;
}

.home-services-app-bar__item {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    min-width: 0;
    padding: 0.35rem 0.25rem 0.45rem;
    text-decoration: none;
    color: #6c757d;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.15s ease;
}

.home-services-app-bar__item.active {
    color: #f0151f;
}

.home-services-app-bar__icon {
    width: 1.375rem;
    height: 1.375rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.home-services-app-bar__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: grayscale(1) opacity(0.55);
    transition: filter 0.15s ease;
}

.home-services-app-bar__item.active .home-services-app-bar__icon img {
    filter: invert(27%) sepia(95%) saturate(3730%) hue-rotate(347deg) brightness(94%) contrast(97%);
    opacity: 1;
}

.home-services-app-bar__label {
    font-size: 0.625rem;
    font-weight: 600;
    line-height: 1.1;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.home-services-app-bar__create-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.75rem;
    height: 100%;
    padding-bottom: 0.35rem;
}

.home-services-app-bar__create {
    position: absolute;
    top: -1.35rem;
    width: 3.25rem;
    height: 3.25rem;
    border: none;
    border-radius: 50%;
    background: #f0151f;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    line-height: 1;
    box-shadow: 0 4px 14px rgba(240, 21, 31, 0.35);
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.15s ease, background-color 0.15s ease;
}

.home-services-app-bar__create:hover,
.home-services-app-bar__create:focus {
    background: #b01017;
    color: #fff;
}

.home-services-app-bar__create:active {
    transform: scale(0.96);
}

/* Bottom sheet — création (mobile) */
.home-create-sheet.bottom-sheet {
    position: fixed;
    inset: 0;
    z-index: 1060;
    pointer-events: none;
}

.home-create-sheet.bottom-sheet.active {
    pointer-events: all;
}

.home-create-sheet .bottom-sheet-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.home-create-sheet.active .bottom-sheet-overlay {
    opacity: 1;
}

.home-create-sheet .bottom-sheet-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: 85vh;
    background: #fff;
    border-radius: 1.25rem 1.25rem 0 0;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.home-create-sheet.active .bottom-sheet-content {
    transform: translateY(0);
}

.home-create-sheet .bottom-sheet-handle {
    width: 2.5rem;
    height: 0.25rem;
    margin: 0.65rem auto 0.35rem;
    border-radius: 999px;
    background: #dee2e6;
}

.home-create-sheet__body {
    padding: 0.35rem 1rem 1rem;
}

.home-create-sheet__title {
    margin: 0 0 1rem;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    color: #212529;
}

.home-create-sheet__list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.home-create-sheet__item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    border-radius: 0.85rem;
    background: #fff7f7;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.15s ease;
}

.home-create-sheet__item:hover {
    background: #ffefef;
    color: inherit;
}

.home-create-sheet__item-icon {
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: rgba(240, 21, 31, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.home-create-sheet__item-icon img {
    width: 1.35rem;
    height: 1.35rem;
    object-fit: contain;
    filter: invert(27%) sepia(95%) saturate(3730%) hue-rotate(347deg) brightness(94%) contrast(97%);
}

.home-create-sheet__item-copy {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.home-create-sheet__item-title {
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.25;
    color: #212529;
}

.home-create-sheet__item-description {
    font-size: 0.75rem;
    line-height: 1.35;
    color: #6c757d;
}

.home-create-sheet__item-arrow {
    flex-shrink: 0;
    font-size: 0.75rem;
    color: #f0151f;
}

.home-create-sheet__cancel {
    display: block;
    width: 100%;
    margin-top: 1rem;
    padding: 0.65rem 1rem;
    border: none;
    background: transparent;
    color: #212529;
    font-size: 0.9375rem;
    font-weight: 600;
    text-align: center;
}

body.home-create-sheet-open {
    overflow: hidden;
}

.home-section-title-link:hover {
    color: #f0151f !important;
}

.home-see-all-btn {
    background-color: #f0151f;
    border-color: #f0151f;
    color: #fff;
    font-weight: 600;
}

.home-see-all-btn:hover,
.home-see-all-btn:focus {
    background-color: #b01017;
    border-color: #b01017;
    color: #fff;
}

.home-section-cta-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 100%;
    padding: 1.25rem;
    border-radius: 16px;
    background: linear-gradient(145deg, #fff8f8 0%, #fff 55%);
    border: 1px solid #f3e8e8;
    color: inherit;
    overflow: hidden;
    scroll-snap-align: start;
}

.home-section-cta-card__decor {
    position: absolute;
    top: -18px;
    right: -18px;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(240, 21, 31, 0.08) 0%, rgba(240, 21, 31, 0) 70%);
    pointer-events: none;
}

.home-section-cta-card__decor::after {
    content: '';
    position: absolute;
    inset: 18px;
    border-radius: 50%;
    border: 1px solid rgba(240, 21, 31, 0.08);
}

.home-section-cta-card__icon {
    width: 52px;
    height: 52px;
    margin-bottom: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.65rem;
    color: #f0151f;
}

.home-section-cta-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.5rem;
    color: #212529;
}

.home-section-cta-card__text {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 1rem;
    line-height: 1.45;
}

.home-section-cta-card__btn {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    background: #f0151f;
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
}

.home-section-cta-card:hover {
    border-color: rgba(240, 21, 31, 0.25);
    box-shadow: 0 8px 24px rgba(240, 21, 31, 0.08);
}

.home-section-cta-card:hover .home-section-cta-card__btn {
    background: #b01017;
}

.header-publish-dropdown .dropdown-item:hover .header-publish-action-icon {
    color: #fff !important;
}

.header-publish-dropdown .header-publish-action-icon {
    color: #f0151f;
}

.header-publish-dropdown--section-toolbar {
    flex-shrink: 0;
}

.header-publish-dropdown--section-toolbar .publish-btn {
    padding: 0.35rem 0.65rem;
    font-size: 0.75rem;
    min-height: 34px;
}

.home-section-page-heading {
    margin-top: 0.25rem;
}

.home-section-page-heading__title-link {
    color: inherit;
    text-decoration: none;
}

.home-section-page-heading__title-link:hover {
    color: #f0151f;
}
