/* Reset et Base */
:root {
    --prison-orange: #e67e22;
    --prison-dark: #2c3e50;
    --prison-darker: #1a252f;
    --prison-gray: #95a5a6;
    --prison-light: #ecf0f1;
    --prison-red: #e74c3c;
    --prison-blue: #3498db;
    --prison-bar: #7f8c8d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Prison', 'Arial', sans-serif;
}

@font-face {
    font-family: 'Prison';
    src: url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Press+Start+2P&display=swap');
}

body {
    background-color: var(--prison-dark);
    color: var(--prison-light);
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

/* Animation de chargement */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--prison-darker);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 1s ease-out;
}

.loading-bars {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.loading-bars .bar {
    width: 15px;
    height: 50px;
    background-color: var(--prison-orange);
    animation: loading-bar 1.5s infinite ease-in-out;
}

.loading-bars .bar:nth-child(1) { animation-delay: 0s; }
.loading-bars .bar:nth-child(2) { animation-delay: 0.2s; }
.loading-bars .bar:nth-child(3) { animation-delay: 0.4s; }
.loading-bars .bar:nth-child(4) { animation-delay: 0.6s; }

@keyframes loading-bar {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(1.8); }
}

.loading-screen p {
    color: var(--prison-light);
    font-size: 1.2rem;
    letter-spacing: 2px;
    animation: loading-text 2s infinite;
}

@keyframes loading-text {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Header */
.prison-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    background-color: rgba(44, 62, 80, 0.9);
    backdrop-filter: blur(10px);
    z-index: 100;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(231, 126, 34, 0.3);
}

.prison-header.scrolled {
    padding: 15px 0;
    background-color: rgba(26, 37, 47, 0.95);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.logo-container {
    display: flex;
    align-items: center;
    position: relative;
}

.logo {
    height: 50px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: rotate(-5deg);
}

.logo-bars {
    display: flex;
    gap: 3px;
    margin-left: 15px;
}

.logo-bar {
    width: 3px;
    height: 20px;
    background-color: var(--prison-orange);
    animation: logo-bar-pulse 2s infinite ease-in-out;
}

.logo-bar:nth-child(1) { animation-delay: 0s; }
.logo-bar:nth-child(2) { animation-delay: 0.2s; }
.logo-bar:nth-child(3) { animation-delay: 0.4s; }

@keyframes logo-bar-pulse {
    0%, 100% { transform: scaleY(1); opacity: 0.7; }
    50% { transform: scaleY(1.5); opacity: 1; }
}

/* Navigation */
.prison-nav ul {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-link {
    color: var(--prison-light);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--prison-orange);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--prison-orange);
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-btn .bar {
    width: 25px;
    height: 3px;
    background-color: var(--prison-light);
    transition: all 0.3s ease;
}

/* Section Hero */
.hero-section {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../assets/bg.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, transparent 0%, var(--prison-darker) 70%);
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    position: relative;
    z-index: 2;
    transform: translateY(-50px);
    opacity: 0;
    animation: fade-in-up 1s ease-out 0.5s forwards;
}

.hero-title {
    font-size: 5rem;
    font-weight: 900;
    margin-bottom: 20px;
    text-transform: uppercase;
    line-height: 1.1;
    background: linear-gradient(to right, var(--prison-light), var(--prison-orange));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 3px;
}

.hero-title span {
    display: inline-block;
    animation: title-shake 3s infinite;
}

@keyframes title-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 40px;
    max-width: 600px;
    color: var(--prison-gray);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--prison-orange);
    color: var(--prison-light);
    box-shadow: 0 5px 15px rgba(230, 126, 34, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(230, 126, 34, 0.6);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-secondary {
    background-color: transparent;
    color: var(--prison-orange);
    border: 2px solid var(--prison-orange);
}

.btn-secondary:hover {
    background-color: rgba(230, 126, 34, 0.1);
    transform: translateY(-3px);
}

/* Animation du prisonnier */
.prisoner-animation {
    position: absolute;
    right: 10%;
    bottom: 10%;
    z-index: 1;
    transform: translateY(100px);
    opacity: 0;
    animation: fade-in-up 1s ease-out 1s forwards;
}

.prisoner {
    height: 400px;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
    animation: prisoner-float 4s ease-in-out infinite;
}

.shadow {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 20px;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.6) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(5px);
    animation: shadow-pulse 4s ease-in-out infinite;
}

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

