/* ============================================================
   404.css — Page d'erreur 404
   ============================================================ */

/* ── Layout principal ─────────────────────────────────────── */

.error-404 {
    min-height: calc(100vh - 160px);
    background: linear-gradient(160deg, #0F2547 0%, #1B3A6B 50%, #1B5EA7 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 24px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

/* Motif de fond */
.error-404::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(245,166,35,.06) 0%, transparent 45%),
        radial-gradient(circle at 80% 80%, rgba(58,127,202,.08) 0%, transparent 45%);
    pointer-events: none;
}

/* ── Globe SVG animé ──────────────────────────────────────── */

.e404-globe {
    position: relative;
    width: 180px;
    height: 180px;
    margin-bottom: 32px;
    z-index: 2;
}

.globe-svg {
    width: 180px;
    height: 180px;
    filter: drop-shadow(0 8px 32px rgba(245,166,35,.25));
    animation: globe-float 4s ease-in-out infinite;
}

@keyframes globe-float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-10px); }
}

/* Cercle extérieur */
.globe-circle {
    fill: rgba(27, 58, 107, .6);
    stroke: rgba(138, 180, 217, .4);
    stroke-width: 1.5;
}

/* Lignes de la grille */
.globe-line {
    fill: none;
    stroke: rgba(138, 180, 217, .25);
    stroke-width: 1;
}

/* Lignes longitude tournantes */
.globe-line--spin {
    animation: globe-spin 8s linear infinite;
    transform-origin: 100px 100px;
}

.globe-line--spin-2 {
    animation: globe-spin 12s linear infinite reverse;
    transform-origin: 100px 100px;
}

@keyframes globe-spin {
    from { transform: rotateY(0deg); }
    to   { transform: rotateY(360deg); }
}

/* Silhouette Afrique */
.globe-africa {
    fill: #F5A623;
    opacity: .9;
    animation: africa-pulse 3s ease-in-out infinite;
}

@keyframes africa-pulse {
    0%, 100% { opacity: .9; filter: brightness(1); }
    50%       { opacity: 1;  filter: brightness(1.2); }
}

/* Points continents */
.globe-dot {
    fill: rgba(138, 180, 217, .5);
    animation: dot-blink 2.5s ease-in-out infinite;
}

.globe-dot:nth-child(2) { animation-delay: .4s; }
.globe-dot:nth-child(3) { animation-delay: .8s; }
.globe-dot:nth-child(4) { animation-delay: 1.2s; }
.globe-dot:nth-child(5) { animation-delay: 1.6s; }

@keyframes dot-blink {
    0%, 100% { opacity: .5; }
    50%       { opacity: 1; }
}

/* Orbite particules autour du globe */
.globe-orbit {
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    border: 1px dashed rgba(245,166,35,.2);
    animation: orbit-rotate 20s linear infinite;
}

@keyframes orbit-rotate {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.orbit-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #F5A623;
    box-shadow: 0 0 8px rgba(245,166,35,.6);
}

.orbit-dot--1 {
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    animation: orbit-dot-pulse 2s ease-in-out infinite;
}

.orbit-dot--2 {
    bottom: -4px;
    right: 20%;
    width: 5px;
    height: 5px;
    background: #8AB4D9;
    box-shadow: 0 0 6px rgba(138,180,217,.6);
    animation: orbit-dot-pulse 2s ease-in-out .7s infinite;
}

.orbit-dot--3 {
    top: 30%;
    right: -4px;
    width: 6px;
    height: 6px;
    background: #ffffff;
    opacity: .6;
    box-shadow: 0 0 5px rgba(255,255,255,.4);
    animation: orbit-dot-pulse 2s ease-in-out 1.4s infinite;
}

@keyframes orbit-dot-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%       { transform: scale(1.4); opacity: .6; }
}

/* ── Watermark 404 ────────────────────────────────────────── */

.e404-watermark {
    position: absolute;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(160px, 25vw, 280px);
    font-weight: 700;
    color: rgba(255,255,255,.04);
    line-height: 1;
    pointer-events: none;
    user-select: none;
    z-index: 1;
    letter-spacing: -8px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
}

/* ── Contenu texte ────────────────────────────────────────── */

.e404-content {
    position: relative;
    z-index: 2;
    max-width: 560px;
    animation: content-appear 600ms ease both;
    animation-delay: 200ms;
}

@keyframes content-appear {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.e404-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    color: #ffffff;
    margin-bottom: 16px;
    line-height: 1.25;
}

.e404-message {
    font-size: 1rem;
    color: rgba(255,255,255,.7);
    line-height: 1.75;
    margin-bottom: 36px;
}

/* ── Boutons ──────────────────────────────────────────────── */

.e404-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

/* ── Liens rapides ────────────────────────────────────────── */

.e404-links {
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.e404-links-label {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255,255,255,.4);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.e404-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.e404-nav a {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,.55);
    text-decoration: none;
    transition: color 200ms ease;
}

.e404-nav a:hover {
    color: #F5A623;
}

.e404-nav span {
    color: rgba(255,255,255,.2);
    font-size: 11px;
}

/* ── Responsive ───────────────────────────────────────────── */

@media (max-width: 575px) {
    .e404-globe {
        width: 140px;
        height: 140px;
    }
    .globe-svg {
        width: 140px;
        height: 140px;
    }
    .e404-actions {
        flex-direction: column;
        align-items: center;
    }
}
