* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f8fafc;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: #334155;
}

/* Header simple */
.header {
    padding: 24px 32px;
    background: white;
    border-bottom: 1px solid #e2e8f0;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
}

/* Container principal */
.main-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 32px;
}

.content-wrapper {
    display: flex;
    align-items: center;
    gap: 80px;
    max-width: 1000px;
    width: 100%;
}

.text-content {
    flex: 1;
    max-width: 400px;
}

.illustration {
    flex: 1;
    max-width: 500px;
    text-align: center;
}

/* Contenu textuel */
.main-title {
    font-size: 42px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 24px;
    line-height: 1.2;
}

.description {
    font-size: 18px;
    color: #64748b;
    margin-bottom: 32px;
    line-height: 1.6;
}

.cta-button {
    background: #10b981;
    color: white !important;
    padding: 16px 32px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.25);
}

.cta-button:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px 0 rgba(16, 185, 129, 0.35);
}

/* Illustration moderne */
.error-illustration {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 300px;
    margin: 0 auto;
}

/* Hexagone principal avec 403 */
.hexagon-main {
    position: absolute;
    top: 50%;
    right: 20%;
    transform: translateY(-50%);
    width: 140px;
    height: 140px;
    background: #94a3b8;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 3s ease-in-out infinite;
}

.error-code {
    color: white;
    font-size: 32px;
    font-weight: 900;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Cloud/serveur stylisé */
.server-cloud {
    position: absolute;
    bottom: 30%;
    left: 10%;
    width: 200px;
    height: 80px;
    background: #cbd5e1;
    border-radius: 40px;
    position: relative;
    animation: pulse 4s ease-in-out infinite;
}

.server-cloud::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: #cbd5e1;
    border-radius: 50%;
}

.server-cloud::after {
    content: '';
    position: absolute;
    top: -20px;
    right: 40px;
    width: 80px;
    height: 50px;
    background: #cbd5e1;
    border-radius: 25px;
}

.server-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    color: white;
    z-index: 2;
}

/* Éléments décoratifs */
.connection-line {
    position: absolute;
    top: 45%;
    left: 45%;
    width: 120px;
    height: 2px;
    background: #e2e8f0;
    transform: rotate(25deg);
    border-radius: 2px;
}

.connection-line::before {
    content: '';
    position: absolute;
    right: -6px;
    top: -2px;
    width: 6px;
    height: 6px;
    background: #e2e8f0;
    border-radius: 50%;
}

/* Petit élément décoratif */
.small-element {
    position: absolute;
    bottom: 20%;
    right: 35%;
    width: 40px;
    height: 25px;
    background: #e2e8f0;
    border-radius: 4px;
    animation: bounce 2s ease-in-out infinite;
}

.small-element::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    width: 24px;
    height: 2px;
    background: white;
    border-radius: 1px;
}

.small-element::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 8px;
    width: 16px;
    height: 2px;
    background: white;
    border-radius: 1px;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(-50%); }
    50% { transform: translateY(-60%); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

/* Footer */
.footer {
    background: white;
    border-top: 1px solid #e2e8f0;
    padding: 24px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-links {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.footer-link {
    color: #64748b;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #334155;
}

.copyright {
    color: #94a3b8;
    font-size: 14px;
}

/* Badge de sécurité */
.security-badge {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    animation: slideDown 0.8s ease-out 0.5s both;
}

@keyframes slideDown {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .main-title {
        font-size: 32px;
    }

    .description {
        font-size: 16px;
    }

    .error-illustration {
        height: 250px;
    }

    .hexagon-main {
        width: 120px;
        height: 120px;
    }

    .error-code {
        font-size: 28px;
    }

    .server-cloud {
        width: 160px;
        height: 65px;
    }

    .footer {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .header, .main-container, .footer {
        padding: 20px;
    }

    .main-title {
        font-size: 28px;
    }

    .footer-links {
        flex-direction: column;
        gap: 16px;
    }
}

/* Animation d'entrée */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in:nth-child(1) { animation-delay: 0.1s; }
.fade-in:nth-child(2) { animation-delay: 0.2s; }
.fade-in:nth-child(3) { animation-delay: 0.3s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}