@keyframes shadow-pulse {
    0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.7; }
    50% { transform: translateX(-50%) scale(0.9); opacity: 0.5; }
}

/* Animations générales */
@keyframes fade-in-up {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Sections */
.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-header h2 {
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 20px;
    color: var(--prison-light);
    position: relative;
    display: inline-block;
}

.section-header.dark h2 {
    color: var(--prison-dark);
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--prison-orange);
}

.section-divider {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 20px;
}

.divider-bar {
    width: 30px;
    height: 3px;
    background-color: var(--prison-orange);
    animation: divider-pulse 2s infinite ease-in-out;
}

.divider-bar:nth-child(1) { animation-delay: 0s; }
.divider-bar:nth-child(2) { animation-delay: 0.2s; }
.divider-bar:nth-child(3) { animation-delay: 0.4s; }

@keyframes divider-pulse {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(1.5); }
}

/* Gameplay Cards */
.gameplay-cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.gameplay-card {
    background-color: rgba(44, 62, 80, 0.7);
    border-radius: 10px;
    padding: 30px;
    width: 300px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(231, 126, 34, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.gameplay-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.card-icon {
    width: 70px;
    height: 70px;
    background-color: var(--prison-orange);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    font-size: 1.8rem;
    color: var(--prison-light);
    box-shadow: 0 5px 15px rgba(230, 126, 34, 0.4);
}

.gameplay-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--prison-orange);
}

.gameplay-card p {
    color: var(--prison-gray);
    line-height: 1.6;
    margin-bottom: 20px;
}

.card-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 40%, rgba(231, 126, 34, 0.1) 50%, transparent 60%);
    background-size: 200% 200%;
    animation: card-shine 3s infinite linear;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gameplay-card:hover .card-animation {
    opacity: 1;
}

@keyframes card-shine {
    0% { background-position: -100% -100%; }
    100% { background-position: 100% 100%; }
}

/* Features Section */
.features-section {
    background-color: var(--prison-light);
    padding: 100px 0;
    color: var(--prison-dark);
}

.features-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    gap: 50px;
    align-items: center;
}

.feature-image {
    flex: 1;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    min-height: 500px;
}

.cell-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.feature-image:hover .cell-image {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(44, 62, 80, 0.8) 0%, transparent 50%);
}

.feature-list {
    flex: 1;
}

.feature-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-item:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateX(10px);
}

.feature-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--prison-orange);
    min-width: 50px;
    opacity: 0.7;
}

.feature-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--prison-orange);
}

.feature-content p {
    color: var(--prison-dark);
    line-height: 1.6;
}

/* Gallery Section */
.gallery-section {
    padding: 100px 0;
    background-color: var(--prison-dark);
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.gallery-item {
    position: relative;
    border-radius: 5px;
    overflow: hidden;
    height: 250px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(44, 62, 80, 0.9) 0%, transparent 100%);
    transition: bottom 0.3s ease;
    color: white;
}

.gallery-item:hover .gallery-overlay {
    bottom: 0;
}

.gallery-overlay h3 {
    margin-bottom: 5px;
    color: var(--prison-orange);
}

/* About Section */
.about-section {
    padding: 100px 0;
    background-color: var(--prison-darker);
}

.about-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    gap: 50px;
    align-items: center;
}

.about-content {
    flex: 1;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: var(--prison-orange);
    position: relative;
    display: inline-block;
}

.about-content h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: var(--prison-orange);
}

.about-content p {
    margin-bottom: 40px;
    color: var(--prison-gray);
    line-height: 1.8;
}

.about-stats {
    display: flex;
    gap: 30px;
    margin-top: 50px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--prison-orange);
    margin-bottom: 10px;
}

