@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');


@font-face {
    font-family: 'MinecraftTitles';
    src: url('MinecraftTen-VGORe.ttf') format('truetype');
}

/* Styles de base */
body {
    font-family: 'Press Start 2P', cursive;
    line-height: 1.6;
    color: #333;
     background-image: url('images/BACK.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.85);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    border: 3px solid #5a3e12;
}

/* Navigation */
nav {
   /* background-image: url('images/grass.webp');*/
    background-repeat: repeat-x;
    background-size: auto 60px;
    background-position: top;
   background-color: rgba(0, 128, 0, 0.5); /* vert classique, à 50% d'opacité */
    padding: 1rem 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav a {
    color: #ecf0f1;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    font-family: 'MinecraftTitles', sans-serif;
    text-shadow: 1px 1px 2px #000;
}

nav a:hover {
    background-color: #34495e;
    color: #fff;
}

/* Titres */
h1, h2, h3, h4, h5, h6 {
    font-family: 'MinecraftTitles', sans-serif;
    font-weight: normal;
    letter-spacing: 1px;
}

h1 {
    color: #FFFFFF;
    margin: 2rem 0 1rem;
    font-size: 2.2rem;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
    display: inline-block;
    text-shadow: 1px 1px 2px #000;
}

/* Filtres */
.filter-section {
    background-color: #fff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
    margin: 1rem 0;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 1rem;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #2c3e50;
    font-family: 'Press Start 2P';
}

.filter-group select, 
.filter-group input[type="number"] {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    font-size: 1rem;
    transition: border 0.3s;
    font-family: 'Press Start 2P';
}

.filter-group select:focus, 
.filter-group input[type="number"]:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.range-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Boutons */
.btn {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    background-color: green;
    color: white;
    text-decoration: none;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-family: 'MinecraftTitles', sans-serif;
    font-size: 1rem;
}

.btn:hover {
    background-color: #3e5c20;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

form {
    color: white;
}

.btn-secondary {
    background-color: blue;
}

.btn-secondary:hover {
    background-color: #1a237e;
}

.btn-danger {
    background-color: #e74c3c;
}

.btn-danger:hover {
    background-color: #c0392b;
}

/* Cartes de mob */
.mobs-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 1rem 0;
    justify-content: flex-start;
}

.mob-card {
    background-color: #fff;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    width: calc(33.333% - 1.5rem);
    min-width: 300px;
    flex-grow: 1;
}

.mob-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.mob-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.mob-image {
    width: 150px;
    height: 150px;
    object-fit: contain;
    transition: transform 0.3s ease;
    display: block;
    margin: 0 auto;
}

.mob-card:hover .mob-image {
    transform: scale(1.3);
}

.mob-info {
    padding: 1.2rem;
    flex-grow: 1;
}

.mob-info h3 {
    margin: 0 0 0.8rem;
    color: #2c3e50;
    font-size: 1.4rem;
    font-family: 'MinecraftTitles', sans-serif;
}

.mob-info p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    color: #555;
    font-family: 'Press Start 2P';
}

.mob-power {
    display: inline-block;
    background-color: #e8f4fc;
    color: #3498db;
    padding: 0.3rem 0.8rem;
    font-weight: 500;
    margin-top: 0.5rem;
    font-size: 0.7rem;
    font-family: 'Press Start 2P';
}

.mob-price {
    display: block;
    font-size: 1.3rem;
    font-weight: 600;
    color: green;
    margin: 0.5rem 1.2rem;
    text-align: right;
    font-family: 'MinecraftTitles', sans-serif;
}

.actions {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    padding: 0 1.2rem 1.2rem;
}

/* Réservation */
.reservation-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
}

.mob-info-card {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: center;
    background: #f9f9f9;
    padding: 20px;
}

.reservation-form {
    background: #fff;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    font-family: 'MinecraftTitles', sans-serif;
}

.form-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    font-family: 'Press Start 2P';
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* Tableau de bord */
.dashboard-container {
    background-color: rgba(255, 255, 255, 0.9);
    border: 4px solid #5a3e12;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 900px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
}

.dashboard-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 2rem 0;
}

.stat-card {
    background-color: #f8f8f8;
    border: 3px solid #8B8B8B;
    padding: 1.5rem;
    text-align: center;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    width: 30%;
    min-width: 250px;
    margin-bottom: 1.5rem;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.stat-card h3 {
    color: #2c3e50;
    font-family: 'MinecraftTitles', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #ddd;
    padding-bottom: 0.5rem;
}

.stat-card p {
    font-family: 'Press Start 2P';
    font-size: 1.5rem;
    color: #333;
    margin: 0;
}

.stat-card .stat-value {
    font-family: 'MinecraftTitles', sans-serif;
    color: #4CAF50;
    font-size: 2rem;
    font-weight: bold;
    display: block;
    margin: 0.5rem 0;
}

/* Formulaires */
.form-container {
    max-width: 700px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.92);
    border: 4px solid #5a3e12;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.form-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
}

