/* ZeroPub - Base CSS */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #000091;
    --primary-hover: #1212ff;
    --danger: #dc3545;
    --danger-hover: #c82333;
    --gray: #6c757d;
    --gray-light: #f5f5f5;
    --gray-border: #ddd;
    --text: #333;
    --text-light: #666;
    --white: #fff;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --radius: 8px;
}

body { 
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--gray-light);
    min-height: 100vh;
    color: var(--text);
}

/* Layout */
.container {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    max-width: 800px;
    margin: 0 auto;
}

.container-small { max-width: 500px; }
.container-large { max-width: 1000px; }

.page-padding { padding: 2rem; }
.page-center { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

/* Typography */
h1 { color: var(--primary); margin-bottom: 1rem; }
h2 { color: var(--text); margin: 2rem 0 1rem; font-size: 1.3rem; }
p { margin: 0.5rem 0; }

.label { font-weight: 600; color: var(--text-light); }
.required { color: var(--danger); }
.text-muted { color: var(--text-light); font-style: italic; }

/* Buttons */
.btn { 
    display: inline-block; 
    padding: 12px 24px; 
    border-radius: 4px; 
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    margin-right: 10px;
    margin-top: 10px;
    transition: background 0.2s;
}

.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-hover); }

.btn-danger { background: var(--danger); color: var(--white); }
.btn-danger:hover { background: var(--danger-hover); }

.btn-secondary { background: var(--gray); color: var(--white); }
.btn-secondary:hover { background: #5a6268; }

.btn-proconnect {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary);
    color: var(--white);
    padding: 14px 28px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
}
.btn-proconnect:hover { background: var(--primary-hover); }

/* Forms */
.form-group { margin-bottom: 1rem; }

.form-group label { 
    display: block; 
    margin-bottom: 0.3rem; 
    font-weight: 600; 
    color: var(--text); 
}

.form-group input,
.form-group textarea,
.form-group select { 
    width: 100%; 
    padding: 10px; 
    border: 1px solid var(--gray-border); 
    border-radius: 4px;
    font-size: 1rem;
}

.form-group textarea { resize: vertical; min-height: 100px; }

.form-error { color: var(--danger); font-size: 0.9rem; margin-top: 0.3rem; }

.form-actions { margin-top: 1.5rem; }

/* Cards */
.card { 
    background: var(--white); 
    border: 1px solid var(--gray-border); 
    padding: 1rem; 
    border-radius: var(--radius); 
    margin-bottom: 1rem;
}

.card h3 { margin-bottom: 0.5rem; }

/* Info box */
.info-box { 
    background: #f0f4f8; 
    padding: 1rem; 
    border-radius: var(--radius); 
    margin-bottom: 1rem; 
}

/* Alerts */
.alert { padding: 1rem; border-radius: var(--radius); margin-bottom: 1rem; }
.alert-success { background: #d4edda; color: #155724; }
.alert-error { background: #f8d7da; color: #721c24; }

/* Hero (page accueil) */
.hero {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
    min-height: 100vh;
}

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

.hero-content h1 { color: var(--primary); margin-bottom: 0.5rem; }
.hero-content p { color: var(--text-light); margin-bottom: 2rem; }

/* Form rows */
.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

.form-group-small {
    flex: 0 0 120px !important;
}

/* Horaires grid */
.horaires-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
}

.horaire-jour {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.horaire-jour label {
    width: 80px;
    font-weight: 600;
}

.horaire-jour input {
    flex: 1;
    padding: 8px;
    border: 1px solid var(--gray-border);
    border-radius: 4px;
}

/* Checkbox groups */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: normal;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }
    
    .form-group-small {
        flex: 1 !important;
    }
}

/* Image uploads */
.preview-image {
    display: inline-block;
    margin: 0.5rem 0.5rem 0.5rem 0;
}

.preview-image img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--gray-border);
}

.preview-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.form-help {
    display: block;
    color: var(--text-light);
    font-size: 0.85rem;
    margin-top: 0.3rem;
}

input[type="file"] {
    padding: 8px 0;
}