.stat-label {
    color: var(--prison-gray);
    font-size: 1rem;
    letter-spacing: 1px;
}

.about-image {
    flex: 1;
    position: relative;
}

.about-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.guard-shadow {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 30px;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.6) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(10px);
    z-index: -1;
}

/* Footer */
.prison-footer {
    background-color: var(--prison-darker);
    padding: 70px 0 0;
    border-top: 1px solid rgba(231, 126, 34, 0.1);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    gap: 50px;
}

.footer-logo {
    flex: 1;
    min-width: 250px;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 20px;
}

.footer-logo p {
    color: var(--prison-gray);
    line-height: 1.6;
}

.footer-links {
    flex: 2;
    display: flex;
    gap: 50px;
}

.link-group {
    flex: 1;
}

.link-group h4 {
    color: var(--prison-orange);
    margin-bottom: 20px;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.link-group ul {
    list-style: none;
}

.link-group li {
    margin-bottom: 10px;
}

.link-group a {
    color: var(--prison-gray);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
    padding-left: 15px;
}

.link-group a::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--prison-orange);
    opacity: 0;
    transition: all 0.3s ease;
}

.link-group a:hover {
    color: var(--prison-light);
}

.link-group a:hover::before {
    opacity: 1;
    left: 5px;
}

.footer-social {
    flex: 1;
    min-width: 250px;
}

.footer-social h4 {
    color: var(--prison-orange);
    margin-bottom: 20px;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: var(--prison-gray);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--prison-orange);
    color: var(--prison-light);
    transform: translateY(-5px);
}

.footer-bottom {
    margin-top: 70px;
    padding: 20px 0;
    background-color: rgba(0, 0, 0, 0.2);
    text-align: center;
    position: relative;
}

.footer-bottom p {
    color: var(--prison-gray);
    font-size: 0.9rem;
}

.footer-bars {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 15px;
}

.footer-bar {
    width: 30px;
    height: 3px;
    background-color: var(--prison-orange);
    opacity: 0.5;
}

/* Responsive Design */
@media (max-width: 992px) {
    .features-container {
        flex-direction: column;
    }
    
    .feature-image {
        width: 100%;
        min-height: 400px;
    }
    
    .about-container {
        flex-direction: column;
    }
    
    .about-image {
        margin-top: 50px;
    }
}

@media (max-width: 768px) {
    .prison-nav {
        position: fixed;
        top: 90px;
        left: 0;
        width: 100%;
        background-color: var(--prison-darker);
        padding: 20px;
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        z-index: 99;
    }
    
    .prison-nav.active {
        transform: translateY(0);
    }
    
    .prison-nav ul {
        flex-direction: column;
        gap: 15px;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .mobile-menu-btn.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .mobile-menu-btn.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .prisoner-animation {
        right: 50%;
        transform: translateX(50%) translateY(100px);
    }
    
    .prisoner {
        height: 300px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .gameplay-cards {
        flex-direction: column;
        align-items: center;
    }
    
    .gameplay-card {
        width: 100%;
    }
    
    .gallery-container {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 20px;
    }
}

/* Animations supplémentaires */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

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

.rotate-animation {
    animation: rotate 10s linear infinite;
}

/* Effets de hover spéciaux */
.hover-grow {
    transition: transform 0.3s ease;
}

.hover-grow:hover {
    transform: scale(1.05);
}

.hover-underline {
    position: relative;
}

.hover-underline::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--prison-orange);
    transition: width 0.3s ease;
}

.hover-underline:hover::after {
    width: 100%;
}

/* Classes utilitaires */
.text-orange {
    color: var(--prison-orange);
}

.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.p-20 {
    padding: 20px;
}

