:root {
    --primary-blue: #0066b3;
    --secondary-blue: #1e88e5;
    --light-blue: #e3f2fd;
    --dark-blue: #005293;
    --accent-orange: #ff6b35;
    --accent-green: #4caf50;
    --accent-red: #f44336;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --border-color: #e0e0e0;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    padding-bottom: 40px;
}

.header {
    background: linear-gradient(to right, var(--primary-blue), var(--dark-blue));
    color: white;
    padding: 20px 40px;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    height: 70px;
    width: auto;
    background-color: white;
    padding: 5px;
    border-radius: 8px;
}

.title-container h1 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 5px;
}

.title-container h2 {
    font-size: 16px;
    font-weight: 400;
    opacity: 0.9;
}

.app-title {
    text-align: right;
}

.app-title h3 {
    font-size: 24px;
    margin-bottom: 5px;
    font-weight: 600;
}

.app-title p {
    font-size: 14px;
    opacity: 0.9;
}

.main-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.card {
    background-color: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 30px;
    margin-bottom: 30px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    box-shadow: var(--shadow-hover);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light-blue);
}

.card-title {
    font-size: 22px;
    color: var(--primary-blue);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-title i {
    color: var(--accent-orange);
}

.required-badge {
    background-color: var(--accent-red);
    color: white;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 4px;
    margin-left: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 15px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 15px;
}
.labe{
    display: flex;
    gap: 5px;
    margin-top: 20px;
}

label.required::after {
    content: " *";
    color: var(--accent-red);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s, box-shadow 0.3s;
    background-color: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary-blue);
    box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.1);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 15px;
    padding-right: 40px;
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: white;
}

.btn-primary:hover {
    background-color: var(--dark-blue);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #f0f0f0;
    color: var(--text-dark);
}

.btn-secondary:hover {
    background-color: #e0e0e0;
}

.btn-success {
    background-color: var(--accent-green);
    color: white;
}

.btn-success:hover {
    background-color: #3d8b40;
    transform: translateY(-2px);
}

.help-text {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 5px;
    font-style: italic;
}

.info-box {
    background-color: var(--light-blue);
    border-left: 4px solid var(--primary-blue);
    padding: 15px;
    margin-bottom: 25px;
    border-radius: 0 8px 8px 0;
}

.info-box h4 {
    color: var(--primary-blue);
    margin-bottom: 8px;
    font-size: 16px;
}

.info-box p {
    font-size: 14px;
    color: var(--text-light);
}

.badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-right: 10px;
    margin-bottom: 10px;
}

.badge-primary {
    background-color: var(--light-blue);
    color: var(--primary-blue);
}

.badge-secondary {
    background-color: #e8e8e8;
    color: var(--text-light);
}

.footer {
    text-align: center;
    margin-top: 40px;
    color: var(--text-light);
    font-size: 14px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.footer p {
    margin-bottom: 5px;
}

.footer a {
    color: var(--primary-blue);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }

    .app-title {
        text-align: left;
        margin-top: 15px;
    }

    .card {
        padding: 20px;
    }

    .form-footer {
        flex-direction: column;
        gap: 15px;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

}

.ligne1 {
    display: flex;
    gap: 20px;
}

.ligne1 .form-group {
    flex: 1;
}

.ligne2 {
    display: flex;
    gap: 20px;
}

.ligne2 .form-group {
    flex: 1;
}

.login-container {
    min-height: 100vh;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.login-logo {
    height: 80px;
    width: auto;
}

.card-login {
     background-color: white;
     padding: 30px;
    border-radius: 15px;
    border: none;
    width: 30%;
    margin: 0 0 0 50%;
    transform: translateX(-50%);
}

.card-header {
    border-radius: 15px 15px 0 0 !important;
    padding: 20px;
}

.text-center{
    text-align: center;
}

.passty {
    position: relative;
}

.passty input {
    width: 100%;
    padding-right: 40px; /* espace pour le bouton */
    height: 40px;
    box-sizing: border-box;
}

.maso {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
}
