/* ADOPTE UN BEC - Style Principal v1.0 */

:root {
    --sivom-blue: #254193;
    --sivom-red: #e30513;
    --sivom-green: #00973a;
    --sivom-yellow: #fecf23;
    --sivom-cyan: #009ee3;
    --sivom-purple: #82358b;
    --sivom-gray: #f5f5f5;
    --text-dark: #333;
    --text-light: #666;
    --border-color: #ddd;
}

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

html, body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--sivom-blue) 0%, #1a2f5a 100%);
    color: white;
    padding: 30px 20px;
    border-bottom: 4px solid var(--sivom-red);
}

.header .container {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    height: 60px;
    width: auto;
}

.header h1 {
    font-size: 32px;
    margin: 0;
}

.header p {
    font-size: 14px;
    margin: 5px 0 0 0;
    opacity: 0.9;
}

/* Container */
.container {
    width: 100%;
    padding: 20px;
    margin: 0 auto;
}

.container.main {
    max-width: 1000px;
    min-height: calc(100vh - 200px);
    padding: 30px 20px;
}

@media (min-width: 768px) {
    .container { width: 90%; padding: 20px; }
    .container.main { width: 100%; padding: 30px; }
}

@media (min-width: 1200px) {
    .container { width: 1200px; margin: 0 auto; }
    .container.main { width: 100%; max-width: 1200px; margin: 0 auto; }
}

/* Cards */
.card {
    background: white;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--sivom-blue);
}

.card h2, .card h3 {
    color: var(--sivom-blue);
    margin-top: 0;
    margin-bottom: 15px;
}

.card p {
    margin-bottom: 10px;
}

/* Alerts */
.alert {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    border-left: 4px solid;
}

.alert-success {
    background-color: #e8f5e9;
    border-left-color: var(--sivom-green);
    color: #2e7d32;
}

.alert-danger {
    background-color: #ffebee;
    border-left-color: var(--sivom-red);
    color: #c62828;
}

.alert-info {
    background-color: #e3f2fd;
    border-left-color: var(--sivom-cyan);
    color: #1565c0;
}

.alerte-ars {
    background-color: #fff3cd;
    border-left: 4px solid var(--sivom-red);
    padding: 20px;
    margin: 20px 0;
    border-radius: 4px;
}

.alerte-ars h3 {
    color: var(--sivom-red);
    margin: 0 0 10px 0;
}

.alerte-ars p {
    margin: 10px 0;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

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

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--sivom-blue);
    box-shadow: 0 0 0 3px rgba(37, 65, 147, 0.1);
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: var(--text-light);
    font-size: 12px;
}

.form-group.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.form-group.checkbox input {
    width: auto;
    margin-top: 4px;
    cursor: pointer;
}

.form-group.checkbox label {
    margin: 0;
    cursor: pointer;
}

.form-inscription fieldset {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
}

.form-inscription legend {
    color: var(--sivom-blue);
    font-weight: 600;
    padding: 0 10px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
}

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

.btn-primary:hover {
    background-color: #1a2f5a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 65, 147, 0.3);
}

.btn-secondary {
    background-color: var(--border-color);
    color: var(--text-dark);
}

.btn-secondary:hover {
    background-color: #e0e0e0;
}

.btn-success {
    background-color: var(--sivom-green);
    color: white;
}

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

/* Badges */
.badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.bg-blue { background-color: var(--sivom-blue); color: white; }
.bg-red { background-color: var(--sivom-red); color: white; }
.bg-green { background-color: var(--sivom-green); color: white; }
.bg-yellow { background-color: var(--sivom-yellow); color: #333; }
.bg-cyan { background-color: var(--sivom-cyan); color: white; }
.bg-purple { background-color: var(--sivom-purple); color: white; }

/* Tables */
.table-info, .table-admin {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.table-info tr, .table-admin tr {
    border-bottom: 1px solid var(--border-color);
}

.table-info td, .table-admin th, .table-admin td {
    padding: 12px;
    text-align: left;
}

.table-admin thead {
    background-color: var(--sivom-gray);
    font-weight: 600;
    color: var(--sivom-blue);
}

.table-admin tbody tr:hover {
    background-color: var(--sivom-gray);
}

.table-info tr:last-child, .table-admin tr:last-child {
    border-bottom: none;
}

/* Timeline */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline-item {
    margin-bottom: 30px;
    padding-left: 50px;
    position: relative;
}

.timeline-item .timeline-marker {
    position: absolute;
    left: 0;
    top: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--border-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 2px solid white;
    box-shadow: 0 0 0 2px var(--border-color);
}

.timeline-item.completed .timeline-marker {
    background-color: var(--sivom-green);
    box-shadow: 0 0 0 2px var(--sivom-green);
}

.timeline-item.pending .timeline-marker {
    background-color: var(--sivom-cyan);
    box-shadow: 0 0 0 2px var(--sivom-cyan);
}

.timeline-content h4 {
    color: var(--sivom-blue);
    margin-bottom: 8px;
}

.timeline-content p {
    margin-bottom: 5px;
    color: var(--text-light);
    font-size: 14px;
}

/* Upload zone */
.upload-zone {
    border: 2px dashed var(--sivom-blue);
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    background-color: var(--sivom-gray);
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-zone:hover {
    border-color: var(--sivom-green);
    background-color: #e8f5e9;
}

/* Footer */
.footer {
    background-color: #f0f0f0;
    color: #999;
    text-align: center;
    padding: 20px;
    margin-top: 30px;
    font-size: 12px;
    border-top: 1px solid var(--border-color);
}

.footer a {
    color: #999;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        padding: 20px 10px;
    }
    
    .header .container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .logo {
        height: 40px;
    }
    
    .header h1 {
        font-size: 24px;
    }
    
    .card {
        padding: 15px;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr !important;
    }
}
