.error-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 50px;
    position: relative;
    z-index: 1;
}

.error-code {
    font-family: var(--font-numeric);
    font-size: 7rem;
    font-weight: 900;
    margin-bottom: 10px;
    background: linear-gradient(160deg, var(--txt-color-secondary), var(--txt-color-primary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.1);
    animation: fadeInUp 0.8s ease forwards;
}

.error-title {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 20px;
    color: var(--txt-color-primary);
}

.error-message {
    font-size: 18px;
    max-width: 600px;
    margin-bottom: 40px;
    line-height: 1.6;
    color: var(--txt-color-dark);
}

.compass {
    margin-top: 50px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 8px solid var(--txt-color-primary);
    position: relative;
    background-color: var(--bg-color-light-transparent);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
    animation: pulse 2s infinite;
}

.compass-face {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.compass-marking {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.compass-marking::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    background-color: var(--txt-color-light-grey);
    opacity : 0.2;
    top: 50%;
    left: 0;
}

.compass-marking::after {
    content: '';
    position: absolute;
    height: 100%;
    width: 1px;
    background-color: var(--txt-color-light-grey);
    opacity : 0.2;
    left: 50%;
    top: 0;
}

.cardinal-point {
    position: absolute;
    font-weight: bold;
    font-size: 16px;
    color: var(--txt-color-light-grey);
}

.cardinal-n {
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--txt-color-secondary);
}

.cardinal-e {
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.cardinal-s {
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
}

.cardinal-w {
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.needle-container {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: rotate 8s infinite ease-in-out;
}

.needle {
    position: absolute;
    width: 4px;
    height: 60px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transform-origin: bottom center;
}

.needle-north {
    height: 65px;
    width: 4px;
    background-color: var(--txt-color-secondary);
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform: translateX(-50%);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.needle-south {
    height: 65px;
    width: 4px;
    background-color: var(--bg-color);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%);
    clip-path: polygon(0% 0%, 100% 0%, 50% 100%);
}

.needle-center {
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: var(--bg-color-light);
    border: 3px solid var(--txt-color-secondary);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(233, 78, 27, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(233, 78, 27, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(233, 78, 27, 0);
    }
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(90deg);
    }
    50% {
        transform: rotate(180deg);
    }
    75% {
        transform: rotate(270deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Petites graduations autour du compas */
.compass::before {
    content: '';
    position: absolute;
    width: 90%;
    height: 90%;
    top: 5%;
    left: 5%;
    border-radius: 50%;
    border: 1px dashed #aaa;
}

/* Style du bouton - Adapté au style du site */
.error-container .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    border-radius: 3rem;
    margin-top: 1rem;
}

.error-container .btn.rounded-4 {
    border-radius: 3rem !important;
}

.error-container .btn-primary {
    color: var(--txt-color-light);
    background-color: var(--txt-color-primary);
    border-color: var(--txt-color-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.error-container .btn-primary:hover {
    background-color: var(--txt-color-secondary);
    border-color: var(--txt-color-secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.error-container .btn .bi {
    font-size: 1.1em;
    transition: transform 0.3s ease, color 0.3s ease;
    color: inherit;
}

.error-container .btn:hover .bi {
    transform: scale(1.1);
}

/* Groupe de boutons CTA */
.error-cta-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    margin-bottom: 2rem;
}

@media (min-width: 576px) {
    .error-cta-group {
        flex-direction: row;
        justify-content: center;
    }
}

.error-container .btn-secondary {
    color: var(--txt-color-primary);
    background-color: transparent;
    border: 2px solid var(--txt-color-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.error-container .btn-secondary .bi {
    color: var(--txt-color-primary);
}

.error-container .btn-secondary:hover {
    background-color: var(--txt-color-primary);
    color: var(--txt-color-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.error-container .btn-secondary:hover .bi {
    color: var(--txt-color-light);
}