/*
 * EnseigneWeb · couche de design « moderne » posée PAR-DESSUS Bootstrap 3 et AdminLTE 2 (aucun de leurs fichiers n'est modifié ni remplacé).
 * Chargée après le thème AdminLTE et avant les styles propres à chaque page : une page peut toujours préciser.
 * Rien ici ne change une largeur ou une position d'AdminLTE (barre latérale, en-tête) : seulement couleurs, rayons, ombres, typographie et espacements.
 */
:root {
  --ew-primaire: #4f46e5; --ew-primaire-fonce: #4338ca; --ew-primaire-pale: #eef0ff; --ew-primaire-bord: #c7cbfa;
  --ew-encre: #171a3a; --ew-texte: #2b2f55; --ew-discret: #646a93; --ew-fond: #f4f6fb; --ew-surface: #fff; --ew-bord: #e3e6f2; --ew-bord-fort: #cfd3e6;
  --ew-ok: #0b7d54; --ew-ok-pale: #e7f7f0; --ew-alerte: #b45309; --ew-alerte-pale: #fff6e0; --ew-danger: #d92d4f; --ew-danger-pale: #fdecef; --ew-info: #0369a1; --ew-info-pale: #e6f4fb;
  --ew-barre: #14163a; --ew-barre-2: #1c1f4a; --ew-barre-texte: #c9cdf2; --ew-barre-titre: #7f85bd;
  --ew-rayon: 14px; --ew-rayon-sm: 10px; --ew-ombre: 0 1px 2px rgba(23,26,58,.05), 0 8px 24px rgba(23,26,58,.06); --ew-ombre-forte: 0 24px 60px rgba(23,26,58,.28);
  --ew-police: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- base ---------- */
body, h1, h2, h3, h4, h5, h6, .main-header .logo, .main-header .navbar, .sidebar-menu, .btn, .form-control, .box-title, .nav-tabs-custom > .nav-tabs > li > a { font-family: var(--ew-police) !important; }
body { color: var(--ew-texte); background: var(--ew-fond); -webkit-font-smoothing: antialiased; }
.content-wrapper, .right-side, .wrapper { background-color: var(--ew-fond); }
a { color: var(--ew-primaire); }
a:hover, a:focus { color: var(--ew-primaire-fonce); }
h1, h2, h3, h4, h5, h6 { color: var(--ew-encre); letter-spacing: -.01em; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--ew-primaire) 55%, #fff); outline-offset: 2px; }
::selection { background: var(--ew-primaire-pale); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- en-tête, barre latérale ---------- */
.skin-blue .main-header .navbar { background-color: var(--ew-surface); border-bottom: 1px solid var(--ew-bord); box-shadow: 0 1px 0 rgba(23,26,58,.02); }
.skin-blue .main-header .logo { background-color: var(--ew-barre); color: #fff; font-weight: 700; letter-spacing: .01em; border-bottom: 0; }
.skin-blue .main-header .logo:hover { background-color: var(--ew-barre-2); }
.skin-blue .main-header .navbar .sidebar-toggle { color: var(--ew-texte); }
.skin-blue .main-header .navbar .sidebar-toggle:hover { background: var(--ew-primaire-pale); color: var(--ew-primaire); }
.skin-blue .main-header .navbar .sidebar-toggle .icon-bar { background-color: var(--ew-texte); }
.skin-blue .main-header .navbar .nav > li > a { color: var(--ew-texte); }
.skin-blue .main-header .navbar .nav > li > a:hover, .skin-blue .main-header .navbar .nav .open > a, .skin-blue .main-header .navbar .nav .open > a:hover, .skin-blue .main-header .navbar .nav .open > a:focus { background: var(--ew-primaire-pale); color: var(--ew-primaire); }
.skin-blue .main-header .navbar .nav > li.user-menu > a span { font-weight: 600; }
.main-header .navbar .dropdown-menu, .navbar-nav > .user-menu > .dropdown-menu { border: 1px solid var(--ew-bord); border-radius: var(--ew-rayon-sm); box-shadow: var(--ew-ombre); overflow: hidden; margin-top: 4px; }
.navbar-nav > .user-menu > .dropdown-menu > li.user-header { background: linear-gradient(135deg, var(--ew-primaire), #6d5df0); }
.navbar-nav > .user-menu > .dropdown-menu > li.user-footer { background: var(--ew-surface); border-top: 1px solid var(--ew-bord); }

.skin-blue .main-sidebar, .skin-blue .left-side, .skin-blue .wrapper { background-color: var(--ew-barre); }   /* .wrapper : AdminLTE le colore en gris-vert (#222d32) et il apparaît sous un menu plus court que la fenêtre */
.skin-blue .content-wrapper, .skin-blue .right-side { background-color: var(--ew-fond); }
.skin-blue .sidebar a { color: var(--ew-barre-texte); }
.skin-blue .sidebar a:hover { text-decoration: none; }
.skin-blue .sidebar-menu > li.header { color: var(--ew-barre-titre); background: transparent; font-size: 11px; font-weight: 700; letter-spacing: .09em; padding: 16px 15px 6px; }
.skin-blue .sidebar-menu > li > a { border-left: 3px solid transparent; border-radius: 0 10px 10px 0; margin-right: 8px; padding: 11px 15px; }
.skin-blue .sidebar-menu > li:hover > a, .skin-blue .sidebar-menu > li.active > a { color: #fff; background: rgba(255,255,255,.07); }
.skin-blue .sidebar-menu > li.active > a { background: rgba(129,140,248,.2); border-left-color: #818cf8; font-weight: 600; }
.skin-blue .sidebar-menu > li > .treeview-menu { background: var(--ew-barre-2); margin: 0 8px 0 0; border-radius: 0 0 10px 0; }
.skin-blue .treeview-menu > li > a { color: #aab0df; padding: 8px 5px 8px 16px; }
.skin-blue .treeview-menu > li.active > a, .skin-blue .treeview-menu > li > a:hover { color: #fff; }
.skin-blue .sidebar-form, .skin-blue .sidebar-menu > li > a > .fa { opacity: .9; }

/* Les pages qui posent une colonne flottante (col-md-8, col-md-9…) directement dans « .content » : sans ceci, la hauteur de « .content » ne les compte pas et le pied de page remonte SUR le bas d'une page longue. */
.content-wrapper > .content::after { content: ""; display: table; clear: both; }
.main-footer { background: var(--ew-surface); border-top: 1px solid var(--ew-bord); color: var(--ew-discret); font-size: 13px; padding: 14px 20px; }

/* ---------- titre de page et fil d'Ariane ---------- */
.content-header { padding: 22px 20px 4px; }
.content-header > h1 { font-size: 26px; font-weight: 800; color: var(--ew-encre); margin: 0; }
.content-header > h1 > small { color: var(--ew-discret); font-weight: 500; }
.content-header > .breadcrumb { background: transparent; border-radius: 0; font-size: 13px; padding: 0; top: 24px; right: 20px; }
.content-header > .breadcrumb > li > a { color: var(--ew-discret); }
.content-header > .breadcrumb > li.active { color: var(--ew-texte); font-weight: 600; }
.content { padding: 18px 20px 28px; }
@media (max-width: 767px) { .content-header { padding: 16px 14px 2px; } .content { padding: 14px; } .content-header > h1 { font-size: 22px; } }

/* ---------- cartes (box) ---------- */
.box { border-radius: var(--ew-rayon); border: 1px solid var(--ew-bord); border-top: 1px solid var(--ew-bord); box-shadow: var(--ew-ombre); background: var(--ew-surface); margin-bottom: 20px; }
.box.box-primary { border-top: 3px solid var(--ew-primaire); } .box.box-success { border-top: 3px solid var(--ew-ok); } .box.box-warning { border-top: 3px solid #f59e0b; }
.box.box-danger { border-top: 3px solid var(--ew-danger); } .box.box-info { border-top: 3px solid #0ea5e9; } .box.box-default { border-top: 3px solid var(--ew-bord-fort); }
.box-header { padding: 16px 20px; border-bottom: 1px solid var(--ew-bord); border-radius: var(--ew-rayon) var(--ew-rayon) 0 0; }
.box-header.with-border { border-bottom: 1px solid var(--ew-bord); }
.box-title { font-size: 16px; font-weight: 700; color: var(--ew-encre); }
.box-body { padding: 20px; border-radius: 0 0 var(--ew-rayon) var(--ew-rayon); }
.box-footer { background: transparent; border-top: 1px solid var(--ew-bord); padding: 16px 20px; border-radius: 0 0 var(--ew-rayon) var(--ew-rayon); }
.small-box { border-radius: var(--ew-rayon); box-shadow: var(--ew-ombre); overflow: hidden; }
.small-box > .small-box-footer { background: rgba(0,0,0,.12); }
.info-box { border-radius: var(--ew-rayon); box-shadow: var(--ew-ombre); overflow: hidden; }

/* ---------- boutons ---------- */
.btn, .btn-flat { border-radius: var(--ew-rayon-sm); font-weight: 600; padding: 8px 16px; box-shadow: none; border-width: 1px; transition: background-color .12s, border-color .12s, box-shadow .12s, transform .08s; }
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn-lg { padding: 12px 24px; font-size: 16px; border-radius: 12px; } .btn-sm { padding: 6px 12px; border-radius: 8px; } .btn-xs { padding: 3px 9px; border-radius: 7px; }
.btn-default, .btn-secondary { background: var(--ew-surface); border-color: var(--ew-bord-fort); color: var(--ew-texte); }
.btn-default:hover, .btn-default:focus, .btn-secondary:hover { background: #f5f6fd; border-color: var(--ew-primaire-bord); color: var(--ew-primaire-fonce); }
.btn-primary { background: var(--ew-primaire); border-color: var(--ew-primaire); color: #fff; box-shadow: 0 4px 12px rgba(79,70,229,.25); }
.btn-primary:hover, .btn-primary:focus, .btn-primary:active { background: var(--ew-primaire-fonce); border-color: var(--ew-primaire-fonce); color: #fff; }
.btn-success { background: #059669; border-color: #059669; color: #fff; } .btn-success:hover, .btn-success:focus { background: #047857; border-color: #047857; color: #fff; }
.btn-warning { background: #f59e0b; border-color: #f59e0b; color: #3b2300; } .btn-warning:hover, .btn-warning:focus { background: #d98708; border-color: #d98708; color: #2d1a00; }
.btn-danger { background: var(--ew-danger); border-color: var(--ew-danger); color: #fff; } .btn-danger:hover, .btn-danger:focus { background: #b91c3c; border-color: #b91c3c; color: #fff; }
.btn-info { background: #0284c7; border-color: #0284c7; color: #fff; } .btn-info:hover, .btn-info:focus { background: #0369a1; border-color: #0369a1; color: #fff; }
.btn[disabled], .btn.disabled { opacity: .55; }

/* ---------- formulaires ---------- */
label { font-weight: 600; color: var(--ew-encre); }
.form-control { height: 40px; border-radius: var(--ew-rayon-sm); border: 1px solid var(--ew-bord-fort); box-shadow: none; padding: 8px 12px; font-size: 14px; color: var(--ew-encre); background-color: var(--ew-surface); transition: border-color .12s, box-shadow .12s; }
textarea.form-control { height: auto; }
.form-control:focus { border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99,102,241,.2); }
.form-control[disabled], .form-control[readonly] { background: #f3f4fa; }
.input-group-addon { border-radius: var(--ew-rayon-sm); border: 1px solid var(--ew-bord-fort); background: #f5f6fd; color: var(--ew-discret); }
.help-block, .text-muted { color: var(--ew-discret); }
.has-error .form-control, .has-error .input-group-addon { border-color: var(--ew-danger); } .has-error .help-block, .has-error .control-label { color: var(--ew-danger); }
.has-success .form-control { border-color: var(--ew-ok); }
.has-feedback .form-control-feedback { color: var(--ew-discret); }
legend { border-bottom-color: var(--ew-bord); color: var(--ew-encre); font-weight: 700; }

/* ---------- tableaux ---------- */
.table > thead > tr > th { border-bottom: 2px solid var(--ew-bord); color: var(--ew-discret); font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.table > tbody > tr > td, .table > tbody > tr > th, .table > tfoot > tr > td { border-top: 1px solid var(--ew-bord); vertical-align: middle; }
.table-striped > tbody > tr:nth-of-type(odd) { background-color: #fafbfe; }
.table-hover > tbody > tr:hover, .table > tbody > tr:hover > .sorting_1 { background-color: var(--ew-primaire-pale); }
.table-bordered, .table-bordered > thead > tr > th, .table-bordered > tbody > tr > td { border-color: var(--ew-bord); }
.dataTables_wrapper .dataTables_filter input, .dataTables_wrapper .dataTables_length select { border-radius: var(--ew-rayon-sm); border: 1px solid var(--ew-bord-fort); }
.dataTables_wrapper .dataTables_info { color: var(--ew-discret); font-size: 13px; }
.pagination > li > a, .pagination > li > span { border-color: var(--ew-bord); color: var(--ew-texte); }
.pagination > li:first-child > a, .pagination > li:first-child > span { border-radius: 8px 0 0 8px; } .pagination > li:last-child > a, .pagination > li:last-child > span { border-radius: 0 8px 8px 0; }
.pagination > .active > a, .pagination > .active > a:hover, .pagination > .active > span { background: var(--ew-primaire); border-color: var(--ew-primaire); color: #fff; }

/* ---------- onglets ---------- */
.nav-tabs-custom { border-radius: var(--ew-rayon); box-shadow: var(--ew-ombre); border: 1px solid var(--ew-bord); overflow: hidden; background: var(--ew-surface); }
.nav-tabs-custom > .nav-tabs { border-bottom-color: var(--ew-bord); margin: 0; }
.nav-tabs-custom > .nav-tabs > li { margin-bottom: -1px; border-top: 3px solid transparent; }
.nav-tabs-custom > .nav-tabs > li > a { color: var(--ew-discret); font-weight: 600; border-radius: 0; }
.nav-tabs-custom > .nav-tabs > li.active { border-top-color: var(--ew-primaire); }
.nav-tabs-custom > .nav-tabs > li.active > a, .nav-tabs-custom > .nav-tabs > li.active:hover > a { color: var(--ew-encre); }
.nav-tabs-custom > .tab-content { padding: 20px; }
.nav-pills > li.active > a, .nav-pills > li.active > a:hover { background-color: var(--ew-primaire); }

/* ---------- fenêtres, étiquettes, messages ---------- */
.modal-content { border: 0; border-radius: 16px; box-shadow: var(--ew-ombre-forte); }
.modal-header { border-bottom: 0; padding: 20px 24px 8px; } .modal-header .modal-title { font-weight: 700; color: var(--ew-encre); }
.modal-body { padding: 10px 24px 16px; } .modal-footer { border-top: 0; padding: 8px 24px 22px; }
.modal-backdrop.in { opacity: .5; }
.close { opacity: .5; text-shadow: none; } .close:hover { opacity: .9; }
.label, .badge { border-radius: 999px; font-weight: 600; padding: .3em .75em; }
.label-success, .badge.bg-green { background-color: #059669 !important; } .label-warning { background-color: #f59e0b !important; color: #3b2300; } .label-danger { background-color: var(--ew-danger) !important; } .label-primary { background-color: var(--ew-primaire) !important; } .label-info { background-color: #0284c7 !important; }
.callout, .alert { border-radius: 12px; border-left-width: 4px; border-top: 0; border-right: 0; border-bottom: 0; font-weight: 500; }
.callout.callout-warning, .alert-warning { background-color: var(--ew-alerte-pale) !important; color: #6b3a00 !important; border-color: #f59e0b !important; }
.callout.callout-danger, .alert-danger { background-color: var(--ew-danger-pale) !important; color: #8f1630 !important; border-color: var(--ew-danger) !important; }
.callout.callout-success, .alert-success { background-color: var(--ew-ok-pale) !important; color: #065f42 !important; border-color: #10b981 !important; }
.callout.callout-info, .alert-info { background-color: var(--ew-info-pale) !important; color: #075985 !important; border-color: #0ea5e9 !important; }
.callout h4, .alert h4 { color: inherit; }
.progress { border-radius: 999px; box-shadow: none; background: #e9ebf6; } .progress-bar { background-color: var(--ew-primaire); }
.list-group-item { border-color: var(--ew-bord); } .list-group-item:first-child { border-radius: 10px 10px 0 0; } .list-group-item:last-child { border-radius: 0 0 10px 10px; }
.img-thumbnail, .img-rounded { border-radius: 10px; border-color: var(--ew-bord); }

/* ================= composants EW (boutons-icônes, confirmation, cartes de liste) ================= */
.ew-icone { display: inline-block; vertical-align: -3px; flex: none; }

/* le bouton-icône : même forme pour modifier, supprimer, retirer, partout */
.ew-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border-radius: 10px; border: 1px solid var(--ew-bord-fort); background: var(--ew-surface); color: var(--ew-discret); cursor: pointer; line-height: 1; transition: background-color .12s, border-color .12s, color .12s; }
.ew-icon-btn:hover, .ew-icon-btn:focus { background: #f5f6fd; border-color: var(--ew-primaire-bord); color: var(--ew-primaire); }
.ew-icon-btn--danger:hover, .ew-icon-btn--danger:focus { background: var(--ew-danger-pale); border-color: #f3b3c0; color: var(--ew-danger); }
.ew-icon-btn--sm { width: 30px; height: 30px; border-radius: 8px; }
.ew-icon-btn .ew-icone { vertical-align: 0; }

/* la fenêtre de confirmation */
.ew-confirm .modal-content { padding-top: 10px; }
.ew-confirm__icone { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: var(--ew-danger-pale); color: var(--ew-danger); margin: 8px 0 6px; }
.ew-confirm__icone .ew-icone { width: 26px; height: 26px; }
.ew-confirm__titre { font-size: 18px; font-weight: 800; margin: 8px 0 6px; }
.ew-confirm__message { color: var(--ew-texte); margin: 0; overflow-wrap: anywhere; }
.ew-confirm__actions { display: flex; gap: 10px; justify-content: center; }
.ew-confirm__actions .btn { min-width: 110px; }

/* une grille de cartes (catégories, par exemple) */
.ew-cartes { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 18px; align-items: start; }
.ew-carte { position: relative; background: var(--ew-surface); border: 1px solid var(--ew-bord); border-radius: var(--ew-rayon); box-shadow: var(--ew-ombre); padding: 18px; margin: 0 !important; transition: box-shadow .15s, border-color .15s; }
.ew-carte:hover { border-color: var(--ew-primaire-bord); box-shadow: 0 10px 28px rgba(23,26,58,.1); }
.ew-carte.has-error { border-color: var(--ew-danger); }
.ew-carte__actions { position: absolute; top: 12px; right: 12px; display: flex; gap: 6px; }
.ew-carte__corps { display: flex; gap: 14px; align-items: flex-start; }
.ew-carte__photo { flex: none; width: 84px; display: block; }
.ew-carte__photo img { width: 84px; height: 84px; object-fit: cover; border-radius: 12px; border: 1px solid var(--ew-bord); background: #f3f4fa; cursor: pointer; transition: transform .15s, border-color .15s; }
.ew-carte__photo img:hover { transform: scale(1.04); border-color: var(--ew-primaire); }
.ew-carte__champs { flex: 1 1 auto; min-width: 0; }
.ew-carte__nom { width: calc(100% - 44px) !important; }
.ew-carte__champs label { display: block; font-size: 12px; font-weight: 700; color: var(--ew-discret); text-transform: uppercase; letter-spacing: .04em; margin: 0 0 4px; }
.ew-carte__champs .form-control { margin-bottom: 12px; }
.ew-carte__ligne { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ew-carte__champs .has-error { display: block; color: var(--ew-danger); font-size: 13px; font-style: normal; margin: -6px 0 10px; }
.ew-carte--nouvelle { border-style: dashed; border-color: var(--ew-primaire-bord); background: #fbfbff; }
@media (max-width: 480px) { .ew-cartes { grid-template-columns: 1fr; } .ew-carte__corps { flex-direction: column; } .ew-carte__champs { width: 100%; } .ew-carte__nom { width: 100% !important; } .ew-carte__corps { margin-top: 26px; } }

/* une barre d'actions en bas d'un formulaire long */
.ew-barre-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 20px; }
.ew-vide { text-align: center; color: var(--ew-discret); padding: 32px 16px; }

/* une ligne de tableau éditable avec son bouton-icône */
.ew-colonne-actions { width: 64px; text-align: center; white-space: nowrap; }

/* ---------- messages d'aiguillage de la mise en page ---------- */
.content-wrapper > .callout { margin: 16px 20px 0; }

/* ---------- pages de connexion ---------- */
.login-page, .register-page { background: linear-gradient(160deg, #14163a 0%, #2a2f7a 62%, #4f46e5 150%); min-height: 100vh; }
.login-box, .register-box { margin-top: 6vh; }
.login-logo a, .register-logo a { color: #fff; font-weight: 800; letter-spacing: -.01em; }
.login-logo a:hover { color: #fff; opacity: .9; text-decoration: none; }
.login-box-body, .register-box-body { border-radius: 18px; box-shadow: var(--ew-ombre-forte); padding: 28px 26px; }
.login-box-msg, .register-box-msg { color: var(--ew-discret); padding-bottom: 14px; }
.login-box-body .form-control { height: 44px; }
.login-box-body .btn { height: 44px; }

/* ---------- un congé : une carte avec ses champs et son bouton-icône ---------- */
.ew-conge { background: var(--ew-surface); border: 1px solid var(--ew-bord); border-radius: var(--ew-rayon-sm); padding: 14px 16px; margin: 0 0 12px !important; }
.ew-conge.has-error { border-color: var(--ew-danger); }
.ew-conge > label { display: block; margin-bottom: 6px; }
.ew-conge__ligne { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.ew-conge__ligne > .input-group { flex: 1 1 280px; max-width: 520px; }
.ew-conge__champ { min-width: 0; }
.ew-conge__champ > label { display: block; font-size: 12px; font-weight: 700; color: var(--ew-discret); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.ew-conge__champ--dates { flex: 3 1 360px; } .ew-conge__champ--texte { flex: 2 1 200px; } .ew-conge__champ--visibilite { flex: 1 1 130px; } .ew-conge__champ--couleur { flex: 0 0 auto; }
.ew-conge .has-error { color: var(--ew-danger); font-style: normal; font-size: 13px; }
.ew-couleur { width: 46px; height: 40px; padding: 3px; border: 1px solid var(--ew-bord-fort); border-radius: 10px; background: var(--ew-surface); cursor: pointer; }
.ew-conge__ligne--employe { row-gap: 14px; }

/* ---------- barre d'outils d'une page de liste, sections d'un formulaire, tableaux de liste ---------- */
.ew-barre-outils { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 16px; }
.ew-barre-outils > .btn:last-child:not(:first-child) { margin-left: auto; }
.ew-section { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ew-discret); border-bottom: 1px solid var(--ew-bord); padding-bottom: 6px; margin: 22px 0 14px; }
.ew-section:first-child { margin-top: 4px; }
.ew-table > tbody > tr > td { padding-top: 10px; padding-bottom: 10px; }
.ew-actions-2 { width: 88px; }
.ew-actions-2 .ew-icon-btn + .ew-icon-btn { margin-left: 6px; }
.ew-pastille { display: inline-block; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--ew-bord-fort); vertical-align: middle; }
.ew-confirm { z-index: 1070; }
.modal-body label a, .ew-section a { color: var(--ew-discret); }
.ew-confirm__saisie { max-width: 200px; margin: 14px auto 0; text-align: left; }
.ew-confirm__saisie label { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--ew-discret); }
.ew-confirm__saisie .form-control { letter-spacing: .3em; font-size: 18px; }
.ew-confirm__erreur { color: var(--ew-danger); font-size: 13px; margin: 6px 0 0; }

/* ---------- filtres d'une liste ---------- */
.ew-filtres { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: flex-end; }
.ew-filtres .form-group { margin: 0; flex: 1 1 150px; min-width: 130px; }
.ew-filtres__actions { display: flex; gap: 8px; flex: 0 0 auto; }
.ew-ok { color: var(--ew-ok); font-weight: 600; } .ew-erreur { color: var(--ew-danger); font-weight: 600; }

/* ---------- pages de liste : recherche, pastilles d'initiales, boutons d'actions ---------- */
.ew-recherche { position: relative; flex: 1 1 280px; max-width: 460px; }
.ew-recherche .form-control { padding-left: 38px; }
.ew-recherche__icone { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ew-discret); display: inline-flex; pointer-events: none; }
.ew-compte { color: var(--ew-discret); white-space: nowrap; }
.ew-compte strong { color: var(--ew-encre); }
.ew-personne { display: flex; align-items: center; gap: 10px; }
.ew-avatar { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; font-size: 12px; font-weight: 800; letter-spacing: .02em; }
.ew-avatar--0 { background: #e0e7ff; color: #3730a3; } .ew-avatar--1 { background: #fce7f3; color: #9d174d; } .ew-avatar--2 { background: #d1fae5; color: #065f46; }
.ew-avatar--3 { background: #fef3c7; color: #92400e; } .ew-avatar--4 { background: #e0f2fe; color: #075985; } .ew-avatar--5 { background: #ede9fe; color: #5b21b6; }
.ew-actions-3 { width: 128px; text-align: left; }
.ew-actions-3 .ew-icon-btn + .ew-icon-btn { margin-left: 6px; }
.ew-courriels { background: var(--ew-surface); border: 1px solid var(--ew-bord); border-radius: var(--ew-rayon-sm); padding: 12px 14px; font-size: 13px; color: var(--ew-texte); max-height: 160px; overflow: auto; overflow-wrap: anywhere; user-select: all; }
a.ew-icon-btn { text-decoration: none; }
tr[hidden] { display: none !important; }
.ew-nowrap { white-space: nowrap; }

/* ---------- fiches (client, professionnel) : carte de profil, photos, texte multiligne ---------- */
.box-profile { text-align: center; }
.profile-user-img { width: 112px; height: 112px; object-fit: cover; border-radius: 50%; border: 4px solid var(--ew-surface); box-shadow: 0 0 0 2px var(--ew-bord-fort), var(--ew-ombre); margin: 0 auto 10px; display: block; }
.profile-username { font-size: 20px; font-weight: 800; margin: 8px 0 2px; color: var(--ew-encre); }
.box-profile .list-group { margin: 14px 0 0; text-align: left; }
.box-profile .list-group-item { display: flex; align-items: center; gap: 10px; justify-content: space-between; padding: 10px 12px; }
.box-profile .list-group-item .fa { color: var(--ew-discret); }
.box-profile .list-group-item a { float: none !important; overflow-wrap: anywhere; text-align: right; }
#imagepreview { max-width: 100%; height: auto; border-radius: var(--ew-rayon); }
.ew-photo-membre { width: 48px; height: 48px; object-fit: cover; border-radius: 50%; border: 2px solid var(--ew-surface); box-shadow: 0 0 0 1px var(--ew-bord-fort); }
.ew-multiligne { white-space: pre-line; }
/* Un tableau qui défile dans son cadre : le cadre est « positionné », sinon un texte caché (sr-only, position absolue) de l'en-tête s'échappe du cadre et élargit toute la page sur mobile. */
.table-responsive { position: relative; }

/* ---------- fiche professionnel : onglets Services et Horaires (tableaux) ---------- */
.ew-services .form-control, .ew-horaire .form-control { height: 34px; padding: 4px 8px; font-size: 13px; }
.ew-services .prixservice { width: 96px; }
.ew-services select { min-width: 104px; }
.ew-services > tbody > tr > td { vertical-align: middle !important; padding: 6px 8px !important; }
.ew-categorie-ligne > th { background: var(--ew-fond); color: var(--ew-encre); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; padding: 8px 10px !important; }
.ew-check { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 600; cursor: pointer; }
.ew-check input { margin: 0; }
.ew-ligne-edition > td { background: var(--ew-info-pale); }
.ew-services tr.service.has-error > td, .ew-horaire tr.horaire.has-error > td { background: var(--ew-danger-pale); }
.ew-services i.has-error, .ew-horaire i.has-error { display: block; font-style: normal; font-size: 12px; color: var(--ew-danger); margin-top: 4px; white-space: normal; }
.ew-horaire-bloc { margin-top: 8px; }
.ew-horaire-entete { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.ew-horaire-entete h4 { margin: 0; font-weight: 800; }
.ew-horaire-entete .text-muted { flex: 1 1 100%; margin: 0; }
.ew-horaire-entete .ew-icon-btn { margin-left: auto; }
.ew-horaire-periode { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.ew-horaire-periode .form-group { flex: 1 1 200px; max-width: 260px; margin: 0; }
.ew-horaire-periode label, .ew-horaire-choix label { display: block; font-size: 12px; font-weight: 700; color: var(--ew-discret); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.ew-horaire > thead > tr > th { white-space: nowrap; }
.ew-horaire > tbody > tr > th { white-space: nowrap; width: 110px; vertical-align: middle !important; }
.ew-horaire > tbody > tr > td { padding: 6px 6px !important; min-width: 96px; }
.ew-horaire__groupe { border-left: 1px solid var(--ew-bord); }
.ew-horaire-choix { min-width: 260px; }

/* ---------- aide : liste des articles et article « comment faire » avec étapes numérotées et captures ---------- */
.ew-aide-intro { font-size: 15px; color: var(--ew-texte); max-width: 760px; margin: 0 0 16px; }
.ew-aide-groupe { margin: 0 0 8px; }
.ew-aide-groupe[hidden] { display: none !important; }
.ew-aide-categorie { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ew-discret); margin: 26px 0 12px; }
.ew-aide-cartes { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.ew-aide-carte { display: flex; flex-direction: column; gap: 6px; background: var(--ew-surface); border: 1px solid var(--ew-bord); border-radius: var(--ew-rayon); padding: 16px 18px; text-decoration: none; color: var(--ew-texte); box-shadow: var(--ew-ombre); }
.ew-aide-carte[hidden] { display: none !important; }                       /* sans cette règle, « display: flex » garde visibles les cartes écartées par la recherche */
.ew-aide-carte:hover, .ew-aide-carte:focus { border-color: var(--ew-primaire); text-decoration: none; color: var(--ew-texte); }
.ew-aide-carte strong { color: var(--ew-encre); font-size: 16px; }
.ew-aide-carte small { color: var(--ew-discret); display: inline-flex; align-items: center; gap: 6px; margin-top: auto; }
.ew-aide-article { max-width: 980px; }
.ew-aide-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; color: var(--ew-discret); margin: 0 0 8px; }
.ew-aide-meta span { display: inline-flex; align-items: center; gap: 6px; }
.ew-aide-resume { font-size: 17px; color: var(--ew-encre); margin: 0 0 20px; }
.ew-aide-etapes { list-style: none; counter-reset: etape; padding: 0; margin: 28px 0; }
.ew-aide-etape { position: relative; counter-increment: etape; padding: 0 0 8px 58px; margin: 0 0 34px; }
.ew-aide-etape::before { content: counter(etape); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--ew-primaire); color: #fff; font-weight: 800; font-size: 18px; line-height: 38px; text-align: center; box-shadow: 0 4px 10px rgba(79,70,229,.3); }
.ew-aide-etape > h3 { margin: 4px 0 8px; font-size: 20px; font-weight: 800; color: var(--ew-encre); }
.ew-aide-etape > p { max-width: 760px; }
.ew-aide-capture { margin: 14px 0 18px; }
.ew-aide-capture img { max-width: 100%; height: auto; border: 1px solid var(--ew-bord); border-radius: var(--ew-rayon-sm); box-shadow: var(--ew-ombre); background: var(--ew-surface); }
.ew-aide-capture figcaption { margin-top: 8px; color: var(--ew-discret); font-size: 14px; }
.ew-aide-num { display: inline-block; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: #e11d48; color: #fff; font-weight: 800; font-size: 13px; line-height: 22px; text-align: center; vertical-align: 1px; }
.ew-aide-table > tbody > tr > td:first-child { white-space: nowrap; width: 190px; vertical-align: top !important; }
.ew-aide-liens { padding-left: 20px; }
.ew-aide-retour { margin-top: 28px; }
@media (max-width: 767px) { .ew-aide-etape { padding-left: 0; padding-top: 48px; } .ew-aide-table > tbody > tr > td:first-child { white-space: normal; width: auto; } }

/* ---------- champs de formulaire : le texte ne doit jamais être coupé (Chrome) ----------
   Une hauteur fixe + un remplissage vertical + l'interligne de Bootstrap peuvent laisser moins de place que la ligne de texte :
   Chrome coupe alors le bas des lettres. Ici le remplissage vertical tombe à 0 et le navigateur centre le texte. */
input.form-control:not([type="file"]):not([type="color"]):not([type="range"]):not([type="checkbox"]):not([type="radio"]),
select.form-control { padding-top: 0; padding-bottom: 0; line-height: normal; }
select.form-control { text-overflow: ellipsis; }
textarea.form-control { padding-top: 8px; padding-bottom: 8px; line-height: 1.5; }