/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
    overflow: visible;
}

/* Composants boutons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #45a049;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-secondary:hover {
    background: white;
    color: #667eea;
}

/* Messages flash : mapping error → danger (Bootstrap) + lisibilité sur fond dégradé */
.app-flash-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0.75rem 20px 0;
}

.app-flash-alert {
    border-radius: 10px;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    border-width: 1px;
    border-style: solid;
}

.app-flash-alert-text {
    flex: 1;
    padding-top: 0.125rem;
    font-weight: 500;
    line-height: 1.45;
}

.app-flash-alert.alert-danger {
    background-color: #f8d7da;
    color: #58151c;
    border-color: #f1aeb5;
}

.app-flash-alert.alert-success {
    background-color: #d1e7dd;
    color: #0a3622;
    border-color: #a3cfbb;
}

.app-flash-alert.alert-warning {
    background-color: #fff3cd;
    color: #664d03;
    border-color: #ffe69c;
}

.app-flash-alert.alert-info {
    background-color: #cff4fc;
    color: #055160;
    border-color: #9eeaf9;
}

.app-flash-alert .btn-close {
    flex-shrink: 0;
    margin-top: 0.15rem;
    opacity: 0.75;
}

.app-flash-alert .btn-close:hover {
    opacity: 1;
}