/* Animation des chiffres */
@keyframes count-up {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.counting {
    animation: count-up 0.5s ease-out forwards;
}

/* =================== */
/* PAGE 404 - ERREUR */
/* =================== */
.error-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 50px;
    background: linear-gradient(rgba(44, 62, 80, 0.9), rgba(26, 37, 47, 0.9)), 
                url('../assets/cell-bg.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
    overflow: hidden;
}

.error-content {
    max-width: 600px;
    z-index: 2;
}

.error-number {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    font-size: 10rem;
    font-weight: 900;
    color: var(--prison-light);
}

.error-number span {
    display: inline-block;
    animation: cell-shake 3s infinite;
}

@keyframes cell-shake {
    0%, 100% { transform: translateY(0); }
    25% { transform: translateY(-20px); }
    50% { transform: translateY(0) rotate(5deg); }
    75% { transform: translateY(-10px); }
}

.error-icon {
    width: 150px;
    height: 150px;
    margin: 0 30px;
    background-color: var(--prison-orange);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 5rem;
    color: var(--prison-light);
    box-shadow: 0 10px 30px rgba(230, 126, 34, 0.5);
    animation: lock-pulse 2s infinite;
}

@keyframes lock-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.error-section h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--prison-orange);
    text-transform: uppercase;
    letter-spacing: 3px;
}

.error-section p {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--prison-gray);
    max-width: 500px;
}

.countdown {
    margin: 40px 0;
    display: flex;
    align-items: center;
    gap: 20px;
}

.countdown-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--prison-orange);
    min-width: 60px;
}

.countdown-bars {
    display: flex;
    gap: 10px;
}

.countdown-bar {
    width: 30px;
    height: 10px;
    background-color: var(--prison-bar);
    transition: background-color 0.3s ease;
}

.error-image {
    position: relative;
    z-index: 1;
}

.error-image img {
    height: 600px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
    animation: prisoner-bounce 4s infinite ease-in-out;
}

@keyframes prisoner-bounce {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-30px) rotate(5deg); }
}

.error-shadow {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 30px;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.6) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(10px);
    animation: shadow-pulse 4s infinite ease-in-out;
}

/* Responsive */
@media (max-width: 992px) {
    .error-section {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding: 100px 20px;
    }
    
    .error-content {
        margin-bottom: 50px;
    }
    
    .error-number {
        justify-content: center;
    }
    
    .error-section p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .countdown {
        justify-content: center;
    }
    
    .error-image img {
        height: 400px;
    }
}

@media (max-width: 576px) {
    .error-number {
        font-size: 6rem;
    }
    
    .error-icon {
        width: 100px;
        height: 100px;
        font-size: 3rem;
        margin: 0 15px;
    }
    
    .error-section h1 {
        font-size: 2rem;
    }
    
    .error-section p {
        font-size: 1rem;
    }
    
    .error-image img {
        height: 300px;
    }
}

/* =================== */
/* AMÉLIORATIONS POUR LA VISIBILITÉ */
/* =================== */

/* Conteneur du numéro d'erreur */
.error-number {
    position: relative; /* Permet de gérer le z-index */
    z-index: 10; /* Place au-dessus des autres éléments */
    margin-top: 50px; /* Ajoute de l'espace en haut */
}

/* Bouton principal */
.btn-primary {
    position: relative;
    z-index: 10;
    margin-bottom: 50px; /* Ajoute de l'espace en bas */
    box-shadow: 0 0 15px rgba(0,0,0,0.8); /* Contour visible */
    background-color: var(--prison-orange);
    border: 2px solid #fff; /* Bordure blanche pour plus de contraste */
}

/* Ajustement de l'image du prisonnier */
.error-image {
    z-index: 1; /* S'assure qu'elle reste en arrière-plan */
    margin-top: -50px; /* Remonte légèrement l'image */
}

/* Ajustements responsives */
@media (max-width: 992px) {
    .error-number {
        margin-top: 30px;
    }
    
    .btn-primary {
        margin-bottom: 30px;
    }
    
    .error-image {
        margin-top: 0;
    }
}

@media (max-width: 576px) {
    .error-number {
        margin-top: 20px;
    }
    
    .btn-primary {
        margin-bottom: 20px;
        padding: 10px 20px;
        font-size: 1rem;
    }
}