/* Thème de l'admin aligné sur le site public (Gotham, turquoise, noir, angles droits, sans ombre).
   Chargé après admin.css : il en surcharge les variables et les composants. */

@font-face { font-family: 'Gotham'; src: url('fonts/gotham/gotham-light.otf') format('opentype'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Gotham'; src: url('fonts/gotham/gotham-book.otf') format('opentype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Gotham'; src: url('fonts/gotham/gotham-medium.otf') format('opentype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Gotham'; src: url('fonts/gotham/gotham-bold.otf') format('opentype'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Gotham'; src: url('fonts/gotham/gotham-black.ttf') format('truetype'); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Gotham'; src: url('fonts/gotham/gotham-ultra.otf') format('opentype'); font-weight: 900; font-style: normal; font-display: swap; }

:root {
	--moz-navy: #00858a;        /* couleur principale (turquoise foncé du site) */
	--moz-navy-dark: #00676b;
	--moz-orange: #48d3d3;      /* accent clair */
	--moz-orange-dark: #00858a;
	--moz-lime: #c6ed7a;
	--moz-border: #cfcfd5;
	--moz-bg-input: #f7f6f4;
	--moz-text: #0e0e10;
	--moz-text2: #3a3a40;
	--moz-muted: #6b6b73;
	--moz-radius: 0;
}

body, input, select, textarea, button { font-family: 'Gotham', sans-serif; }
h1, h2, h3, .brand, .btn, .login-box .brand-row .name, .moz-dp-label, .stat-box h3, .admin-topbar h1 { font-family: 'Gotham', sans-serif; }
body { background: #fff; color: var(--moz-text); }

/* angles droits partout, sauf avatars et pastilles de couleur */
*, *::before, *::after { border-radius: 0 !important; }
.gg-avatar, .gg-avatar img, .moz-swatch, .moz-classeur-numero { border-radius: 50% !important; }

/* barre latérale : turquoise du bandeau du site */
.sidebar { background: var(--moz-navy); }
.sidebar nav a, .nav-group summary { color: #fff; font-weight: 500; }
.sidebar nav a:hover, .nav-group summary:hover { background: rgba(0,0,0,.18); color: #fff; }
.sidebar nav a.active { background: var(--moz-lime); color: #0e0e10; font-weight: 700; }
.sidebar nav .nav-section { color: rgba(255,255,255,.7); }
.nav-subitems { border-left-color: rgba(255,255,255,.45); }
.nav-subitems a.nav-branch::before { background: rgba(255,255,255,.45); }
.nav-subitems a.nav-branch.active::before { background: var(--moz-lime); }
.sidebar > a { color: rgba(255,255,255,.85) !important; }

/* barre du haut */
.admin-topbar { border-bottom: 2px solid #0e0e10; }
.admin-topbar h1, .gg-topbar-ident .gg-topbar-company { color: #0e0e10; }
.admin-topbar h1 { font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: 16px; }
.admin-breadcrumb a:hover { color: var(--moz-navy); }
.admin-user-menu .menu { border: 2px solid #0e0e10; box-shadow: none; }
.admin-user-menu .menu a:hover { background: rgba(72,211,211,.25); }
.gg-topstats .stat { border: 1px solid #0e0e10; background: #fff; }
.gg-topstats .stat:hover { box-shadow: none; transform: none; background: rgba(72,211,211,.2); }
.gg-topstats .stat.blue, .gg-topstats .stat.orange { background: #fff; border-color: #0e0e10; color: var(--moz-muted); }
.gg-topstats .stat.blue b, .gg-topstats .stat.orange b { color: var(--moz-navy); }

/* titres de page */
.page-header h1 { color: #0e0e10; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }

/* boutons : noirs, capitales, comme le site */
.btn { background: #0e0e10; color: #fff; border: 2px solid #0e0e10; text-transform: uppercase; letter-spacing: .04em; font-weight: 500; font-family: 'Gotham', sans-serif; }
.btn:hover { background: var(--moz-navy); border-color: var(--moz-navy); color: #fff; }
.btn-secondary { background: transparent; color: #0e0e10; border: 2px solid #0e0e10; }
.btn-secondary:hover { background: #0e0e10; color: #fff; }
.btn-danger { background: #c0392b; border-color: #c0392b; color: #fff; }
.btn-danger:hover { background: #962d22; border-color: #962d22; }
.btn-icon { background: #fff; color: #0e0e10; border: 1px solid #0e0e10; }
.btn-icon:hover { background: #0e0e10; color: #fff; border-color: #0e0e10; }
.btn-icon.danger { color: #c0392b; border-color: #c0392b; }
.btn-icon.danger:hover { background: #c0392b; color: #fff; }

/* cartes et blocs : filet noir, sans ombre */
.card, .stat-box, .admin-table-wrap, .moz-section-card, .moz-classeur-card { background: #fff; border: 1px solid #0e0e10; box-shadow: none; }
.stat-box:hover, .moz-section-card:hover, .moz-classeur-card:hover { transform: none; box-shadow: none; border-color: var(--moz-navy); background: rgba(72,211,211,.12); }
.stat-box h3, .card h2, .admin-card-head h2, .moz-section-card .label { color: #0e0e10; }
.card h2, .admin-card-head { border-bottom: 1px solid #0e0e10; }
.moz-section-card .icon { background: var(--moz-navy); color: #fff; }
.admin-table-wrap { padding: 0; }

/* tableaux */
table th { color: #0e0e10; border-bottom: 2px solid #0e0e10; font-weight: 700; }
table th, table td { border-bottom-color: #e6e6ea; }
table tr:hover td { background: rgba(72,211,211,.12); }
table td.name-cell { color: #0e0e10; }
.dt-filter-row th { background: var(--moz-bg-input); border-bottom: 1px solid #0e0e10 !important; }
table.dataTable tbody tr.selected td { background: rgba(72,211,211,.3) !important; }
table.dataTable tbody tr.selected td:first-child { box-shadow: inset 4px 0 0 #0e0e10; }
table.dataTable thead th.sorting_asc::after, table.dataTable thead th.sorting_desc::after { color: var(--moz-navy); }
.dataTables_paginate .paginate_button { border: 1px solid #0e0e10; }
.dataTables_paginate .paginate_button:hover { background: rgba(72,211,211,.25); }
.dataTables_paginate .paginate_button.current { background: #0e0e10; color: #fff !important; }
.dt-btn { border: 1px solid #0e0e10 !important; color: #0e0e10 !important; }
.dt-btn:hover { background: rgba(72,211,211,.25) !important; }

/* formulaires : champs à filet noir */
form label { font-weight: 500; text-transform: uppercase; font-size: 11.5px; letter-spacing: .05em; color: var(--moz-text2); }
form input, form select, form textarea, .dataTables_length select, .dataTables_filter input { border: 1px solid #0e0e10; background-color: #fff; color: #0e0e10; }
form input:focus, form select:focus, form textarea:focus, .dataTables_filter input:focus { outline: none; border-color: var(--moz-navy); box-shadow: inset 0 0 0 1px var(--moz-navy); }
form input[type=checkbox], form input[type=radio] { accent-color: var(--moz-navy); }

/* pastilles d'état */
.badge { text-transform: uppercase; letter-spacing: .04em; font-size: 10.5px; border: 1px solid currentColor; }
.alert { border: 1px solid currentColor; }

/* onglets */
.moz-tabs { border-bottom: 2px solid #0e0e10; }
.moz-tab { text-transform: uppercase; letter-spacing: .04em; color: var(--moz-muted); border-bottom: 4px solid transparent; margin-bottom: -2px; }
.moz-tab.active { color: #0e0e10; border-bottom-color: var(--moz-navy); }

/* fenêtres modales */
.admin-modal-overlay { background: rgba(0,0,0,.55); }
.admin-modal { border: 2px solid #0e0e10; box-shadow: none; }
.admin-modal h3 { color: #0e0e10; text-transform: uppercase; letter-spacing: .03em; }

/* sélecteur de date, éditeur, listes déroulantes */
.moz-dp-panel, .moz-desig-dropdown, .moz-classeur-menu { border: 2px solid #0e0e10; box-shadow: none; }
.moz-dp-day:hover, .moz-desig-dropdown-item:hover, .moz-classeur-menu a:hover, .moz-classeur-menu button:hover { background: rgba(72,211,211,.25); }
.moz-dp-day.selected { background: #0e0e10; }
.moz-dp-label, .moz-dp-header button { color: #0e0e10; }
.moz-editor .ql-toolbar.ql-snow, .moz-editor .ql-container.ql-snow { border-color: #0e0e10; }
.moz-ligne-desig textarea { border-color: #0e0e10; }

/* arborescence et récapitulatifs */
.moz-tree-header:hover, .moz-tree-file:hover { background: rgba(72,211,211,.15); }
.moz-tree-header .icon { color: var(--moz-navy); }
.gg-recap tr.total td { border-top: 2px solid #0e0e10; color: #0e0e10; }

/* interrupteurs et pas-à-pas : carrés */
.moz-toggle-track { background: #cfcfd5; }
.moz-toggle input:checked + .moz-toggle-track { background: var(--moz-navy); }
.moz-toggle-thumb { box-shadow: none; }
.moz-stepper-btn, .moz-stepper input[type="number"], .moz-remember-box { border: 1px solid #0e0e10; }
.moz-remember-check input:checked + .moz-remember-box { background: #0e0e10; border-color: #0e0e10; }

/* connexion : bandeau turquoise comme l'en-tête du site, carte blanche à filet noir */
body.login-page { display: flex; flex-direction: column; min-height: 100vh; background: #e5ebeb; }
.login-top { display: flex; align-items: center; gap: 14px; height: 80px; padding: 0 35px; background: #009294; color: #fff; flex-shrink: 0; }
.login-top img { height: 36px; width: auto; display: block; }
.login-slogan { display: inline-flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 500; white-space: nowrap; }
.login-slogan span { opacity: .7; }
.login-wrap { flex: 1; min-height: 0; background: transparent; padding: 40px 20px 60px; }
.login-box { width: 440px; max-width: 100%; padding: 44px 40px 36px; border: 2px solid #0e0e10; background: #fff; box-shadow: none; }
.login-eyebrow { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--moz-navy); text-align: center; }
.login-box h1 { margin: 0 0 30px; color: #0e0e10; font-size: 38px; line-height: 40px; font-weight: 700; text-transform: none; letter-spacing: 0; text-align: center; }
.login-box .btn { width: 100%; justify-content: center; text-align: center; min-height: 54px; background: #0e0e10; border-color: #0e0e10; color: #fff; font-size: 15px; }
.login-box .btn:hover { background: var(--moz-navy); border-color: var(--moz-navy); }
.login-back { margin: 24px 0 0; text-align: center; font-size: 12px; }
.login-back a { color: #0e0e10; text-decoration: underline; }
.login-back a:hover { color: var(--moz-navy); }
@media (max-width: 600px) {
	.login-top { padding: 0 20px; }
	.login-slogan { display: none; }
	.login-box { padding: 32px 22px 28px; }
	.login-box h1 { font-size: 28px; line-height: 30px; }
}

/* liens dans le contenu */
.admin-content a:not(.btn):not(.btn-icon):hover { color: var(--moz-navy); }
