/* ============================================
   SODIPHARM — Feuille de styles globale
   ============================================ */
/* reset */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --green-deep:   #0d3d1f;
    --green-mid:    #1a5c2a;
    --green-bright: #2ea043;
    --green-light:  #e8f5ec;
    --green-pale:   #f4fbf6;
    --gold:         #c8a96e;
    --text:         #1a1a1a;
    --text-muted:   #6b7280;
    --border:       #e2e8f0;
    --white:        #ffffff;
}

body {
    font-family: 'DM Sans', Arial, sans-serif;
    color: #333;
    background-color: #e9ecef; /* default used on login page */
}

/* helper classes for page backgrounds */
body.front-page {
    background: var(--green-pale);
    min-height: 100vh;
    display: flex;
    align-items: stretch;
}
body.login-page {
    background: #e9ecef;
}

/* ── LAYOUT ── */
.container       { max-width: 1200px; margin: 0 auto; padding: 24px 16px; }
.page-title      { font-size: 1.3rem; font-weight: bold; margin-bottom: 4px; }
.page-subtitle   { color: #666; font-size: 0.88rem; margin-bottom: 22px; }

/* ── STATS ── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}
.stat-card {
    background: white;
    border-radius: 6px;
    padding: 18px;
    text-align: center;
    box-shadow: 0 0 6px rgba(0,0,0,0.06);
    border-top: 3px solid #2ea043;
}
.stat-value { font-size: 1.9rem; font-weight: bold; color: #1a5c2a; }
.stat-label { font-size: 0.8rem; color: #666; margin-top: 4px; }

/* ── FILTRES ── */
.filters-bar {
    background: white;
    border-radius: 6px;
    padding: 16px 20px;
    box-shadow: 0 0 6px rgba(0,0,0,0.06);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.filters-bar label { font-weight: bold; font-size: 0.83rem; color: #444; margin: 0; }
.filters-bar select,
.filters-bar input[type="date"] {
    padding: 7px 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 0.85rem;
}

/* ── BOUTONS ── */
.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.btn-primary   { background: #2ea043; color: white; }
.btn-primary:hover   { background: #218838; }
.btn-secondary { background: #dee2e6; color: #333; }
.btn-secondary:hover { background: #ced4da; }
.btn-export    { background: #1d6f42; color: white; }
.btn-export:hover    { background: #145232; }
.ml-auto { margin-left: auto; }

/* ── TABLEAU ── */
.table-card {
    background: white;
    border-radius: 6px;
    box-shadow: 0 0 6px rgba(0,0,0,0.06);
    overflow: hidden;
}
.table-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.table-header h2 { font-size: 0.95rem; }
.table-wrapper { overflow-x: auto; }

table { width: 100%; border-collapse: collapse; }
thead th {
    background: #f8f9fa;
    padding: 11px 14px;
    text-align: left;
    font-size: 0.78rem;
    font-weight: bold;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 2px solid #dee2e6;
}
tbody td {
    padding: 11px 14px;
    border-bottom: 1px solid #f1f3f5;
    font-size: 0.88rem;
    vertical-align: middle;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #f8f9fa; }

/* ── BADGES AGENCE ── */
.badge { display: inline-block; padding: 3px 9px; border-radius: 20px; font-size: 0.76rem; font-weight: bold; }
.badge-Diamniadio { background: #dbeafe; color: #1d4ed8; }
.badge-Colobane   { background: #fce7f3; color: #be185d; }
.badge-Thies      { background: #d1fae5; color: #065f46; }
.badge-Kaolack    { background: #fef3c7; color: #92400e; }

/* ── BADGES SERVICE ── */
.service-badge { display: inline-block; padding: 3px 9px; border-radius: 4px; font-size: 0.76rem; font-weight: bold; }
.service-Commercial   { background: #e0f2fe; color: #0369a1; }
.service-Exploitation { background: #fef9c3; color: #854d0e; }
.service-Informatique { background: #ede9fe; color: #6d28d9; }
.service-Finance      { background: #dcfce7; color: #15803d; }

/* ── IMAGE LIEN ── */
.img-link { color: #2ea043; text-decoration: none; font-size: 0.82rem; }
.img-link:hover { text-decoration: underline; }

/* ── EMPTY STATE ── */
.empty-state { text-align: center; padding: 50px 20px; color: #999; }
.empty-state .icon { font-size: 2.8rem; margin-bottom: 10px; }

/* ── MESSAGE CLIQUABLE (colonne tableau) ── */
.msg-preview {
    display: block;
    max-width: 200px;       /* largeur max de la cellule */
    width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;    /* une seule ligne + "..." */
    color: #0369a1;
    cursor: pointer;
    text-decoration: underline dotted;
    font-size: 0.88rem;
}
.msg-preview:hover { color: #1a5c2a; }

/* ── PAGINATION ── */
.pagination-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-top: 2px solid #e9ecef;
    background: #f8f9fa;
    flex-wrap: wrap;
    gap: 10px;
}
.pagination-info { font-size: 0.83rem; color: #555; }
.pagination-links { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    background: white;
    color: #333;
    font-size: 0.85rem;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.15s;
    cursor: pointer;
}
.page-btn:hover           { background: #e9ecef; border-color: #adb5bd; color: #333; }
.page-btn.active          { background: #1a5c2a; border-color: #1a5c2a; color: white; font-weight: bold; cursor: default; }
.page-btn.active:hover    { background: #1a5c2a; }
.page-btn.disabled        { color: #c1c7cd; background: #f8f9fa; pointer-events: none; border-color: #e9ecef; }
.page-dots                { font-size: 0.9rem; color: #adb5bd; padding: 0 2px; line-height: 36px; }

/* ── MODAL ── */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}
.modal-overlay.active { display: flex; }

.modal {
    background: white;
    border-radius: 8px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    margin: 16px;
    animation: slideIn 0.18s ease;
}
@keyframes slideIn {
    from { transform: translateY(-18px); opacity: 0; }
    to   { transform: translateY(0);     opacity: 1; }
}

.modal-header {
    background: #1a5c2a;
    color: white;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
}
.modal-header h3 { font-size: 1rem; }
.modal-close {
    background: none; border: none; color: white;
    font-size: 1.5rem; cursor: pointer; line-height: 1; padding: 0;
}
.modal-close:hover { opacity: 0.7; }

.modal-body { padding: 24px; }

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 20px;
}
.modal-field label {
    display: block;
    font-size: 0.74rem;
    font-weight: bold;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 3px;
    margin-top: 0;
}
.modal-field span { font-size: 0.92rem; color: #222; }

.modal-divider { border: none; border-top: 1px solid #e9ecef; margin: 18px 0; }

.modal-message-label {
    font-size: 0.74rem;
    font-weight: bold;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}
.modal-message-box {
    background: #f8f9fa;
    border-left: 4px solid #2ea043;
    border-radius: 0 6px 6px 0;
    padding: 14px 16px;
    font-size: 0.93rem;
    color: #333;
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: break-word;
}

.modal-footer {
    padding: 14px 24px;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
}
.btn-close-modal {
    padding: 9px 22px;
    background: #dee2e6;
    border: none;
    border-radius: 5px;
    font-size: 0.88rem;
    font-weight: bold;
    cursor: pointer;
    color: #333;
}
.btn-close-modal:hover { background: #ced4da; }

/* ── LOGIN ── */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}
.container_login {
    background: #fff;
    width: 420px;
    padding: 35px;
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(0,0,0,0.08);
}
.logo { text-align: center; margin-bottom: 15px; }
.logo img { height: 60px; }
h2 { text-align: center; margin-bottom: 25px; color: #333; }
label {
    font-weight: bold;
    display: block;
    margin-top: 15px;
    margin-bottom: 6px;
    color: #444;
}
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 14px;
}
.btn_login {
    width: 100%;
    margin-top: 20px;
    padding: 12px;
    background-color: #2ea043;
    border: none;
    color: white;
    font-size: 16px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
}
.btn_login:hover { background-color: #218838; }
.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 10px 12px;
    border-radius: 5px;
    margin-bottom: 15px;
    font-size: 14px;
}
.demo-box {
    display: block;
    background-color: #c4f3cd;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    color: #323030;
    margin-bottom: 14px;
}
.demo-box strong { display: block; margin-bottom: 4px; }

/* ── UTILISATEURS PAGE STYLES ── */
.container { max-width: 1100px; margin: 0 auto; padding: 80px 16px 24px; }
.page-title { font-size: 1.3rem; font-weight: bold; margin-bottom: 4px; }
.page-subtitle { color: #666; font-size: 0.88rem; margin-bottom: 22px; }
.layout { display: grid; grid-template-columns: 380px 1fr; gap: 20px; align-items: start; }

.form-card { background: white; border-radius: 6px; box-shadow: 0 0 6px rgba(0,0,0,0.07); overflow: hidden; }
.form-card-header { background: #1a5c2a; color: white; padding: 14px 20px; font-weight: bold; font-size: 0.95rem; }
.form-card-body { padding: 20px; }
.form-group { margin-bottom: 14px; }

label { font-weight: bold; display: block; margin-bottom: 5px; color: #444; font-size: 0.88rem; }
label span.req { color: #dc3545; }
input[type="text"],
input[type="email"],
input[type="password"],
select { width: 100%; padding: 9px 11px; border-radius: 5px; border: 1px solid #ccc; font-size: 0.88rem; font-family: Arial, sans-serif; }
input:focus, select:focus { outline: none; border-color: #2ea043; }
.hint { font-size: 0.76rem; color: #888; margin-top: 3px; }

.btn { padding: 10px 18px; border: none; border-radius: 5px; font-size: 0.88rem; font-weight: bold; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 5px; }
.btn-success { background: #2ea043; color: white; width: 100%; justify-content: center; margin-top: 6px; }
.btn-success:hover { background: #218838; }
.btn-warning { background: #fd7e14; color: white; width: 100%; justify-content: center; margin-top: 6px; }
.btn-warning:hover { background: #e06b10; }
.btn-secondary { background: #dee2e6; color: #333; }
.btn-secondary:hover { background: #ced4da; }
.btn-sm { padding: 5px 11px; font-size: 0.78rem; }

.alert { padding: 11px 14px; border-radius: 5px; margin-bottom: 16px; font-size: 0.88rem; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

.table-card { background: white; border-radius: 6px; box-shadow: 0 0 6px rgba(0,0,0,0.07); overflow: hidden; }
.table-header { padding: 14px 20px; border-bottom: 1px solid #e9ecef; display: flex; align-items: center; justify-content: space-between; }
.table-header h2 { font-size: 0.95rem; }
.table-wrapper { overflow-x: auto; }

table { width: 100%; border-collapse: collapse; }
thead th { background: #f8f9fa; padding: 10px 13px; text-align: left; font-size: 0.76rem; font-weight: bold; color: #555; text-transform: uppercase; letter-spacing: 0.04em; border-bottom: 2px solid #dee2e6; }
tbody td { padding: 10px 13px; border-bottom: 1px solid #f1f3f5; font-size: 0.86rem; vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #f8f9fa; }
tbody tr.editing { background: #fff8e1; }

.badge { display: inline-block; padding: 2px 8px; border-radius: 20px; font-size: 0.74rem; font-weight: bold; }
.badge-Diamniadio { background: #dbeafe; color: #1d4ed8; }
.badge-Colobane { background: #fce7f3; color: #be185d; }
.badge-Thies { background: #d1fae5; color: #065f46; }
.badge-Kaolack { background: #fef3c7; color: #92400e; }
.badge-none { background: #f1f3f5; color: #999; }

.password-wrap { position: relative; }
.password-wrap input { padding-right: 42px; }
.toggle-pwd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: #888; font-size: 1rem; padding: 0; line-height: 1; }
.toggle-pwd:hover { color: #1a5c2a; }

/* ── INDEX FORM PAGE STYLES ── */
.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.form-group { margin-bottom: 18px; }
.form-group.full { grid-column: 1 / -1; }

label { display: block; font-size: 0.76rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 7px; }
label .req { color: #ef4444; margin-left: 2px; }

input[type="text"],
select,
textarea {
    width: 100%; padding: 10px 13px;
    border: 1.5px solid var(--border); border-radius: 7px;
    font-size: 0.9rem; font-family: 'DM Sans', sans-serif;
    color: var(--text); background: var(--white);
    transition: border-color 0.18s, box-shadow 0.18s; outline: none;
}
input[type="text"]:focus, select:focus, textarea:focus {
    border-color: var(--green-bright);
    box-shadow: 0 0 0 3px rgba(46,160,67,0.1);
}
input::placeholder, textarea::placeholder { color: #c4c9d4; }

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center;
    padding-right: 36px; cursor: pointer;
}
textarea { resize: vertical; min-height: 108px; }

/* Upload area */
.file-upload-area {
    border: 1.5px dashed #d1d5db; border-radius: 8px;
    padding: 18px 16px; text-align: center; cursor: pointer;
    transition: border-color 0.2s, background 0.2s; position: relative;
    background: #fafafa;
}
.file-upload-area:hover { border-color: var(--green-bright); background: var(--green-pale); }
.file-upload-area input[type="file"] {
    position: absolute; inset: 0; opacity: 0; cursor: pointer;
    width: 100%; height: 100%;
}
.file-upload-icon { font-size: 1.5rem; margin-bottom: 5px; }
.file-upload-text { font-size: 0.81rem; color: var(--text-muted); line-height: 1.5; }
.file-upload-text strong { color: var(--green-mid); }
.file-name-preview { font-size: 0.8rem; color: var(--green-mid); margin-top: 7px; font-weight: 500; display: none; }

.btn-submit {
    width: 100%; margin-top: 6px; padding: 13px;
    background: var(--green-mid); border: none; color: white;
    font-size: 0.93rem; font-weight: 600; font-family: 'DM Sans', sans-serif;
    border-radius: 8px; cursor: pointer; letter-spacing: 0.02em;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-submit:hover {
    background: var(--green-deep);
    box-shadow: 0 4px 18px rgba(13,61,31,0.28);
    transform: translateY(-1px);
}
.btn-submit:active { transform: translateY(0); box-shadow: none; }

/* ── THANK YOU PAGE STYLES (avis.php) ── */
.thank-card { max-width: 440px; width: 100%; text-align: center; }
.thank-title { font-family: 'DM Serif Display', serif; font-size: 2rem; color: var(--text); margin-bottom: 14px; animation: fadeUp 0.4s 0.2s ease both; }
.thank-message { font-size: 0.95rem; color: var(--text-muted); line-height: 1.75; margin-bottom: 36px; animation: fadeUp 0.4s 0.35s ease both; }
.thank-message strong { color: var(--green-mid); }

.deco-line { display: flex; align-items: center; gap: 12px; margin-bottom: 36px; animation: fadeUp 0.4s 0.45s ease both; }
.deco-line::before, .deco-line::after { content: ''; flex: 1; height: 1px; background: #e2e8f0; }
.deco-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

.info-boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 36px; animation: fadeUp 0.4s 0.5s ease both; }
.info-box { background: var(--green-pale); border: 1px solid #d1fae5; border-radius: 8px; padding: 14px 12px; text-align: center; }
.info-box-icon { font-size: 1.3rem; margin-bottom: 5px; }
.info-box-text { font-size: 0.78rem; color: var(--text-muted); line-height: 1.4; }
.info-box-text strong { display: block; color: var(--green-mid); font-size: 0.82rem; margin-bottom: 2px; }


/* ── SHARED LAYOUT (index/avis/utilisateurs) ── */
.page-wrapper { display: grid; grid-template-columns: 400px 1fr; min-height: 100vh; width: 100%; }

/* panels used on front pages */
.side-panel {
    background: var(--green-deep);
    padding: 52px 44px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}
.side-panel::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 320px; height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(46,160,67,0.2) 0%, transparent 70%);
    pointer-events: none;
}
.side-panel::after {
    content: '';
    position: absolute;
    bottom: -80px; left: -60px;
    width: 260px; height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200,169,110,0.12) 0%, transparent 70%);
    pointer-events: none;
}

.side-logo { margin-bottom: 56px; }
.side-logo img { height: 50px; filter: brightness(0) invert(1); }

.side-heading {
    font-family: 'DM Serif Display', serif;
    font-size: 2rem;
    color: var(--white);
    line-height: 1.25;
    margin-bottom: 16px;
}
.side-divider { width: 36px; height: 2px; background: var(--gold); margin-bottom: 20px; }
.side-sub {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.75;
    margin-bottom: 48px;
}

.side-features { list-style: none; display: flex; flex-direction: column; gap: 18px; }
.side-features li { display: flex; align-items: center; gap: 14px; font-size: 0.84rem; color: rgba(255,255,255,0.6); }
.feature-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }

.side-footer { margin-top: auto; padding-top: 40px; font-size: 0.74rem; color: rgba(255,255,255,0.25); }

/* right panel on front pages */
.content-panel,
.form-panel { padding: 48px 56px; display: flex; flex-direction: column; justify-content: center; background: var(--white); }

/* helper components used in avis page */
.check-circle {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: var(--green-pale);
    border: 2px solid #a7f3d0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 32px;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}
@keyframes popIn {
    from { transform: scale(0.5); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}
.check-circle svg { animation: drawCheck 0.4s 0.3s ease both; }
@keyframes drawCheck {
    from { opacity: 0; transform: scale(0.6); }
    to   { opacity: 1; transform: scale(1); }
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    background: var(--green-mid);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    animation: fadeUp 0.4s 0.6s ease both;
}
.btn-back:hover {
    background: var(--green-deep);
    box-shadow: 0 4px 18px rgba(13,61,31,0.28);
    transform: translateY(-1px);
}
.btn-back:active { transform: translateY(0); box-shadow: none; }

/* form panel styles (index page) */
.form-title { font-family: 'DM Serif Display', serif; font-size: 1.65rem; color: var(--text); margin-bottom: 5px; }
.form-subtitle { font-size: 0.87rem; color: var(--text-muted); margin-bottom: 32px; }

/* animation utilities */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* navbar (previously in navbar.php) */
.navbar {
    background: #1a5c2a;
    color: white;
    padding: 0 28px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1000;
}
.pagesubtitle { font-size: 2.25rem; font-weight: bold; }
.navbar-brand { font-size: 1.1rem; font-weight: bold; display: flex; align-items: center; gap: 10px; }
.navbar-brand img { height: 36px; }
.navbar-right { display: flex; align-items: center; gap: 18px; font-size: 0.88rem; }
.navbar-right a { color: rgba(255,255,255,0.8); text-decoration: none; transition: color 0.2s; }
.navbar-right a:hover { color: white; }
.badge-poste { background: rgba(255,255,255,0.18); padding: 4px 12px; border-radius: 20px; font-size: 0.82rem; }
.navbar-toggle { display: none; flex-direction: column; justify-content: space-between; width: 30px; height: 21px; background: transparent; border: none; cursor: pointer; padding: 0; z-index: 1001; }
.navbar-toggle span { width: 100%; height: 3px; background: white; border-radius: 3px; transition: all 0.3s ease; }
.navbar-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.navbar-toggle.active span:nth-child(2) { opacity: 0; }
.navbar-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* small responsive tweaks for navbar */
@media screen and (max-width: 800px) {
    .pagesubtitle { font-size: 1.25rem; }
}
@media screen and (max-width: 768px) {
    .navbar { padding: 0 20px; }
    .navbar-toggle { display: flex; }
    .pagesubtitle { font-size: 1.25rem; }
    .navbar-right {
        position: absolute;
        top: 58px;
        left: 0;
        right: 0;
        background: #1a5c2a;
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        gap: 15px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    .navbar-right.active { transform: translateY(0); opacity: 1; visibility: visible; }
    .navbar-right a { width: 100%; padding: 8px 0; }
    .badge-poste { width: 100%; text-align: center; }
}
@media screen and (max-width: 480px) {
    .navbar-brand { font-size: 0.95rem; }
    .navbar-brand img { height: 30px; }
    .navbar { padding: 0 15px; }
}

/* utilisateurs page helpers */
.layout { display: grid; grid-template-columns: 380px 1fr; gap: 20px; align-items: start; }
.form-card { background: white; border-radius: 6px; box-shadow: 0 0 6px rgba(0,0,0,0.07); overflow: hidden; }
.form-card-header { background: #1a5c2a; color: white; padding: 14px 20px; font-weight: bold; font-size: 0.95rem; }
.form-card-body { padding: 20px; }

/* make agence field toggleable and other small utilities */
.agence-field { display: none; }
.agence-field.visible { display: block; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 42px; }
.toggle-pwd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: #888; font-size: 1rem; padding: 0; line-height: 1; }
.toggle-pwd:hover { color: #1a5c2a; }

/* responsive helpers for front pages and utilisateurs */
@media (max-width: 880px) {
    .page-wrapper { grid-template-columns: 1fr; }
    .side-panel { padding: 36px 28px 40px; min-height: auto; }
    .side-panel::before, .side-panel::after { display: none; }
    .side-features { display: none; }
    .side-footer { padding-top: 20px; }
    .form-panel { padding: 36px 24px; }
    .layout { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
    .form-grid { grid-template-columns: 1fr; }
    .form-group.full { grid-column: 1; }
}
@media (max-width: 400px) {
    .info-boxes { grid-template-columns: 1fr; }
}


