{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    box-shadow: 0 0 30px rgba(0,0,0,0.1);
    min-height: 100vh;
}

.menu {
    width: 250px;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    padding: 30px 0;
    position: sticky;
    top: 0;
    height: 100vh;
}

.menu ul {
    list-style: none;
}

.menu li {
    margin: 0;
}

.menu a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 15px 25px;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.menu a:hover {
    background: rgba(255,255,255,0.1);
    border-left-color: white;
}

.menu-reservation {
    background: rgba(255,255,255,0.2);
    margin: 10px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
}

.content {
    flex: 1;
    padding: 40px 60px;
}

.header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 2px solid #667eea;
}

.header h1 {
    font-size: 3em;
    color: #667eea;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.3em;
    color: #764ba2;
    font-style: italic;
}

.intro {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 40px;
    line-height: 1.8;
}

.prochain-atelier {
    margin: 40px 0;
}

.prochain-atelier h2 {
    color: #667eea;
    font-size: 2em;
    margin-bottom: 25px;
}

.atelier-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    margin-bottom: 30px;
}

.atelier-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.atelier-card.featured {
    border: 3px solid #667eea;
}

.atelier-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.atelier-details {
    padding: 30px;
}

.atelier-details h3 {
    color: #764ba2;
    font-size: 1.8em;
    margin-bottom: 20px;
}

.atelier-details p {
    margin: 12px 0;
    font-size: 1.1em;
}

.description {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    line-height: 1.7;
}

.btn-reservation {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    margin-top: 20px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-reservation:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.social-links {
    text-align: center;
    margin-top: 60px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 10px;
}

.social-link {
    display: inline-block;
    margin: 0 15px;
    padding: 12px 30px;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #764ba2;
    transform: translateY(-3px);
}

.ateliers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.atelier-info {
    padding: 20px;
}

.atelier-info h3 {
    color: #764ba2;
    margin-bottom: 15px;
}

.atelier-info .date {
    color: #667eea;
    font-weight: bold;
    font-size: 1.1em;
}

.atelier-info .btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 25px;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.atelier-info .btn:hover {
    background: #764ba2;
}

.page-content {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    line-height: 1.8;
}

.weezevent-container {
    margin: 40px 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.info-pratiques {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    margin-top: 30px;
}

.info-pratiques h3 {
    color: #667eea;
    margin-bottom: 20px;
}

.info-pratiques ul {
    list-style-position: inside;
    line-height: 2;
}

.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 40px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.login-container h1 {
    color: #667eea;
    text-align: center;
    margin-bottom: 30px;
}

.login-container input {
    width: 100%;
    padding: 15px;
    margin: 10px 0;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
}

.login-container button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    cursor: pointer;
    margin-top: 20px;
}

.error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.admin-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.admin-header a {
    color: white;
    margin: 0 10px;
}

.admin-nav ul {
    display: flex;
    list-style: none;
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.admin-nav li {
    margin-right: 20px;
}

.admin-nav a {
    color: #667eea;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.admin-nav a:hover {
    background: #667eea;
    color: white;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.stat-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.stat-number {
    font-size: 3em;
    color: #667eea;
    font-weight: bold;
}



.admin-table {
    width: 100%;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.admin-table th {
    background: #667eea;
    color: white;
    padding: 15px;
    text-align: left;
}

.admin-table td {
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.admin-table button {
    padding: 8px 15px;
    margin-right: 5px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    background: #667eea;
    color: white;
}

/* Style général du modal */
.modal {
    display: none; /* caché par défaut */
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* permet le scroll si nécessaire */
    background-color: rgba(0,0,0,0.5); /* overlay semi-transparent */
    padding-top: 30px;
    box-sizing: border-box;
}

/* Conteneur du formulaire */
.admin-form {
    background-color: #fff;
    margin: auto;
    padding: 20px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;  /* hauteur max 90% de l'écran */
    overflow-y: auto;   /* scroll vertical si nécessaire */
    box-sizing: border-box;
}

/* Inputs et textarea pour prendre toute la largeur */
.admin-form input[type=text],
.admin-form input[type=date],
.admin-form input[type=file],
.admin-form select,
.admin-form textarea {
    width: 100%;
    padding: 8px;
    margin: 6px 0;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Boutons */
.admin-form button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    margin-top: 10px;
    cursor: pointer;
    color: #fff;
}

.admin-form button[type=submit] {
    background-color: #28a745;
}

.admin-form button[type=button] {
    background-color: #6c757d;
}


#map {
    width: 100%;
    height: 300px; /* indispensable pour voir la carte */
    margin-top: 15px;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .menu {
        width: 100%;
        height: auto;
        position: relative;
    }
    
    .content {
        padding: 20px;
    }
    
    .ateliers-grid {
        grid-template-columns: 1fr;
    }
}