.form-title {
    font-family: 'MinecraftTitles', sans-serif;
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 3px solid #4CAF50;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.9rem;
    border: 3px solid #8B8B8B;
    background-color: #f5f5f5;
    font-family: 'Press Start 2P';
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.form-group input[type="text"]:focus,
.form-group input[type="number"]:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #4CAF50;
    outline: none;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.3), inset 0 1px 3px rgba(0,0,0,0.1);
    background-color: #fff;
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
    line-height: 1.5;
}

.checkbox-container {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
}

.checkbox-container input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    accent-color: #4CAF50;
    cursor: pointer;
}

.checkbox-container label {
    font-family: 'Press Start 2P';
    color: #2c3e50;
    font-size: 0.9rem;
    cursor: pointer;
    margin: 0;
}

.image-upload-container {
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: #f5f5f5;
    border: 3px dashed #8B8B8B;
    text-align: center;
}

.current-image {
    max-width: 200px;
    max-height: 200px;
    border: 3px solid #8B8B8B;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.current-image:hover {
    transform: scale(1.05);
}

.image-upload-label {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: #3498db;
    color: white;
    font-family: 'MinecraftTitles', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.image-upload-label:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-submit {
    flex: 1;
    padding: 1rem;
    background-color: #4CAF50;
    color: white;
    border: none;
    font-family: 'MinecraftTitles', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-submit:hover {
    background-color: #3e8e41;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.btn-cancel {
    flex: 1;
    padding: 1rem;
    background-color: #e74c3c;
    color: white;
    border: none;
    font-family: 'MinecraftTitles', sans-serif;
    font-size: 1rem;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-cancel:hover {
    background-color: #c0392b;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.error-message {
    color: #e74c3c;
    font-family: 'Press Start 2P';
    font-size: 0.9rem;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background-color: rgba(231, 76, 60, 0.1);
    border-left: 3px solid #e74c3c;
}

.required-field::after {
    content: " *";
    color: #e74c3c;
    font-size: 1.1rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin: 30px 0;
    flex-wrap: wrap;
    gap: 8px;
}

.page-link {
    padding: 8px 14px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    text-decoration: none;
    color: #007bff;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.page-link:hover {
    background-color: #e9ecef;
    color: #0056b3;
    border-color: #dee2e6;
}

.page-link.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

/* Connexion */

.login-container {
    text-align: center;
    display: flex;
    color: white;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
    background-color: brown;
}

.login-container .form-group {
    width: 100%;
    margin-bottom: 15px;
    text-align: left;
}

.login-container .form-group input[type="text"],
.login-container .form-group input[type="password"] {
    width: calc(100% - 20px);
    padding: 10px;
    margin-top: 5px;
}

.login-container .form-actions {
    width: 100%;
    text-align: center;
}

.form-group.remember {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 15px 0;
}

.form-group.remember label {
    margin-left: 5px;
    color: white;
}

/* Responsive */
@media (max-width: 1024px) {
    .mob-card {
        width: calc(50% - 1.5rem);
    }
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem;
    }
    
    .filter-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .filter-group {
        min-width: 100%;
    }
    
    .mob-card {
        width: 100%;
        min-width: auto;
    }
    
    .filter-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .stat-card {
        width: 100%;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-submit, 
    .btn-cancel {
        width: 100%;
    }
    
    .current-image {
        max-width: 150px;
    }
}

/* Animations */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.stat-card:hover .stat-value {
    animation: pulse 1s infinite;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-group {
    animation: fadeIn 0.5s ease forwards;
}

/* Styles supplémentaires pour les réservations */
.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 1rem;
    margin: 1rem 0;
    border: 1px solid #c3e6cb;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 1rem;
    margin: 1rem 0;
    border: 1px solid #f5c6cb;
    font-family: 'Press Start 2P';
    font-size: 0.9rem;
}

.reservations-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-family: 'Press Start 2P';
    font-size: 0.8rem;
}

.reservations-table th, 
.reservations-table td {
    padding: 0.8rem;
    text-align: left;
    border-bottom: 2px solid #5a3e12;
}

.reservations-table th {
    background-color: #4CAF50;
    color: white;
    font-family: 'MinecraftTitles';
}

.reservations-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

.reservations-table tr:hover {
    background-color: #e8f4fc;
}

.no-results {
    text-align: center;
    padding: 2rem;
    font-family: 'MinecraftTitles';
    color: #555;
}

.back-link {
    margin-top: 2rem;
    text-align: center;
}

.table-responsive {
    overflow-x: auto;
}

@media (max-width: 768px) {
    .reservations-table {
        font-size: 0.7rem;
    }
    
    .reservations-table th, 
    .reservations-table td {
        padding: 0.5rem;
    }
}

/* Message de remerciement */
.thank-you-message {
    background-color: #f8f9fa;
    border: 3px solid #5a3e12;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 800px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.thank-you-message h2 {
    color: #4CAF50;
    font-family: 'MinecraftTitles', sans-serif;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.confirmation-details {
    background-color: white;
    padding: 1.5rem;
    border: 2px solid #ddd;
    margin: 1.5rem 0;
    text-align: left;
    font-family: 'Press Start 2P';
}

.confirmation-details p {
    margin: 0.8rem 0;
    font-size: 0.9rem;
}

.confirmation-details strong {
    color: #2c3e50;
}

.actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn-secondary {
    background-color: #3498db;
}

.btn-secondary:hover {
    background-color: #2980b9;
}

/* Animation pour le message */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.thank-you-message {
    animation: fadeInUp 0.5s ease-out;
}

/* Styles pour le panier */
.panier-link {
    background-color: #f39c12;
    padding: 0.5rem 1rem;
    margin-left: 1rem;
    color: white;
    text-decoration: none;
    font-family: 'MinecraftTitles', sans-serif;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.form-actions .btn {
    flex: 1;
    padding: 0.8rem;
    text-align: center;
}

.btn-secondary {
    background-color: #3498db;
}

.btn-secondary:hover {
    background-color: #2980b9;
}

.reserve-btn {
    background-color: #4CAF50;
}

.reserve-btn:hover {
    background-color: #3e8e41;
}

@media (max-width: 768px) {
    .form-actions {
        flex-direction: column;
    }
}

/* Styles pour le message de confirmation dans le panier */
.confirmation-container {
    background-color: #d4edda;
    border: 3px solid #5a3e12;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.5s ease-out;
}

.confirmation-container h2 {
    color: #155724;
    font-family: 'MinecraftTitles', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-align: center;
}

.confirmation-details {
    background-color: white;
    padding: 1.5rem;
    border: 2px solid #c3e6cb;
    margin: 1.5rem 0;
    font-family: 'Press Start 2P';
    font-size: 0.9rem;
}

.confirmation-details p {
    margin: 0.8rem 0;
    line-height: 1.6;
}

.confirmation-details strong {
    color: #0c5460;
}

.confirmation-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Styles pour le tableau du panier */
.panier-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-family: 'Press Start 2P';
    font-size: 0.9rem;
}

.panier-table th {
    background-color: #4CAF50;
    color: white;
    padding: 1rem;
    text-align: left;
    font-family: 'MinecraftTitles';
}

.panier-table td {
    padding: 1rem;
    border-bottom: 2px solid #5a3e12;
    vertical-align: middle;
}

.panier-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

.panier-table tr:hover {
    background-color: #e8f4fc;
}

.quantite-input {
    width: 60px;
    padding: 0.5rem;
    text-align: center;
    border: 2px solid #5a3e12;
    font-family: 'Press Start 2P';
}

/* Styles pour les actions du panier */
.panier-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
}

.panier-actions .btn {
    flex: 1;
    min-width: 200px;
    text-align: center;
}

/* Message panier vide */
.panier-vide {
    text-align: center;
    padding: 2rem;
    font-family: 'MinecraftTitles';
}

.panier-vide p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #5a3e12;
}

/* Animation pour le message */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .panier-table {
        font-size: 0.8rem;
    }
    
    .panier-table th, 
    .panier-table td {
        padding: 0.8rem;
    }
    
    .confirmation-actions {
        flex-direction: column;
    }
    
    .panier-actions .btn {
        width: 100%;
    }
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }
.form-group:nth-child(3) { animation-delay: 0.3s; }
.form-group:nth-child(4) { animation-delay: 0.4s; }
.form-group:nth-child(5) { animation-delay: 0.5s; }
.form-group:nth-child(6) { animation-delay: 0.6s; }
.form-group:nth-child(7) { animation-delay: 0.7s; }
.form-group:nth-child(8) { animation-delay: 0.8s; }