/* Même navigation que le carrousel du coffre-fort, avec les deux vues notaire. */
.notary-carousel {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    width: 100%;
}

.notary-carousel--wide {
    padding: 0 74px;
}

.notary-carousel .notary-radio {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.notary-carousel-inner {
    position: relative;
    width: 100%;
    overflow: visible;
}

.notary-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
}

.notary-image-wrapper .notary-img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: auto;
    border-radius: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(6px) scale(0.995);
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease;
}

.notary-carousel #notary-1:checked ~ .notary-carousel-inner .notary-img-1,
.notary-carousel #notary-2:checked ~ .notary-carousel-inner .notary-img-2 {
    position: relative;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.notary-arrow {
    position: absolute;
    top: 50%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top-color: rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.5);
    color: rgba(248, 250, 252, 0.9);
    cursor: pointer;
    transform: translateY(-50%);
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease, transform 0.25s ease;
    -webkit-tap-highlight-color: transparent;
}

.notary-arrow-icon {
    display: block;
    width: 22px;
    height: 22px;
}

.notary-arrow-prev {
    left: -74px;
}

.notary-arrow-next {
    right: -74px;
}

.notary-arrow:hover {
    border-color: rgba(129, 140, 248, 0.4);
    border-top-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(129, 140, 248, 0.2), 0 0 20px rgba(129, 140, 248, 0.2);
    color: #fff;
    transform: translateY(-50%) scale(1.05);
}

.notary-arrow:active {
    transform: translateY(-50%) scale(0.98);
}

.notary-arrow:focus-visible,
.notary-carousel #notary-1:focus-visible ~ .notary-dots-row .notary-dot[for="notary-1"],
.notary-carousel #notary-2:focus-visible ~ .notary-dots-row .notary-dot[for="notary-2"] {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

.notary-dots-row {
    position: relative;
    z-index: 5;
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 18px;
}

.notary-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.notary-dot {
    width: 14px;
    height: 14px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, rgba(248, 250, 252, 0.6), rgba(15, 23, 42, 0.9));
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.7);
    opacity: 0.7;
    cursor: pointer;
    transition: all 0.25s ease;
}

.notary-carousel #notary-1:checked ~ .notary-dots-row .notary-dot[for="notary-1"],
.notary-carousel #notary-2:checked ~ .notary-dots-row .notary-dot[for="notary-2"] {
    width: 22px;
    border-color: var(--primary);
    background: radial-gradient(circle at 30% 30%, #fff, rgba(129, 140, 248, 0.7));
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.9), 0 0 0 4px rgba(129, 140, 248, 0.35), 0 0 16px rgba(129, 140, 248, 0.7);
    opacity: 1;
}

.notary-dot:hover {
    opacity: 1;
    transform: translateY(-1px);
}

@media (max-width: 640px) {
    .notary-carousel--wide {
        padding: 0;
    }

    .notary-arrow {
        min-width: 42px;
        min-height: 42px;
        padding: 10px 12px;
        border-radius: 12px;
    }

    .notary-arrow-icon {
        width: 18px;
        height: 18px;
    }

    .notary-arrow-prev {
        left: -5px;
    }

    .notary-arrow-next {
        right: -5px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .notary-image-wrapper .notary-img {
        transition: none;
    }
}
