/* PJTF – Styles custom (export Sass → CSS) */
/* Note: Tailwind n'est pas inclus ici. */

@charset "UTF-8";
/* PJTF – CSS export depuis Sass (sans Tailwind). */
/* Généré automatiquement. */
/* Eric Meyer Reset 2.0 (SCSS version) */
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
    display: block;
}

body {
    line-height: 1;
    font-family: "Roboto", sans-serif;
    background-color: #f9f9f9;
    color: #1a1a1a;
}

ol,
ul {
    list-style: none;
}

blockquote,
q {
    quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
    content: "";
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

h1 {
    font-size: 50px;
}

.pjtf-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: auto;
    padding-left: 16px;
    padding-right: 16px;
}
@media (min-width: 640px) {
    .pjtf-header {
        padding-left: 24px;
        padding-right: 24px;
    }
}
@media (min-width: 1024px) {
    .pjtf-header {
        padding-left: 40px;
        padding-right: 40px;
    }
}

.pjtf-logo {
    display: flex;
    justify-content: center;
}
.pjtf-logo img {
    height: 200px;
    object-fit: contain;
}
@media (max-width: 768px) {
    .pjtf-logo img {
        height: 150px;
    }
}

.pjtf-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: nowrap;
}
@media (max-width: 480px) {
    .pjtf-actions {
        flex-wrap: wrap;
    }
}
.pjtf-actions .pjtf-btn,
.pjtf-actions .btn-retour,
.pjtf-actions .btn-retour-preform,
.pjtf-actions .btn-scan,
.pjtf-actions .btn-submit,
.pjtf-actions .btn-scan-back,
.pjtf-actions .btn-retour-historique {
    white-space: nowrap;
    font-size: 0.9rem;
    padding: 8px 14px;
    border-radius: 8px;
    line-height: 1.1;
}
@media (max-width: 380px) {
    .pjtf-actions .pjtf-btn,
    .pjtf-actions .btn-retour,
    .pjtf-actions .btn-retour-preform,
    .pjtf-actions .btn-scan,
    .pjtf-actions .btn-submit,
    .pjtf-actions .btn-scan-back,
    .pjtf-actions .btn-retour-historique {
        font-size: 0.85rem;
        padding: 6px 12px;
    }
}

.pjtf-btn,
.btn-retour,
.btn-retour-preform,
.btn-scan,
.btn-submit,
.btn-scan-back,
.btn-retour-historique {
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    display: inline-block;
    transition: 0.2s;
    border: none;
}
.pjtf-btn.primary,
.primary.btn-retour,
.primary.btn-retour-preform,
.primary.btn-scan,
.primary.btn-submit,
.primary.btn-scan-back,
.primary.btn-retour-historique,
.pjtf-btn.admin,
.admin.btn-retour,
.admin.btn-retour-preform,
.admin.btn-scan,
.admin.btn-submit,
.admin.btn-scan-back,
.admin.btn-retour-historique {
    background-color: #007bff;
    color: #fff;
}
.pjtf-btn.primary:hover,
.primary.btn-retour:hover,
.primary.btn-retour-preform:hover,
.primary.btn-scan:hover,
.primary.btn-submit:hover,
.primary.btn-scan-back:hover,
.primary.btn-retour-historique:hover,
.pjtf-btn.admin:hover,
.admin.btn-retour:hover,
.admin.btn-retour-preform:hover,
.admin.btn-scan:hover,
.admin.btn-submit:hover,
.admin.btn-scan-back:hover,
.admin.btn-retour-historique:hover {
    background-color: #0056b3;
}
.pjtf-btn.logout,
.logout.btn-retour,
.logout.btn-retour-preform,
.logout.btn-scan,
.logout.btn-submit,
.logout.btn-scan-back,
.logout.btn-retour-historique {
    background-color: #dc3545;
    color: #fff;
}
.pjtf-btn.logout:hover,
.logout.btn-retour:hover,
.logout.btn-retour-preform:hover,
.logout.btn-scan:hover,
.logout.btn-submit:hover,
.logout.btn-scan-back:hover,
.logout.btn-retour-historique:hover {
    background-color: #b02a37;
}

.btn-retour,
.btn-retour-preform,
.btn-scan,
.btn-submit,
.btn-scan-back,
.btn-retour-historique {
    background: #1a73e8;
    box-shadow: 0 6px 14px rgba(26, 115, 232, 0.18);
    color: #fff;
}
.btn-retour:hover,
.btn-retour-preform:hover,
.btn-scan:hover,
.btn-submit:hover,
.btn-scan-back:hover,
.btn-retour-historique:hover {
    background: #1558b0;
}

.logout-button {
    background-color: #dc3545;
    color: #fff;
    font-size: 15px;
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition:
        background-color 0.3s ease,
        transform 0.2s ease;
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.15);
}
.logout-button:hover {
    background-color: #b02a37;
    transform: scale(1.03);
}

.menu-card,
.pjtf-card {
    background-color: #fff;
    border-radius: 14px;
    padding: 28px 20px;
    width: 280px;
    text-decoration: none;
    color: #1a1a1a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
    text-align: center;
}
.menu-card h2,
.pjtf-card h2 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: #1a73e8;
}
.menu-card p,
.pjtf-card p {
    font-size: 0.95rem;
    color: #6b7280;
}
.menu-card:hover,
.pjtf-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.pjtf-cards,
.menu-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 20px;
}

.form-styled {
    background-color: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.form-styled input[type="text"] {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 16px;
}
.form-styled input[type="text"]::placeholder {
    color: #6b7280;
}
.form-styled input[type="text"]:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.25);
}
.form-styled button {
    padding: 12px;
    background-color: #1a73e8;
    color: #fff;
    font-weight: bold;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}
.form-styled button:hover {
    background-color: #1558b0;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 16px;
}
.checkbox-group input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.2);
}

.select-chantier {
    width: 100%;
    max-width: 320px;
    padding: 12px 14px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #fff;
    color: #1a1a1a;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg fill='black' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 7l3-3 3 3m0 6l-3 3-3-3'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}
.select-chantier:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}

.scan-form {
    max-width: 100%;
    margin: 40px auto;
    padding: 24px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.scan-form label {
    font-weight: 600;
    font-size: 0.95rem;
}
.scan-form input[type="file"],
.scan-form select {
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    background: #f9fafb;
}

.login-fullscreen {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #ffffff;
    padding: 20px;
}

.login-wrapper {
    text-align: center;
    max-width: 400px;
    width: 100%;
}

.login-logo {
    display: flex;
    justify-content: center;
}
.login-logo img {
    max-width: 200px;
    height: auto;
    margin-bottom: 30px;
}

.login-box {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.login-box h1 {
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
}
.login-box label {
    display: block;
    text-align: left;
    font-weight: bold;
    margin-top: 10px;
    margin-bottom: 5px;
    color: #444;
}
.login-box .form-input {
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    margin-bottom: 15px;
    font-size: 15px;
    box-sizing: border-box;
}
.login-box button {
    width: 100%;
    padding: 12px;
    background-color: #007bff;
    color: #fff;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
}
.login-box button:hover {
    background-color: #0056b3;
}
.login-box .login-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0 20px;
}
.login-box .login-remember label {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0;
    background: transparent;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
}
.login-box .login-remember input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #007bff;
}

.error {
    color: red;
    background: #ffeaea;
    padding: 10px;
    border: 1px solid #ff5a5a;
    border-radius: 6px;
    margin-bottom: 15px;
}

.punch-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 300px);
    padding: 40px 20px;
    text-align: center;
    background-color: #f8fafc;
    justify-content: center;
}
.punch-wrapper .punch-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 30px;
}
.punch-wrapper .punch-button {
    background-color: #007bff;
    color: #fff;
    padding: 16px 32px;
    font-size: 1.2rem;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    justify-content: center;
}
.punch-wrapper .punch-button:hover {
    background-color: #0056b3;
}

.alert-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px auto;
    max-width: 500px;
    text-align: center;
    font-weight: 500;
}

/* PJTF — Schedule PDF (scoped, mobile-first, accordéon mobile-only) */
.page-schedule {
    /* Palette PJTF */
    --bg: #f6f8fb;
    --card: #fff;
    --text: #0f172a;
    --muted: #64748b;
    --border: #e5e7eb;
    --blue: #004080;
    --blue-600: #00366c;
    --ring: rgba(0, 64, 128, 0.18);
    background: var(--bg);
    color: var(--text);
    min-height: 100svh;
    /* ===== Header ===== */
}
.page-schedule .ps-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    background: rgba(246, 248, 251, 0.9);
    backdrop-filter: saturate(1.05) blur(6px);
}
.page-schedule {
    /* ===== Boutons (branchements vers _buttons.scss + fallback local) ===== */
    /* Si .btn / .btn--primary / .btn--neutral existent, on hérite.
     Sinon, les règles fallback ci-dessous assurent le rendu PJTF. */
}
.page-schedule {
    /* Fallback local (si les @extend n’accrochent pas) */
}
.page-schedule .btn-retour-preform {
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    border-radius: 12px;
    font-weight: 700;
    padding: 10px 14px;
    line-height: 1;
    transition:
        border-color 0.15s,
        box-shadow 0.15s,
        background-color 0.15s,
        transform 0.06s ease-in-out;
}
.page-schedule .btn-retour-preform:hover {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px var(--ring);
}
.page-schedule .btn-retour-preform:active {
    transform: translateY(1px);
}
.page-schedule .btn-retour-preform.primary,
.page-schedule .ps-import .btn-retour-preform {
    background: var(--blue);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 800;
    padding: 10px 14px;
    transition:
        background-color 0.15s,
        box-shadow 0.15s,
        transform 0.06s ease-in-out;
}
.page-schedule .btn-retour-preform.primary:hover,
.page-schedule .ps-import .btn-retour-preform:hover {
    background: var(--blue-600);
    box-shadow: 0 0 0 4px var(--ring);
}
.page-schedule .btn-retour-preform.primary:active,
.page-schedule .ps-import .btn-retour-preform:active {
    transform: translateY(1px);
}
.page-schedule {
    /* ===== Container ===== */
}
.page-schedule .ps-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 12px;
    display: grid;
    gap: 12px;
}
.page-schedule {
    /* ===== Cards ===== */
}
.page-schedule .ps-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}
.page-schedule .ps-title {
    margin: 0;
    padding: 12px 14px 0;
    font-size: clamp(1rem, 0.96rem + 0.2vw, 1.08rem);
    font-weight: 800;
}
.page-schedule {
    /* ===== Alerts ===== */
}
.page-schedule .ua-alert {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 0.95rem;
    background: #fff;
}
.page-schedule .ua-alert.success {
    border-color: #86efac;
    background: #f0fdf4;
    color: #166534;
}
.page-schedule .ua-alert.error {
    border-color: #fecaca;
    background: #fef2f2;
    color: #991b1b;
}
.page-schedule .ps-empty {
    border-radius: 12px;
    color: var(--muted);
    text-align: center;
    padding: 16px;
    background: #fff;
}
.page-schedule {
    /* ===== Import ===== */
}
.page-schedule .ps-import {
    padding: 10px;
}
.page-schedule .ps-import-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 8px 10px 12px;
}
.page-schedule .ps-file {
    position: relative;
    display: inline-block;
    width: 100%;
    cursor: pointer;
    border-radius: 12px;
}
.page-schedule .ps-file input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}
.page-schedule .ps-file span {
    display: block;
    width: 100%;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 0.95rem;
    transition:
        box-shadow 0.15s,
        border-color 0.15s;
}
.page-schedule .ps-file:focus-within span,
.page-schedule .ps-file:hover span {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px var(--ring);
}
.page-schedule {
    /* ===== Viewer ===== */
}
.page-schedule .ps-view {
    padding: 10px;
}
.page-schedule .ps-view-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 10px 0;
}
.page-schedule .ps-frame {
    border-radius: 12px;
    overflow: hidden;
    background: #111;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.08);
    border: 1px solid #0b1220;
}
.page-schedule .ps-iframe {
    display: block;
    width: 100%;
    height: 72dvh;
    border: 0;
    background: #fff;
}
.page-schedule {
    /* ===== Accordéon mobile-only ===== */
}
.page-schedule .ps-title-desktop {
    display: none;
}
.page-schedule .ps-acc {
    position: relative;
}
.page-schedule .ps-acc-toggle {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.page-schedule .ps-acc-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 5px; /* pas de border-bottom -> pas de ligne */
    cursor: pointer;
    user-select: none;
}
.page-schedule .ps-acc-title {
    font-weight: 800;
    font-size: clamp(1rem, 0.96rem + 0.2vw, 1.08rem);
    margin: 0;
}
.page-schedule .ps-acc-summary .chev {
    transition: transform 0.2s ease;
}
.page-schedule .ps-acc-content {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition:
        max-height 0.25s ease,
        opacity 0.2s ease;
}
.page-schedule .ps-acc-toggle:checked ~ .ps-acc-summary .chev {
    transform: rotate(180deg);
}
.page-schedule .ps-acc-toggle:checked ~ .ps-acc-content {
    max-height: 800px;
    opacity: 1;
}
.page-schedule {
    /* ===== Responsive ===== */
}
@media (max-width: 768px) {
    .page-schedule .ps-container {
        padding: 12px;
    }
    .page-schedule .ps-header {
        flex-wrap: wrap;
        gap: 8px 10px;
    }
    .page-schedule .ps-header .btn-retour-preform {
        width: 100%;
        text-align: center;
    }
    .page-schedule .ps-import-form {
        grid-template-columns: 1fr;
    }
    .page-schedule .ps-iframe {
        height: 70dvh;
    }
    .page-schedule {
        /* ✅ Pinch-zoom uniquement sur le calendrier en mobile */
    }
    .page-schedule .ps-frame,
    .page-schedule .ps-iframe {
        touch-action: pinch-zoom; /* autorise le pinch ici seulement */
        -webkit-user-zoom: zoom; /* Safari iOS */
        -webkit-overflow-scrolling: touch;
    }
}
@media (min-width: 769px) {
    .page-schedule .ps-title-desktop {
        display: block;
    }
    .page-schedule .ps-acc-summary {
        display: none;
    }
    .page-schedule .ps-acc-content {
        max-height: none !important;
        opacity: 1 !important;
        overflow: visible;
    }
}
@media (min-width: 900px) {
    .page-schedule .ps-iframe {
        height: 82vh;
    }
    .page-schedule .ps-container {
        gap: 14px;
        padding: 16px;
    }
    .page-schedule .ps-title {
        padding: 14px 16px 0;
    }
}

/* Pinch-zoom interne UNIQUEMENT dans le calendrier (mobile) */
.page-schedule .ps-pinch-wrap {
    position: relative;
    overflow: hidden;
    height: 72dvh; /* reprend ta hauteur d’iframe */
    border-radius: 12px;
    background: #fff;
    touch-action: none; /* on gère pinch + pan à la main */
}
.page-schedule .ps-pinch-inner {
    width: 100%;
    height: 100%;
    transform-origin: center center;
    will-change: transform;
}
.page-schedule {
    /* l’iframe garde tes styles existants (.ps-iframe) */
}

/* Ajuste la hauteur sur desktop comme tu le fais déjà */
@media (min-width: 900px) {
    .page-schedule .ps-pinch-wrap {
        height: 82vh;
    }
}
/* (facultatif) si tu avais laissé ces règles, tu peux les retirer, on n’en a plus besoin
@media (max-width: 768px) {
  .page-schedule .ps-frame,
  .page-schedule .ps-iframe {
    touch-action: pinch-zoom; // inutile désormais
  }
}
*/
/* resources/sass/pages/_managerteam.scss */
/* ===== PJTF — Manager Team (clean + aéré) ===== */
.pjtf-page.pjtf-mt-team {
    background: #f6f8fb;
    color: #1a1a1a;
    min-height: 100dvh;
    padding: clamp(12px, 2vw, 22px);
}
.pjtf-page.pjtf-mt-team .pjtf-container {
    max-width: min(1180px, 100%);
    margin: 0 auto;
}
.pjtf-page.pjtf-mt-team .pjtf-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
    padding: 10px 12px;
    background: color-mix(in srgb, #fff 80%, transparent);
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}
.pjtf-page.pjtf-mt-team .pjtf-toolbar__left,
.pjtf-page.pjtf-mt-team .pjtf-toolbar__right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.pjtf-page.pjtf-mt-team .pjtf-title {
    margin: 0;
    font-weight: 800;
    color: #0b2d56;
    letter-spacing: 0.2px;
    font-size: clamp(18px, 2.2vw, 24px);
}
.pjtf-page.pjtf-mt-team .pjtf-btn,
.pjtf-page.pjtf-mt-team .btn-retour,
.pjtf-page.pjtf-mt-team .btn-retour-preform,
.pjtf-page.pjtf-mt-team .btn-scan,
.pjtf-page.pjtf-mt-team .btn-submit,
.pjtf-page.pjtf-mt-team .btn-scan-back,
.pjtf-page.pjtf-mt-team .btn-retour-historique {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid transparent;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition:
        transform 0.12s,
        background 0.12s,
        box-shadow 0.12s,
        filter 0.12s;
}
.pjtf-page.pjtf-mt-team .pjtf-btn--sm {
    padding: 6px 10px;
    font-size: 13px;
}
.pjtf-page.pjtf-mt-team .pjtf-btn:active,
.pjtf-page.pjtf-mt-team .btn-retour:active,
.pjtf-page.pjtf-mt-team .btn-retour-preform:active,
.pjtf-page.pjtf-mt-team .btn-scan:active,
.pjtf-page.pjtf-mt-team .btn-submit:active,
.pjtf-page.pjtf-mt-team .btn-scan-back:active,
.pjtf-page.pjtf-mt-team .btn-retour-historique:active {
    transform: translateY(1px);
}
.pjtf-page.pjtf-mt-team .pjtf-btn--primary {
    background: #007bff;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.pjtf-page.pjtf-mt-team .pjtf-btn--primary:hover {
    filter: brightness(1.05);
}
.pjtf-page.pjtf-mt-team .pjtf-input {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 14px;
    min-height: 38px;
}
.pjtf-page.pjtf-mt-team .pjtf-input--sm {
    padding: 6px 8px;
    min-height: 34px;
}
.pjtf-page.pjtf-mt-team {
    /* Card */
}
.pjtf-page.pjtf-mt-team .mt-card {
    margin-bottom: 28px; /* espace entre les cartes d'employés */
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}
.pjtf-page.pjtf-mt-team .mt-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 14px 16px;
}
.pjtf-page.pjtf-mt-team .mt-card__title {
    font-weight: 700;
}
.pjtf-page.pjtf-mt-team .mt-card__total {
    color: #6b7280;
}
.pjtf-page.pjtf-mt-team .mt-card__total b {
    color: #1a1a1a;
}
.pjtf-page.pjtf-mt-team {
    /* Table */
}
.pjtf-page.pjtf-mt-team table.table {
    margin: 0;
    table-layout: fixed;
    width: 100%;
}
.pjtf-page.pjtf-mt-team table.table thead th {
    background: #fff;
    color: #6b7280;
    font-weight: 800;
    font-size: 13px;
    border-bottom: 1px solid #e5e7eb;
    letter-spacing: 0.2px;
    padding: 12px 16px;
}
.pjtf-page.pjtf-mt-team table.table tbody td {
    font-size: 14px;
    color: #1a1a1a;
    vertical-align: top;
    padding: 18px 16px;
}
.pjtf-page.pjtf-mt-team table.table tbody tr + tr td {
    border-top: 1px dashed #edf0f4;
}
.pjtf-page.pjtf-mt-team table.table tbody tr:hover {
    background: #fafbff;
}
.pjtf-page.pjtf-mt-team table.table .table-warning {
    --bs-table-bg: #fff8e6;
    background: #fff8e6;
}
.pjtf-page.pjtf-mt-team .mt-col-date {
    width: 18%;
}
.pjtf-page.pjtf-mt-team .mt-col-site {
    width: auto;
}
.pjtf-page.pjtf-mt-team .mt-col-loc {
    width: 34%;
}
.pjtf-page.pjtf-mt-team .mt-col-act {
    width: 18%;
}
.pjtf-page.pjtf-mt-team .mt-date {
    font-weight: 700;
    margin-bottom: 6px;
}
.pjtf-page.pjtf-mt-team .mt-time {
    font-size: 12.5px;
    color: #6b7280;
}
.pjtf-page.pjtf-mt-team .mt-address {
    font-weight: 700;
    margin-bottom: 4px;
}
.pjtf-page.pjtf-mt-team .mt-addressFull {
    font-size: 12.5px;
    color: #6b7280;
    margin-bottom: 4px;
}
.pjtf-page.pjtf-mt-team .mt-note {
    font-size: 13px;
}
.pjtf-page.pjtf-mt-team .mt-coords {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12.5px;
    color: #6b7280;
    margin-bottom: 10px;
}
.pjtf-page.pjtf-mt-team .mt-coords__sep {
    opacity: 0.5;
}
.pjtf-page.pjtf-mt-team {
    /* Map intégrée */
}
.pjtf-page.pjtf-mt-team .mt-map-canvas {
    width: 100%;
    height: 220px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
    background: #eef2f7;
}
.pjtf-page.pjtf-mt-team {
    /* Chips + actions */
}
.pjtf-page.pjtf-mt-team .chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12.5px;
    font-weight: 800;
}
.pjtf-page.pjtf-mt-team .chip--neutral {
    background: #eef2f7;
    color: #334155;
    border: 1px solid #e2e8f0;
}
.pjtf-page.pjtf-mt-team .chip--warn {
    background: #fff3d4;
    color: #7c5c00;
    border: 1px solid #f4c55a;
}
.pjtf-page.pjtf-mt-team .mt-actions-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}
.pjtf-page.pjtf-mt-team .mt-actions {
    display: flex;
    gap: 8px;
}
.pjtf-page.pjtf-mt-team .mt-actions .btn.btn-sm,
.pjtf-page.pjtf-mt-team .mt-actions .page-schedule .btn-sm.btn-retour-preform,
.page-schedule .pjtf-page.pjtf-mt-team .mt-actions .btn-sm.btn-retour-preform {
    border-radius: 10px;
    padding: 8px 12px;
}
.pjtf-page.pjtf-mt-team .mt-actions .btn-primary {
    background: #1a73e8;
    border-color: #1a73e8;
}
.pjtf-page.pjtf-mt-team .mt-actions .btn-danger {
    background: #f6f8fb;
    border-color: #dc3545;
}
.pjtf-page.pjtf-mt-team {
    /* Responsive */
}
@media (max-width: 860px) {
    .pjtf-page.pjtf-mt-team table.table thead {
        display: none;
    }
    .pjtf-page.pjtf-mt-team table.table tbody tr {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 10px 8px;
    }
    .pjtf-page.pjtf-mt-team table.table tbody td {
        padding: 0;
    }
    .pjtf-page.pjtf-mt-team table.table tbody td:not(:last-child) {
        padding-bottom: 8px;
    }
    .pjtf-page.pjtf-mt-team table.table tbody td::before {
        content: attr(data-th);
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.4px;
        color: #6b7280;
        font-weight: 800;
        margin-bottom: 3px;
        display: block;
    }
    .pjtf-page.pjtf-mt-team .mt-actions-wrap {
        align-items: flex-start;
    }
}

/* Modal — layout propre */
.mt-modal-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.mt-field .form-label {
    font-weight: 700;
    margin-bottom: 6px;
}

.mt-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 6px;
}

/* ===== Modal modern clean ===== */
.mt-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1200;
}

.mt-modal {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    width: 100%;
    max-width: 460px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: fadeIn 0.2s ease;
}

.mt-modal h3 {
    margin: 0;
    font-weight: 800;
    color: #0b2d56;
}

.mt-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 200px;
}

.mt-field input {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px;
    font-size: 15px;
}

.mt-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* ===== No team message ===== */
.no-team {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80vh;
    text-align: center;
}

.no-team__card {
    background: #fff;
    padding: 40px;
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    max-width: 480px;
}

.no-team__card h2 {
    margin-bottom: 10px;
    font-weight: 800;
    color: #0b2d56;
}

.no-team__card p {
    color: #6b7280;
    margin-bottom: 24px;
}

/* ===== Bouton Retour — même style que bouton Modifier ===== */
.retour-tool {
    display: flex;
    justify-content: center;
    margin: 10px 0 20px;
}
.retour-tool .btn--ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.95rem;
    color: #ffffff;
    background-color: #1a73e8;
    border: none;
    border-radius: 8px;
    padding: 8px 18px;
    text-decoration: none;
    line-height: 1;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(26, 115, 232, 0.25);
}
.retour-tool .btn--ghost:hover {
    background-color: #1669c1;
    box-shadow: 0 3px 8px rgba(26, 115, 232, 0.35);
    transform: translateY(-1px);
}
.retour-tool .btn--ghost:active {
    background-color: #155ab5;
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(26, 115, 232, 0.3);
}
.retour-tool .btn--ghost:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.4);
}

/* =========================================
   Page — Admin > Équipes
   Mobile-first, responsive, accessible
   ========================================= */
@media (prefers-color-scheme: dark) {
    :root {
        --e-bg: #0f1420;
        --e-panel: #121826;
        --e-border: #243043;
        --e-muted: #9aa7bd;
        --e-text: #e5ecff;
        --e-brand: #58a6ff;
        --e-danger: #f87171;
        --e-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    }
}
:root {
    --e-bg: #f6f8fb;
    --e-panel: #ffffff;
    --e-border: #e5e7eb;
    --e-muted: #6b7280;
    --e-text: #111827;
    --e-brand: #1a73e8;
    --e-danger: #ef4444;
    --e-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

/* ---- Page container (optionnel si tu as déjà un wrapper) */
.pjtf-container {
    background: var(--e-bg);
    border-radius: 16px;
    padding: clamp(10px, 2.5vw, 20px);
}

/* ---- Toolbar (titre + bouton “Nouvelle équipe”) */
.al-toolbar {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.al-toolbar .pjtf-title {
    margin: 0;
    font-size: clamp(18px, 2.2vw, 22px);
    color: var(--e-text);
    letter-spacing: 0.2px;
}
.al-toolbar .pjtf-btn--primary {
    padding: 10px 14px;
    border-radius: 12px;
    background: var(--e-brand);
    border: 1px solid color-mix(in oklab, var(--e-brand) 80%, #000);
    color: #fff;
    font-weight: 600;
    transition:
        transform 0.08s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}
.al-toolbar .pjtf-btn--primary:hover {
    box-shadow: 0 6px 16px rgba(26, 115, 232, 0.22);
    transform: translateY(-1px);
}
.al-toolbar .pjtf-btn--primary:active {
    transform: translateY(0);
}
.al-toolbar .pjtf-btn--primary:focus-visible {
    outline: 2px solid color-mix(in oklab, var(--e-brand) 70%, white);
    outline-offset: 2px;
}

/* ---- Grille responsive des colonnes */
.al-grid {
    display: grid;
    grid-template-columns: 1fr; /* mobile */
    gap: 16px;
}
@media (min-width: 640px) {
    .al-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 960px) {
    .al-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (min-width: 1280px) {
    .al-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ---- Colonne d’équipe */
.al-col {
    background: var(--e-panel);
    border: 1px solid var(--e-border);
    border-radius: 14px;
    box-shadow: var(--e-shadow);
    display: flex;
    flex-direction: column;
    min-height: 180px;
    overflow: hidden;
    /* entête colonne */
}
.al-col__header {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid var(--e-border);
    background:
        radial-gradient(
            1200px 80px at -10% 0%,
            color-mix(in oklab, var(--e-brand) 6%, transparent) 0%,
            transparent 70%
        ),
        transparent;
}
.al-col__header h2 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--e-text);
    letter-spacing: 0.2px;
    max-width: 70%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.al-col__header .al-actions {
    display: inline-flex;
    gap: 10px;
    align-items: center;
}
.al-col__header .al-actions .al-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 12px;
    color: var(--e-text);
    background: color-mix(in oklab, var(--e-border) 45%, transparent);
}
.al-col__header .al-actions .al-del {
    border: 1px solid var(--e-border);
    background: color-mix(in oklab, var(--e-danger) 8%, var(--e-panel));
    color: color-mix(in oklab, var(--e-danger) 85%, #fff);
    width: 32px;
    height: 32px;
    border-radius: 10px;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition:
        background 0.15s ease,
        transform 0.08s ease,
        border-color 0.15s ease;
}
.al-col__header .al-actions .al-del:hover {
    background: color-mix(in oklab, var(--e-danger) 14%, var(--e-panel));
    border-color: color-mix(in oklab, var(--e-danger) 45%, var(--e-border));
    transform: translateY(-1px);
}
.al-col__header .al-actions .al-del:active {
    transform: translateY(0);
}
.al-col__header .al-actions .al-del:focus-visible {
    outline: 2px solid color-mix(in oklab, var(--e-danger) 60%, white);
    outline-offset: 2px;
}

/* ---- Liste d’utilisateurs dans une colonne */
.team-list {
    list-style: none;
    margin: 0;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 120px;
    /* état "drop target" (visuel quand on survole avec un drag) */
}
.team-list.sortable-ghost,
.team-list.sortable-chosen {
    /* noop, mais on laisse la porte ouverte */
}
.team-list {
    /* petit filet en bas pour le scroll-inset visuel */
}
.team-list:after {
    content: "";
    display: block;
    height: 2px;
    margin-top: 4px;
    background: linear-gradient(
        90deg,
        transparent,
        color-mix(in oklab, var(--e-border) 70%, transparent),
        transparent
    );
    border-radius: 999px;
}

/* ---- Carte utilisateur */
.user-card {
    margin: 0;
}
.user-card__inner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: color-mix(in oklab, var(--e-panel) 85%, var(--e-bg));
    border: 1px solid var(--e-border);
    border-radius: 12px;
    padding: 10px;
    transition:
        border-color 0.2s ease,
        transform 0.08s ease,
        background 0.2s ease;
}
.user-card__inner:hover {
    border-color: color-mix(in oklab, var(--e-brand) 40%, var(--e-border));
}
.user-card .user-handle {
    cursor: grab;
    font-weight: 700;
    color: var(--e-muted);
    user-select: none;
    display: inline-grid;
    place-items: center;
    width: 18px;
}
.user-card .user-meta {
    display: grid;
    gap: 2px;
    line-height: 1.15;
}
.user-card .user-meta b {
    color: var(--e-text);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.2px;
}
.user-card .user-meta small {
    color: var(--e-muted);
    font-size: 12px;
}
.user-card {
    /* select fallback (mobile) */
}
.user-card .user-move-select {
    margin-left: auto;
    display: none; /* mobile only */
    border: 1px solid var(--e-border);
    border-radius: 10px;
    padding: 6px 8px;
    background: var(--e-panel);
    color: var(--e-text);
    font-size: 13px;
}
.user-card .user-move-select:focus-visible {
    outline: 2px solid color-mix(in oklab, var(--e-brand) 60%, white);
    outline-offset: 2px;
}

/* État pendant le drag */
.drag-ghost {
    opacity: 0.7;
    transform: scale(0.98);
}

/* Item vide */
.user-empty {
    color: var(--e-muted);
    font-style: italic;
    padding: 8px 6px;
}

/* ---- Modal création d’équipe */
.al-modal {
    position: fixed;
    inset: 0;
    background: color-mix(in oklab, #000 45%, transparent);
    display: none; /* toggled inline */
    align-items: center;
    justify-content: center;
    z-index: 80;
}
.al-modal__dialog {
    width: min(520px, 94vw);
    background: var(--e-panel);
    color: var(--e-text);
    border: 1px solid var(--e-border);
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
    padding: 16px 18px;
}
.al-modal__dialog h3 {
    margin: 0 0 8px;
    font-size: 18px;
    letter-spacing: 0.2px;
}
.al-modal .al-field {
    display: grid;
    gap: 6px;
    margin: 10px 0;
}
.al-modal .al-field label {
    color: var(--e-muted);
    font-size: 13px;
}
.al-modal .al-field .pjtf-input {
    border: 1px solid var(--e-border);
    border-radius: 12px;
    background: var(--e-panel);
    color: var(--e-text);
    padding: 10px 12px;
    font-size: 14px;
}
.al-modal .al-field .pjtf-input:focus-visible {
    outline: 2px solid color-mix(in oklab, var(--e-brand) 60%, white);
    outline-offset: 2px;
}
.al-modal__actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 12px;
}
.al-modal__actions .btn,
.al-modal__actions .page-schedule .btn-retour-preform,
.page-schedule .al-modal__actions .btn-retour-preform {
    padding: 9px 12px;
    border-radius: 10px;
}

/* ---- Responsive tweaks */
@media (max-width: 640px) {
    .user-card .user-handle {
        display: none;
    }
    .user-card .user-move-select {
        display: inline-block;
    }
    .al-col__header h2 {
        max-width: 60%;
    }
}
/* ---- Accessibility / motion */
@media (prefers-reduced-motion: reduce) {
    * {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
/* ---- Scrollbar (WebKit) — discret */
.team-list {
    overflow-y: auto;
    max-height: 60vh;
}
.team-list::-webkit-scrollbar {
    width: 10px;
}
.team-list::-webkit-scrollbar-thumb {
    background: color-mix(in oklab, var(--e-border) 70%, transparent);
    border-radius: 10px;
    border: 3px solid transparent;
    background-clip: padding-box;
}
.team-list::-webkit-scrollbar-track {
    background: transparent;
}

/* =========================================
   Alertes de feedback (succès / erreur)
   ========================================= */
.al-alerts {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.al-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 240px;
    max-width: 320px;
    border-radius: 12px;
    padding: 10px 14px;
    color: #fff;
    font-weight: 500;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    animation:
        slideIn 0.3s ease,
        fadeOut 0.3s ease 3.7s forwards;
}
.al-alert--success {
    background: #22c55e;
}
.al-alert {
    /* vert */
}
.al-alert--error {
    background: #ef4444;
}
.al-alert {
    /* rouge */
}
.al-alert--info {
    background: #3b82f6;
}
.al-alert {
    /* bleu */
}

@keyframes slideIn {
    from {
        transform: translateY(-8px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateX(20px);
    }
}
.admin-flex {
    display: flex;
    height: 100vh;
    min-height: 0;
    background: #f8fafc;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
    overflow: hidden;
}
.admin-flex .admin-aside {
    background: #2563eb;
    color: #fff;
    min-width: 270px;
    padding: 32px 20px 32px 32px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    overflow-y: auto;
    height: 100%;
}
.admin-flex .admin-aside .btn-retour {
    display: block;
    text-align: center;
    background: #007bff;
    color: #fff;
    padding: 12px 0;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s;
}
.admin-flex .admin-aside .btn-retour:hover {
    background: #0056b3;
}
.admin-flex .admin-main {
    flex: 1;
    padding: 48px 40px;
    background: #fff;
    overflow-y: auto;
}

@media (max-width: 900px) {
    .admin-flex {
        flex-direction: column;
        height: auto;
    }
    .admin-aside {
        min-width: 0;
        width: 100%;
        max-height: 220px;
        padding: 20px 10px 10px 10px;
    }
    .admin-main {
        padding: 24px 10px;
        min-height: 0;
        max-height: none;
    }
}
@media (max-width: 600px) {
    .admin-aside {
        font-size: 0.95rem;
        max-height: 160px;
    }
    .admin-main h1 {
        font-size: 1.2rem;
    }
}
@media (max-width: 768px) {
    .landing-title {
        font-size: 28px;
    }
    .menu-card {
        width: 90%;
    }
}
@media (max-width: 1024px) {
    .form-styled {
        padding: 30px;
        max-width: 90%;
    }
    .form-styled input[type="text"],
    .form-styled button {
        font-size: 15px;
    }
    .checkbox-group {
        font-size: 15px;
    }
    h2 {
        font-size: 24px;
        text-align: center;
    }
}
@media (max-width: 600px) {
    .form-styled {
        padding: 20px;
        max-width: 95%;
    }
    .form-styled input[type="text"] {
        font-size: 14px;
    }
    .form-styled button {
        font-size: 15px;
        padding: 10px;
    }
    .checkbox-group {
        font-size: 14px;
    }
}
/* === Legacy rules automatically included to preserve behavior === */
/* http://meyerweb.com/eric/tools/css/reset/
   v2.0 | 20110126
   License: none (public domain)
*/
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
    display: block;
}

body {
    line-height: 1;
    font-family: "Roboto", sans-serif;
    background-color: #f9f9f9;
    color: #1a1a1a;
}

ol,
ul {
    list-style: none;
}

blockquote,
q {
    quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
    content: "";
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

.menu-wrapper {
    display: flex;
    height: 1000px;
    justify-content: center;
    align-items: center;
    gap: 25px;
}

.menu1,
.menu2,
.menu3 {
    text-decoration: none;
    color: black;
    font-size: 30px;
}

.menu1:hover,
.menu2:hover,
.menu3:hover {
    color: red;
}

.logo-wrapper {
    width: 400px;
    height: 200px;
}

.logo-index {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.wrapper-elevation {
    height: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 40px;
}

.wrapper-form {
    display: flex;
    flex-direction: column;
}

.elevation-form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.form-styled {
    background-color: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-styled input[type="text"] {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 16px;
}

.form-styled button {
    padding: 12px;
    background-color: #1a73e8;
    color: white;
    font-weight: bold;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

.form-styled button:hover {
    background-color: #1558b0;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 16px;
}

.landing-wrapper {
    text-align: center;
    padding: 50px 20px;
}

.landing-title {
    font-size: 36px;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.landing-subtitle {
    font-size: 18px;
    color: #555;
    margin-bottom: 40px;
}

.menu-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.menu-card {
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    width: 300px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: #1a1a1a;
    transition:
        transform 0.3s,
        box-shadow 0.3s;
}

.menu-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.menu-card h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #1a73e8;
}

.menu-card p {
    font-size: 16px;
    color: #666;
}

/* Login Page Styling */
/* Structure générale */
.login-fullscreen {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #ffffff;
    padding: 20px;
}

/* Conteneur global */
.login-wrapper {
    text-align: center;
    max-width: 400px;
    width: 100%;
}

/* Logo */
.login-logo img {
    max-width: 200px;
    height: auto;
    margin-bottom: 30px;
}

.login-logo {
    display: flex;
    justify-content: center;
}

/* Boîte de connexion */
.login-box {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Titre */
.login-box h1 {
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
}

/* Champs */
.login-box label {
    display: block;
    text-align: left;
    font-weight: bold;
    margin-top: 10px;
    margin-bottom: 5px;
    color: #444;
}

.form-input {
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    margin-bottom: 15px;
    font-size: 15px;
    box-sizing: border-box;
}

/* Bouton */
.login-box button {
    width: 100%;
    padding: 12px;
    background-color: #007bff;
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
}

.login-box button:hover {
    background-color: #0056b3;
}

/* Erreur */
.error {
    color: red;
    background: #ffeaea;
    padding: 10px;
    border: 1px solid #ff5a5a;
    border-radius: 6px;
    margin-bottom: 15px;
}

.logout-form {
    margin-left: auto;
    padding: 10px 20px;
    display: contents;
}

.logout-button {
    background-color: #dc3545;
    color: #fff;
    font-size: 15px;
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition:
        background-color 0.3s ease,
        transform 0.2s ease;
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.15);
}

.logout-button:hover {
    background-color: #b02a37;
    transform: scale(1.03);
}

.alert-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 10px;
    border-radius: 6px;
    color: #155724;
    margin-bottom: 15px;
    text-align: center;
}

.punch-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.punch-card h2 {
    margin-bottom: 10px;
}

.punch-card p {
    margin: 5px 0;
}

.punch-button {
    display: inline-block;
    background-color: #007bff;
    color: #fff;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    margin-bottom: 2rem;
    border: none;
}

.punch-button:hover {
    background-color: #0056b3;
}

.btn-punch-back {
    display: block;
    text-align: center;
    margin-top: 20px;
    background-color: #007bff;
    color: white;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: 0.2s;
    width: 100px;
}

.admin-button {
    background-color: #2563eb;
    color: #fff;
    font-size: 15px;
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    margin-left: 1rem;
    transition:
        background-color 0.3s ease,
        transform 0.2s ease;
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.15);
    text-decoration: none;
    display: inline-block;
    height: 20px;
    margin-top: 10px;
}

.admin-button:hover {
    background-color: #1d4ed8;
    transform: scale(1.03);
}

/* Responsive */
@media (max-width: 768px) {
    .landing-title {
        font-size: 28px;
    }
    .menu-card {
        width: 90%;
    }
}
/* Responsive form layout */
@media (max-width: 1024px) {
    .form-styled {
        padding: 30px;
        max-width: 90%;
    }
    .form-styled input[type="text"],
    .form-styled button {
        font-size: 15px;
    }
    .checkbox-group {
        font-size: 15px;
    }
    h2 {
        font-size: 24px;
        text-align: center;
    }
}
@media (max-width: 600px) {
    .form-styled {
        padding: 20px;
        max-width: 95%;
    }
    .form-styled input[type="text"] {
        font-size: 14px;
    }
    .form-styled button {
        font-size: 15px;
        padding: 10px;
    }
    .checkbox-group {
        font-size: 14px;
    }
    .logo-wrapper {
        width: 100%;
        height: auto;
        display: flex;
        justify-content: center;
        padding: 10px;
    }
    .logo-index {
        max-width: 80%;
        height: auto;
    }
}
/* Responsive admin punches page */
@media (max-width: 900px) {
    .admin-flex {
        flex-direction: column;
        height: auto;
    }
    .admin-aside {
        min-width: 0;
        width: 100%;
        max-height: 220px;
        padding: 20px 10px 10px 10px;
    }
    .admin-main {
        padding: 24px 10px;
        min-height: 0;
        max-height: none;
    }
}
@media (max-width: 600px) {
    .admin-aside {
        font-size: 0.95rem;
        max-height: 160px;
    }
    .admin-main h1 {
        font-size: 1.2rem;
    }
}
.form-punch {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    width: 300px;
}

/* Reset minimal */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* HEADER */
.pjtf-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    height: 200px;
}

.pjtf-log {
    width: 100%;
    height: 100%;
}

.pjtf-logo img {
    height: 200px;
    object-fit: contain;
}

.pjtf-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* MAIN */
.pjtf-main {
    text-align: center;
    padding: 0px 20px 20px 20px;
}

.pjtf-main h1 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.pjtf-subtitle {
    font-size: 1.1rem;
    margin: 30px 0 20px;
    color: #555;
}

/* BUTTONS */
.pjtf-btn,
.btn-retour,
.btn-retour-preform,
.btn-scan,
.btn-submit,
.btn-scan-back,
.btn-retour-historique {
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    display: inline-block;
    transition: 0.2s;
    border: none;
}

.pjtf-btn.primary,
.primary.btn-retour,
.primary.btn-retour-preform,
.primary.btn-scan,
.primary.btn-submit,
.primary.btn-scan-back,
.primary.btn-retour-historique {
    background-color: #007bff;
    color: white;
}

.pjtf-btn.primary:hover,
.primary.btn-retour:hover,
.primary.btn-retour-preform:hover,
.primary.btn-scan:hover,
.primary.btn-submit:hover,
.primary.btn-scan-back:hover,
.primary.btn-retour-historique:hover {
    background-color: #0056b3;
}

.pjtf-btn.admin,
.admin.btn-retour,
.admin.btn-retour-preform,
.admin.btn-scan,
.admin.btn-submit,
.admin.btn-scan-back,
.admin.btn-retour-historique {
    background-color: #007bff;
    color: white;
}

.pjtf-btn.admin:hover,
.admin.btn-retour:hover,
.admin.btn-retour-preform:hover,
.admin.btn-scan:hover,
.admin.btn-submit:hover,
.admin.btn-scan-back:hover,
.admin.btn-retour-historique:hover {
    background-color: #0056b3;
}

.pjtf-btn.logout,
.logout.btn-retour,
.logout.btn-retour-preform,
.logout.btn-scan,
.logout.btn-submit,
.logout.btn-scan-back,
.logout.btn-retour-historique {
    background-color: #dc3545;
    color: white;
}

.pjtf-btn.logout:hover,
.logout.btn-retour:hover,
.logout.btn-retour-preform:hover,
.logout.btn-scan:hover,
.logout.btn-submit:hover,
.logout.btn-scan-back:hover,
.logout.btn-retour-historique:hover {
    background-color: #b02a37;
}

/* CARDS */
.pjtf-cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 20px;
}

.pjtf-card {
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    width: 280px;
    text-decoration: none;
    color: #1a1a1a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition:
        transform 0.3s,
        box-shadow 0.3s;
}

.pjtf-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.pjtf-card h2 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #1a73e8;
}

.pjtf-card p {
    font-size: 0.95rem;
    color: #555;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .pjtf-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        height: fit-content;
    }
    .pjtf-cards {
        flex-direction: column;
        align-items: center;
    }
    .pjtf-logo img {
        height: 150px;
    }
    .pjtf-main h1 {
        font-size: 2rem;
    }
}
/* PUNCH PAGE STYLING */
.punch-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 300px);
    /* header height offset */
    padding: 40px 20px;
    text-align: center;
    background-color: #f8fafc;
}

.punch-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 30px;
}

.punch-button {
    background-color: #007bff;
    color: white;
    padding: 16px 32px;
    font-size: 1.2rem;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.punch-button:hover {
    background-color: #0056b3;
}

.alert-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px auto;
    max-width: 500px;
    text-align: center;
    font-weight: 500;
}

/* HEADER (reprend ton style existant mais réduit hauteur) */
.logo-wrapper {
    max-width: 220px;
}

.logo-index {
    width: 100%;
    object-fit: contain;
}

.logout-form {
    margin-top: 10px;
}

.logout-button {
    background-color: #dc3545;
    color: white;
    font-weight: 600;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.logout-button:hover {
    background-color: #b02a37;
}

.scan {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.btn-scan {
    background-color: #007bff;
    color: white;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    display: inline-block;
    transition: 0.2s;
    border: none;
    width: 300px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    .punch-title {
        font-size: 1.6rem;
    }
    .punch-button {
        width: 100%;
        max-width: 300px;
        font-size: 1.1rem;
    }
    .alert-success {
        font-size: 0.95rem;
    }
    .logo-wrapper {
        max-width: 80%;
    }
}
.btn-retour {
    display: inline-block;
    text-align: center;
    margin-bottom: 20px;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    padding: 12px 24px;
    background-color: #007bff;
    width: 200px;
    border-radius: 6px;
    transition:
        background-color 0.2s,
        color 0.2s;
}

.btn-retour:hover {
    background-color: #0056b3;
    color: white;
}

/* Responsive ajustement */
@media (max-width: 768px) {
    header {
        justify-content: flex-end;
    }
}
.punch-wrapper label[for="project_id"] {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 16px;
    color: #1a1a1a;
    text-align: left;
}

.select-chantier {
    width: 100%;
    max-width: 320px;
    padding: 12px 14px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #fff;
    color: #1a1a1a;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg fill='black' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 7l3-3 3 3m0 6l-3 3-3-3'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

.select-chantier:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}

#project_id {
    margin-bottom: 20px;
}

.admin-flex {
    display: flex;
    height: 100vh;
    min-height: 0;
    background: #f8fafc;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
    overflow: hidden;
}

.admin-aside {
    background: #2563eb;
    color: #fff;
    min-width: 270px;
    padding: 32px 20px 32px 32px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    overflow-y: auto;
    height: 100%;
    max-height: 100vh;
}

.admin-main {
    flex: 1;
    padding: 48px 40px;
    background: #fff;
    overflow-y: auto;
}

/* Responsive pour écran ≤ 900px */
@media (max-width: 900px) {
    .admin-flex {
        flex-direction: column;
        height: auto;
    }
    .admin-aside {
        min-width: 0;
        width: 100%;
        max-height: 220px;
        padding: 20px 10px 10px 10px;
    }
    .admin-main {
        padding: 24px 10px;
        min-height: 0;
        max-height: none;
    }
}
@media (max-width: 600px) {
    .admin-aside {
        font-size: 0.95rem;
        max-height: 160px;
    }
    .admin-main h1 {
        font-size: 1.2rem;
    }
}
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0 20px;
    font-size: 15px;
    flex-direction: row;
    justify-content: center;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.2);
}

.scan-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 25px 0 20px 0;
    color: #007bff;
    /* Couleur accent */
}

.pjtf-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* === FORMULAIRE === */
.scan-form {
    max-width: 100%;
    margin: 40px auto;
    padding: 24px;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

form label {
    font-weight: 600;
    font-size: 0.95rem;
}

form input[type="file"],
form select {
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    background-color: #f9fafb;
}

.btn-submit {
    padding: 12px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease-in-out;
}

.btn-submit:hover {
    background-color: #0056b3;
}

/* === RETOUR === */
.btn-scan-back {
    display: block;
    text-align: center;
    margin-top: 20px;
    background-color: #007bff;
    color: white;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: 0.2s;
    width: 200px;
}

.btn-scan-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.btn-scan:hover {
    text-decoration: underline;
}

/* === Responsive === */
@media (max-width: 480px) {
    .pjtf-header {
        flex-direction: column;
        gap: 12px;
    }
}
/* === PJTF Form Overrides (paste at the END of your CSS) === */
:root {
    --pjtf-bg: #f5f7fb;
    --card: #ffffff;
    --text: #111827;
    --muted: #6b7280;
    --border: #e5e7eb;
    --brand: #1a73e8;
    --brand-600: #1558b0;
    --ring: rgba(26, 115, 232, 0.25);
}

/* Page + wrapper */
.elevation {
    background: var(--pjtf-bg);
    min-height: calc(100vh - 160px);
    /* header offset */
    display: grid;
    place-items: start center;
    padding: 32px 16px 64px;
}

.wrapper-elevation {
    width: 100%;
    max-width: 880px;
    display: grid;
    gap: 24px;
    justify-items: center;
}

/* Heading */
.wrapper-elevation h2 {
    font-size: 28px !important;
    font-weight: 800 !important;
    color: var(--text);
    text-align: center;
}

/* Card / form */
.form-styled {
    background: var(--card);
    width: 100%;
    max-width: 720px;
    /* larger card */
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    display: grid;
    gap: 18px;
}

/* Make a tidy grid for inputs on desktop */
.form-styled input[type="text"] {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 16px;
    color: var(--text);
    background: #fff;
    transition:
        border-color 0.2s,
        box-shadow 0.2s,
        transform 0.02s;
}

.form-styled input[type="text"]::placeholder {
    color: var(--muted);
}

.form-styled input[type="text"]:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 4px var(--ring);
}

/* Put the three text inputs in a grid on wide screens */
#verif-form input[type="text"]:nth-of-type(1),
#verif-form input[type="text"]:nth-of-type(2),
#verif-form input[type="text"]:nth-of-type(3) {
    /* nothing, selector used for grid below */
}

@media (min-width: 760px) {
    #verif-form {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 18px 18px;
    }
    #verif-form input[type="text"]:nth-of-type(1) {
        grid-column: span 1;
    }
    /* Nom */
    #verif-form input[type="text"]:nth-of-type(2) {
        grid-column: span 1;
    }
    /* Projet */
    #verif-form input[type="text"]:nth-of-type(3) {
        grid-column: 1/-1;
    }
    /* Adresse full width */
    #verif-form .checkbox-group {
        grid-column: 1/-1;
    }
    #submit-btn {
        grid-column: 1/-1;
        justify-self: end;
    }
}
/* Consolidated checkbox group (remove conflicts) */
.checkbox-group {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 6px 0 4px;
    font-size: 16px;
}

@media (min-width: 760px) {
    .checkbox-group {
        grid-template-columns: 1fr 1fr;
    }
}
.checkbox-group label {
    display: grid;
    grid-template-columns: 22px 1fr;
    align-items: start;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    line-height: 1.3;
    transition:
        border-color 0.2s,
        box-shadow 0.2s,
        transform 0.02s;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--brand);
}

.checkbox-group label:hover {
    border-color: #d1d5db;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

/* Button */
#submit-btn,
.form-styled button {
    padding: 12px 20px;
    background: var(--brand);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition:
        transform 0.05s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
    box-shadow: 0 6px 14px rgba(26, 115, 232, 0.18);
}

#submit-btn:hover {
    background: var(--brand-600);
}

#submit-btn:active {
    transform: translateY(1px);
}

/* Retour button keeps your class */
.btn-retour {
    margin-top: 4px;
    width: 220px;
    border-radius: 10px;
}

/* Session success message */
.alert-success,
.wrapper-elevation p[style*="color: green"] {
    background: #e8f5e9;
    color: #1b5e20 !important;
    border: 1px solid #c8e6c9;
    padding: 10px 14px;
    border-radius: 10px;
    width: 100%;
    max-width: 720px;
    text-align: center;
    margin: 0 auto;
}

/* Overlay spinner uses your keyframes; center text nicely on mobile */
#overlay {
    text-align: center;
    padding: 0 16px;
}

/* === PJTF Form Overrides – Élévation (paste at END) === */
:root {
    --pjtf-bg: #f5f7fb;
    --card: #ffffff;
    --text: #111827;
    --muted: #6b7280;
    --border: #e5e7eb;
    --brand: #1a73e8;
    --brand-600: #1558b0;
    --ring: rgba(26, 115, 232, 0.25);
}

/* Page + wrapper */
.elevation {
    background: var(--pjtf-bg);
    min-height: calc(100vh - 160px);
    display: grid;
    place-items: start center;
    padding: 32px 16px 64px;
}

.wrapper-elevation {
    width: 100%;
    max-width: 960px;
    display: grid;
    gap: 24px;
    justify-items: center;
    height: 400px;
}

/* Title */
.wrapper-elevation h2 {
    font-size: 28px !important;
    font-weight: 800 !important;
    color: var(--text);
    text-align: center;
}

/* Card / form */
.form-styled {
    background: var(--card);
    width: 100%;
    max-width: 820px;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    display: grid;
    gap: 18px;
}

/* Inputs */
.form-styled input[type="text"] {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 16px;
    color: var(--text);
    background: #fff;
    transition:
        border-color 0.2s,
        box-shadow 0.2s,
        transform 0.02s;
}

.form-styled input[type="text"]::placeholder {
    color: var(--muted);
}

.form-styled input[type="text"]:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 4px var(--ring);
}

/* Grid des champs (Nom/Projet côte à côte, Adresse full width) */
@media (min-width: 760px) {
    #verif-form {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 18px 18px;
    }
    #verif-form input[type="text"]:nth-of-type(1) {
        grid-column: span 1;
    }
    /* Nom */
    #verif-form input[type="text"]:nth-of-type(2) {
        grid-column: span 1;
    }
    /* Projet */
    #verif-form input[type="text"]:nth-of-type(3) {
        grid-column: 1/-1;
    }
    /* Adresse */
    #verif-form .checkbox-group {
        grid-column: 1/-1;
    }
    #submit-btn {
        grid-column: 1/-1;
        justify-self: end;
    }
}
/* Checkbox group – optimisé pour longue liste */
.checkbox-group {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 6px 0 4px;
    font-size: 16px;
}

@media (min-width: 760px) {
    .checkbox-group {
        grid-template-columns: 1fr 1fr;
    }
}
@media (min-width: 1024px) {
    .checkbox-group {
        grid-template-columns: 1fr 1fr 1fr;
    }
}
.checkbox-group label {
    display: grid;
    grid-template-columns: 22px 1fr;
    align-items: start;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    line-height: 1.35;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
    min-height: 54px;
    /* confort multi-lignes */
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--brand);
}

.checkbox-group label:hover {
    border-color: #d1d5db;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

/* Bouton envoyer */
#submit-btn,
.form-styled button {
    padding: 12px 20px;
    background: var(--brand);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition:
        transform 0.05s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
    box-shadow: 0 6px 14px rgba(26, 115, 232, 0.18);
}

#submit-btn:hover {
    background: var(--brand-600);
}

#submit-btn:active {
    transform: translateY(1px);
}

/* Retour */
.btn-retour {
    margin-top: 4px;
    width: 220px;
    border-radius: 10px;
}

/* Message succès unifié */
.alert-success,
.wrapper-elevation p[style*="color: green"] {
    background: #e8f5e9;
    color: #1b5e20 !important;
    border: 1px solid #c8e6c9;
    padding: 10px 14px;
    border-radius: 10px;
    width: 100%;
    max-width: 820px;
    text-align: center;
    margin: 0 auto;
}

/* Overlay */
#overlay {
    text-align: center;
    padding: 0 16px;
}

/* === Forcer le layout "mobile" partout (desktop/tablette inclus) === */
#verif-form {
    display: grid !important;
    grid-template-columns: 1fr !important;
    /* 1 colonne à toutes largeurs */
    grid-template-areas: "nom" "projet" "adresse" "checks" "submit";
    gap: 14px;
    max-width: 600px;
    /* largeur confortable de la colonne */
    margin: 0 auto;
    /* centré dans la carte */
    justify-items: stretch;
    /* champs pleine largeur dans la colonne */
}

#verif-form input[name="nom"] {
    grid-area: nom;
}

#verif-form input[name="projet"] {
    grid-area: projet;
}

#verif-form input[name="adresse"] {
    grid-area: adresse;
}

#verif-form .checkbox-group {
    grid-area: checks;
}

#verif-form #submit-btn {
    grid-area: submit;
    justify-self: center;
}

/* Champs plein largeur dans la colonne */
#verif-form input[type="text"] {
    width: 100%;
}

/* Cases empilées (une colonne), même sur desktop */
.checkbox-group {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px;
}

/* Style des cartes de checkbox */
.checkbox-group label {
    display: grid;
    grid-template-columns: 22px 1fr;
    align-items: start;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
}

/* Carte/form : centrer et réduire la largeur max pour un look focus */
.form-styled {
    max-width: 760px !important;
    /* largeur de la carte */
    margin: 0 auto;
    padding: 24px 24px 28px;
}

/* Bouton envoyer centré */
#submit-btn {
    padding: 12px 24px;
    background: #1a73e8;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(26, 115, 232, 0.18);
}

/* Bouton retour plus proche de la carte */
.btn-retour {
    margin-top: 14px;
}

/* Desktop : bouton en bas de la sidebar */
.admin-aside {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.admin-aside ul {
    flex-grow: 1;
    overflow-y: auto;
}

.admin-aside .btn-retour {
    display: block;
    width: 100%;
    text-align: center;
    background-color: #007bff;
    color: #fff;
    padding: 12px 0;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s;
}

.admin-aside .btn-retour:hover {
    background-color: #0056b3;
}

/* Mobile : bouton fixe en bas de l'écran */
@media (max-width: 900px) {
    .admin-aside {
        flex-direction: column;
        justify-content: flex-start;
        height: auto;
        padding-bottom: 70px;
        /* espace pour le bouton fixe */
    }
    .admin-aside ul {
        flex-grow: 0;
        overflow: visible;
    }
    .admin-aside .btn-retour {
        position: fixed;
        bottom: 40px;
        /* au lieu de 10px, on le remonte */
        left: 1px;
        right: 1px;
        margin: 0 auto;
        width: calc(100% - 20px);
        z-index: 1000;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        /* petit effet flottant */
    }
}
/* Login: "Se souvenir de moi" */
.login-box .login-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0 20px;
}

/* Override le style global des labels dans .login-box */
.login-box .login-remember label {
    display: inline-flex;
    /* remplace le label block */
    align-items: center;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    /* évite le retour à la ligne */
}

/* Style propre pour la checkbox */
.login-box .login-remember input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #007bff;
    transform: none;
    /* au cas où un scale global existe */
}

/* TITRES */
.scan-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--brand);
}

.pjtf-subtitle {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: var(--muted);
}

/* CARDS */
.pjtf-cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 20px;
}

.pjtf-card {
    background-color: #fff;
    border-radius: 16px;
    padding: 28px 20px;
    width: 280px;
    text-decoration: none;
    color: var(--text);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
    text-align: center;
}

.pjtf-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.pjtf-card h2 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--brand);
}

.pjtf-card p {
    font-size: 0.95rem;
    color: var(--muted);
}

/* Responsive */
@media (max-width: 768px) {
    .pjtf-cards {
        flex-direction: column;
        align-items: center;
    }
    .pjtf-card {
        width: 90%;
        max-width: 340px;
    }
}
/* === PreForm (sélecteur de types) === */
.pf-wrapper {
    padding: 28px 16px 48px;
    max-width: 1100px;
    margin: 0 auto;
}

.pf-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 50px;
    margin-top: 50px;
    justify-content: center;
}

.btn-preform-back {
    background-color: #007bff;
    color: #fff;
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
}

.pf-title {
    font-size: 1.9rem;
    font-weight: 800;
    color: #007bff;
    line-height: 1.15;
    text-align: center;
}

.p .pf-sub {
    color: var(--muted);
    margin-top: 4px;
    text-align: center;
}

.pf-section {
    margin-top: 36px;
}

.pf-section-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0 6px;
}

.pf-badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 800;
    padding: 6px 10px;
    border-radius: 999px;
    letter-spacing: 0.2px;
}

.pf-badge--commercial {
    background: #e9f3ff;
    color: #0f52a1;
}

.pf-badge--res {
    background: #eafaf3;
    color: #0b7a53;
}

.pf-grid {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.pf-card {
    text-decoration: none;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px 18px 16px;
    color: var(--text);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease;
    display: grid;
    gap: 8px;
    min-height: 132px;
}

.pf-card h3 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--brand);
    line-height: 1.25;
}

.pf-card p {
    color: var(--muted);
    font-size: 0.95rem;
}

.pf-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    border-color: #d7e3ff;
}

/* Bouton retour (réutilise palette) */
.btn-retour {
    display: inline-block;
    background: #fff;
    color: var(--text);
    border-radius: 10px;
    padding: 10px 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition:
        background 0.2s,
        color 0.2s,
        border-color 0.2s;
}

.btn-retour:hover {
    background: var(--brand);
    color: #fff;
}

/* Responsive */
@media (max-width: 1024px) {
    .pf-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 640px) {
    .pf-grid {
        grid-template-columns: 1fr;
    }
    .pf-title {
        font-size: 1.6rem;
    }
}
/* === Fix: prevent header action buttons from touching screen edges === */
.pjtf-header {
    padding-left: 16px;
    padding-right: 16px;
}

@media (min-width: 640px) {
    .pjtf-header {
        padding-left: 24px;
        padding-right: 24px;
    }
}
@media (min-width: 1024px) {
    .pjtf-header {
        padding-left: 40px;
        padding-right: 40px;
    }
}
/* Keep actions on the right even if the logo is hidden/removed */
.pjtf-actions {
    flex-wrap: wrap; /* allow wrap on small screens */
    /* push to the right when alone */
}

.pjtf-actions .pjtf-btn,
.pjtf-actions .btn-retour,
.pjtf-actions .btn-retour-preform,
.pjtf-actions .btn-scan,
.pjtf-actions .btn-submit,
.pjtf-actions .btn-scan-back,
.pjtf-actions .btn-retour-historique {
    white-space: nowrap; /* keep each button on a single line */
}

/* === Compact header actions/buttons (smaller size, no edge touch) === */
.pjtf-header {
    padding-left: 16px;
    padding-right: 16px;
}

@media (min-width: 640px) {
    .pjtf-header {
        padding-left: 24px;
        padding-right: 24px;
    }
}
@media (min-width: 1024px) {
    .pjtf-header {
        padding-left: 40px;
        padding-right: 40px;
    }
}
/* Default: keep buttons on one line; wrap only on very small screens */
.pjtf-header .pjtf-actions {
    gap: 10px;
    flex-wrap: nowrap;
}

@media (max-width: 480px) {
    .pjtf-header .pjtf-actions {
        flex-wrap: wrap;
    }
}
/* Smaller button look just for header actions */
.pjtf-header .pjtf-actions .pjtf-btn,
.pjtf-header .pjtf-actions .btn-retour,
.pjtf-header .pjtf-actions .btn-retour-preform,
.pjtf-header .pjtf-actions .btn-scan,
.pjtf-header .pjtf-actions .btn-submit,
.pjtf-header .pjtf-actions .btn-scan-back,
.pjtf-header .pjtf-actions .btn-retour-historique {
    font-size: 0.9rem;
    padding: 8px 14px;
    border-radius: 8px;
    line-height: 1.1;
    white-space: nowrap;
}

@media (max-width: 380px) {
    .pjtf-header .pjtf-actions .pjtf-btn,
    .pjtf-header .pjtf-actions .btn-retour,
    .pjtf-header .pjtf-actions .btn-retour-preform,
    .pjtf-header .pjtf-actions .btn-scan,
    .pjtf-header .pjtf-actions .btn-submit,
    .pjtf-header .pjtf-actions .btn-scan-back,
    .pjtf-header .pjtf-actions .btn-retour-historique {
        font-size: 0.85rem;
        padding: 6px 12px;
    }
}
/* === Center the header (logo above, actions below) === */
.pjtf-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px; /* space between logo and buttons */
    height: auto; /* let height fit content */
    padding-left: 16px;
    padding-right: 16px;
}

@media (min-width: 640px) {
    .pjtf-header {
        padding-left: 24px;
        padding-right: 24px;
    }
}
@media (min-width: 1024px) {
    .pjtf-header {
        padding-left: 40px;
        padding-right: 40px;
    }
}
.pjtf-logo {
    display: flex;
    justify-content: center;
}

.pjtf-actions {
    /* remove auto push */
    justify-content: center;
    gap: 10px;
    flex-wrap: nowrap; /* keep a single row by default */
}

@media (max-width: 480px) {
    .pjtf-actions {
        flex-wrap: wrap;
    } /* small phones can wrap */
}
/* Compact button sizing (smaller font & padding) */
.pjtf-header .pjtf-actions .pjtf-btn,
.pjtf-header .pjtf-actions .btn-retour,
.pjtf-header .pjtf-actions .btn-retour-preform,
.pjtf-header .pjtf-actions .btn-scan,
.pjtf-header .pjtf-actions .btn-submit,
.pjtf-header .pjtf-actions .btn-scan-back,
.pjtf-header .pjtf-actions .btn-retour-historique {
    font-size: 0.9rem;
    padding: 8px 14px;
    border-radius: 8px;
    line-height: 1.1;
    white-space: nowrap;
}

@media (max-width: 380px) {
    .pjtf-header .pjtf-actions .pjtf-btn,
    .pjtf-header .pjtf-actions .btn-retour,
    .pjtf-header .pjtf-actions .btn-retour-preform,
    .pjtf-header .pjtf-actions .btn-scan,
    .pjtf-header .pjtf-actions .btn-submit,
    .pjtf-header .pjtf-actions .btn-scan-back,
    .pjtf-header .pjtf-actions .btn-retour-historique {
        font-size: 0.85rem;
        padding: 6px 12px;
    }
}
.pf-sub {
    text-align: center;
}

.btn-retour-preform {
    padding: 8px 16px;
    background: #1a73e8;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(26, 115, 232, 0.18);
}

/* === Historique Page Styling (matches PJTF look) === */
.hist-index {
    padding: 28px 16px 48px;
    max-width: 1100px;
    margin: 0 auto;
}
.hist-index .pro-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--ua-text);
    margin-top: 50px;
}

.hi-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    height: 200px;
}

.hi-header h1 {
    font-size: 2rem;
    font-weight: 800;
    color: #007bff; /* your brand blue */
    margin-bottom: 4px;
}

.hi-header .hi-sub {
    font-size: 1rem;
    color: #6b7280; /* muted */
    text-align: center;
}

/* Filters row */
.hi-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 10px;
}

.hi-filters input,
.hi-filters select {
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #1a1a1a;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.95rem;
}

/* Table container */
.hi-table {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* Table rows */
.hi-row {
    display: grid;
    grid-template-columns: 180px 160px 1fr 160px;
    gap: 12px;
    padding: 14px 16px;
    align-items: center;
    border-bottom: 1px solid #f1f3f5;
}

.hi-row:last-child {
    border-bottom: none;
}

.hi-row.hi-head {
    background: #f8fafc;
    font-weight: 700;
    color: #374151;
}

.hi-type {
    font-weight: 700;
}

.hi-title {
    font-weight: 700;
}

.hi-subtitle {
    color: #555;
    font-size: 0.95rem;
    margin-top: 2px;
}

/* Actions */
.hi-actions {
    display: flex;
    gap: 8px;
}

.hi-actions .pjtf-btn.admin,
.hi-actions .admin.btn-retour,
.hi-actions .admin.btn-retour-preform,
.hi-actions .admin.btn-scan,
.hi-actions .admin.btn-submit,
.hi-actions .admin.btn-scan-back,
.hi-actions .admin.btn-retour-historique {
    background-color: #007bff;
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.hi-actions .pjtf-btn.admin:hover,
.hi-actions .admin.btn-retour:hover,
.hi-actions .admin.btn-retour-preform:hover,
.hi-actions .admin.btn-scan:hover,
.hi-actions .admin.btn-submit:hover,
.hi-actions .admin.btn-scan-back:hover,
.hi-actions .admin.btn-retour-historique:hover {
    background-color: #0056b3;
}

/* Empty state */
.hi-empty {
    padding: 20px;
    text-align: center;
    color: #6b7280;
}

/* Responsive */
@media (max-width: 768px) {
    .hi-row {
        grid-template-columns: 120px 1fr 100px;
    }
    .hi-row > :nth-child(2) {
        display: none;
    } /* hide Type */
}
/* Badges for types */
.hi-badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 800;
    padding: 6px 10px;
    border-radius: 999px;
    letter-spacing: 0.2px;
}

.hi-badge--rep {
    background: #eef2ff;
    color: #3730a3;
} /* indigo-ish for Report */
.hi-badge--res {
    background: #eafaf3;
    color: #0b7a53;
} /* green for Résidentiel */
.hi-badge--com {
    background: #e9f3ff;
    color: #0f52a1;
} /* blue for Commercial */
/* Slight row hover to make it feel interactive */
.hi-table .hi-row:not(.hi-head):hover {
    background: #fcfdff;
}

/* Bump specificity a touch so it wins against any generic table styles */
body .hist-index .hi-table {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

/* === Bouton Retour Historique (même style que .btn-retour-preform) === */
/* Bouton retour spécifique à Historique */
.btn-retour-historique {
    padding: 8px 16px;
    background: #1a73e8;
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 10px rgba(26, 115, 232, 0.15);
    transition:
        background-color 0.2s ease,
        transform 0.1s ease;
}

.btn-retour-historique:hover {
    background: #1558b0;
    transform: translateY(-1px);
}

/* Conteneur pour l’aligner à gauche */
.hi-header-top {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    margin-bottom: 10px;
}

.wrapper-historique {
    margin-top: 20px;
    text-align: left;
}

@media (max-width: 768px) {
    .wrapper-historique {
        text-align: center;
    }
    .hi-header {
        height: 250px;
        margin-bottom: 50px;
    }
}
/* === Admin Landing simple === */
.admin-landing {
    text-align: center;
    padding: 30px 20px 10px 20px;
}

.al-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a73e8; /* bleu PJTF */
    margin-bottom: 8px;
}

.al-sub {
    color: #6b7280; /* gris doux */
    margin-bottom: 40px;
}

.al-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.al-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 28px 20px;
    width: 260px;
    text-decoration: none;
    color: #111827;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition:
        transform 0.2s,
        box-shadow 0.2s;
}

.al-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.al-card h2 {
    font-size: 1.2rem;
    color: #1a73e8;
    margin-bottom: 8px;
}

.al-card p {
    font-size: 0.95rem;
    color: #6b7280;
}

/* Responsive */
@media (max-width: 640px) {
    .al-grid {
        flex-direction: column;
        align-items: center;
    }
    .al-card {
        width: 100%;
        max-width: 320px;
    }
}
/* === Admin Punch (épuré, cohérent PJTF) === */
.ap-title {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.ap-title-main {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 6px;
    color: #1a73e8;
}

.ap-sub {
    color: #6b7280;
    margin-bottom: 18px;
}

/* Liste employés */
.emp-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.emp-item {
    margin: 0;
}

.employee-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    transition:
        background-color 0.15s ease,
        transform 0.02s ease;
}

.employee-link:hover {
    background: rgba(255, 255, 255, 0.16);
}

.employee-link.active,
.employee-link[aria-current="true"] {
    background: #1a73e8;
    box-shadow: 0 6px 14px rgba(26, 115, 232, 0.18);
}

.emp-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #fff;
    opacity: 0.7;
}

.emp-name {
    font-weight: 600;
}

/* Récap hebdo: petites cartes (heures par jour / total semaine) */
.ap-week {
    display: grid;
    grid-template-columns: repeat(7, minmax(110px, 1fr));
    gap: 12px;
    margin: 12px 0 8px;
}

@media (max-width: 980px) {
    .ap-week {
        grid-template-columns: repeat(4, 1fr);
        display: flex;
        flex-direction: column;
    }
}
@media (max-width: 640px) {
    .ap-week {
        grid-template-columns: repeat(2, 1fr);
    }
}
.ap-week .ap-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.ap-card .ap-day {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 4px;
}

.ap-card .ap-hours {
    font-size: 1.2rem;
    font-weight: 800;
    color: #111827;
}

.ap-card.total {
    border-color: #d7e3ff;
}

.ap-card.total .ap-hours {
    color: #1a73e8;
}

/* Liste des punches (style tableau simple) */
.ap-list {
    margin-top: 10px;
}

.ap-empty {
    color: #6b7280;
}

.ap-row {
    display: grid;
    grid-template-columns: 160px 1fr 180px 140px;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #f1f3f5;
    align-items: center;
}

.ap-row.ap-head {
    background: #f8fafc;
    font-weight: 700;
    color: #374151;
}

.ap-row:last-child {
    border-bottom: 0;
}

.ap-col-muted {
    color: #6b7280;
    font-size: 0.95rem;
}

@media (max-width: 900px) {
    .ap-row {
        grid-template-columns: 150px 1fr 140px;
    }
    .ap-row > .ap-hide-sm {
        display: none;
    }
}
/* Boutons utilitaires près du titre (si tu en ajoutes plus tard) */
.ap-head {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 6px;
}

/* === Weekly card compact === */
.ap-week {
    grid-template-columns: repeat(2, 1fr);
}

.ap-week .ap-card {
    min-width: 180px;
    border-radius: 14px;
    padding: 12px 12px 10px;
}

.ap-week .ap-day {
    font-size: 0.85rem;
    line-height: 1.2;
    color: #6b7280;
}

.ap-week .ap-hours {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1a73e8;
    margin-top: 2px;
}

.ap-week .ap-list {
    margin-top: 6px;
    font-size: 0.92rem;
    color: #374151;
}

.ap-week .ap-list li {
    margin: 3px 0;
}

.ap-week .ap-more {
    margin-top: 4px;
    font-size: 0.88rem;
    color: #6b7280;
}

/* === Tableau compact & bien aligné === */
.ap-row {
    display: grid;
    grid-template-columns: 200px 1fr 180px 120px; /* Date | Chantier | Carte | Durée */
    gap: 12px;
    padding: 14px 16px;
    align-items: center;
    border-bottom: 1px solid #f1f3f5;
}

.ap-row.ap-head {
    background: #f8fafc;
    font-weight: 700;
    color: #374151;
}

.ap-row:last-child {
    border-bottom: 0;
}

/* Colonnes */
.ap-date {
    line-height: 1.25;
}

.ap-date .ap-range {
    color: #6b7280;
    font-size: 0.92rem;
    display: block;
    margin-top: 2px;
}

.ap-job {
    min-width: 0;
} /* pour truncation */
.ap-title {
    font-weight: 700;
    display: block;
}

.ap-sub {
    color: #6b7280;
    font-size: 0.92rem;
    display: block;
}

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Carte + coords compactes */
.ap-geo {
    text-align: right;
}

.ap-geo .ap-coords {
    color: #6b7280;
    font-size: 0.82rem;
    line-height: 1.2;
    margin-bottom: 6px;
}

.ap-map {
    width: 160px;
    height: 120px;
    border-radius: 10px;
    overflow: hidden;
    margin-left: auto;
}

/* Durée lisible */
.ap-dur {
    text-align: right;
}

.ap-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 90px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #e9f3ff;
    color: #0f52a1;
    font-weight: 800;
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 980px) {
    .ap-row {
        grid-template-columns: 160px 1fr 120px;
    }
    .ap-geo {
        display: none;
    } /* cache la colonne carte/coords */
}
@media (max-width: 600px) {
    .ap-row {
        grid-template-columns: 1fr auto;
        align-items: start;
    }
    .ap-date {
        order: 1;
    }
    .ap-job {
        order: 2;
    }
    .ap-dur {
        order: 3;
        grid-column: 2;
    }
}
/* État "en cours" plus sobres */
.ap-current {
    border: 1px solid #fde68a;
    background: #fffbea;
    border-radius: 10px;
    padding: 12px;
}

.ap-current h3 {
    color: #b45309;
    margin-bottom: 4px;
    font-weight: 800;
}

.ap-current p {
    color: #784f04;
    font-size: 0.95rem;
}

.btn-retour {
    display: inline-block;
    background: #fff;
    color: var(--text);
    border-radius: 10px;
    padding: 10px 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition:
        background 0.2s,
        color 0.2s,
        border-color 0.2s;
}

.btn-retour:hover {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}

.projet-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* === User Admin (UA) === */
:root {
    --ua-card: #ffffff;
    --ua-text: #111827;
    --ua-muted: #6b7280;
    --ua-border: #e5e7eb;
    --ua-brand: #1a73e8;
    --ua-brand-600: #1558b0;
    --ua-danger: #e11d48;
    --ua-danger-600: #be123c;
    --ua-ring: rgba(26, 115, 232, 0.25);
}

.ua-page {
    display: flex;
    gap: 15px;
    padding: 28px 16px 48px;
    max-width: 1100px;
    margin: 0 auto;
    flex-direction: column;
}

.ua-header {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    flex-direction: column;
}

.ua-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--ua-text);
}

.ua-search {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ua-input {
    width: 230px;
    padding: 10px 12px;
    border: 1px solid var(--ua-border);
    border-radius: 10px;
    background: #fff;
    font-size: 0.95rem;
}

.ua-input:focus {
    outline: none;
    border-color: var(--ua-brand);
    box-shadow: 0 0 0 4px var(--ua-ring);
}

.ua-card {
    background: var(--ua-card);
    border: 1px solid var(--ua-border);
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.ua-create {
    margin-bottom: 18px;
}

.ua-create h2 {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--ua-text);
}

.ua-grid {
    display: grid;
    gap: 12px;
}

@media (min-width: 760px) {
    .ua-grid {
        grid-template-columns: 1fr 1fr;
    }
}
.ua-label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.ua-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.ua-btn {
    padding: 10px 14px;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition:
        transform 0.05s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

.ua-btn:active {
    transform: translateY(1px);
}

.ua-btn.primary {
    background: var(--ua-brand);
    color: #fff;
    box-shadow: 0 6px 14px rgba(26, 115, 232, 0.18);
}

.ua-btn.primary:hover {
    background: var(--ua-brand-600);
}

.ua-btn.ghost {
    background: #fff;
    border: 1px solid var(--ua-border);
}

.ua-btn.ghost:hover {
    background: #f9fafb;
}

.ua-btn.danger {
    background: #fff;
    color: var(--ua-danger);
    border: 1px solid #fecdd3;
}

.ua-btn.danger:hover {
    background: #fff1f2;
    border-color: #fda4af;
}

/* Table */
.ua-table {
    overflow: hidden;
}

.ua-table table {
    width: 100%;
    font-size: 0.95rem;
    border-collapse: separate;
    border-spacing: 0;
}

.ua-table thead tr {
    background: #f8fafc;
}

.ua-table th,
.ua-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--ua-border);
    text-align: left;
}

.ua-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.78rem;
}

.ua-badge--yes {
    background: #eafaf3;
    color: #0b7a53;
}

.ua-badge--no {
    background: #f3f4f6;
    color: #374151;
}

/* Inline editor (details) */
.ua-details summary {
    list-style: none;
}

.ua-details summary::-webkit-details-marker {
    display: none;
}

.ua-details-panel {
    position: absolute;
    right: 0;
    margin-top: 8px;
    width: 28rem;
    background: #fff;
    border: 1px solid var(--ua-border);
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    padding: 16px;
    z-index: 20;
}

/* Alerts */
.ua-alert {
    margin-bottom: 14px;
    border-radius: 10px;
    padding: 12px 14px;
    font-weight: 600;
}

.ua-alert.success {
    background: #e8f5e9;
    color: #1b5e20;
    border: 1px solid #c8e6c9;
}

.ua-alert.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Pagination wrapper */
.ua-pagination {
    padding: 12px 14px;
}

/* Inline editor (details) */
.ua-details {
    position: relative;
}

.ua-details summary {
    list-style: none;
}

.ua-details summary::-webkit-details-marker {
    display: none;
}

.ua-details-panel {
    position: absolute;
    top: 100%; /* always open below the button */
    right: 0;
    margin-top: 6px;
    width: 28rem;
    background: #fff;
    border: 1px solid var(--ua-border);
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    padding: 16px;
    z-index: 50;
}

/* ---------- Responsive layout ---------- */
@media (max-width: 980px) {
    .ua-page {
        padding: 20px 12px 40px;
    }
    .ua-title {
        font-size: 1.6rem;
    }
    .ua-search {
        width: 100%;
    }
    .ua-search .ua-input {
        flex: 1 1 auto;
        width: 100%;
    }
}
@media (max-width: 760px) {
    .ua-card {
        padding: 14px;
    }
    .ua-grid {
        grid-template-columns: 1fr;
    }
    .ua-btn {
        width: 100%;
    } /* buttons full-width in forms on small screens */
    .ua-checkbox {
        width: 100%;
    }
    /* Table -> stacked cards */
    .ua-table table,
    .ua-table thead,
    .ua-table tbody,
    .ua-table th,
    .ua-table td,
    .ua-table tr {
        display: block;
        width: 100%;
    }
    .ua-table thead {
        display: none;
    }
    .ua-row {
        /* each row as a card */
        background: #fff;
        border: 1px solid var(--ua-border);
        border-radius: 14px;
        padding: 10px 12px;
        margin-bottom: 10px;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
    }
    .ua-table td {
        border: 0;
        padding: 8px 0;
    }
    .ua-table td::before {
        /* show label before each value */
        content: attr(data-label);
        display: block;
        font-size: 0.8rem;
        font-weight: 700;
        color: var(--ua-muted);
        margin-bottom: 4px;
    }
    /* actions stack */
    .ua-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .ua-actions .ua-btn {
        width: 100%;
    }
}
/* ---------- Details editor placement & overlay ---------- */
.ua-details {
    position: relative;
}

.ua-details summary {
    list-style: none;
}

.ua-details summary::-webkit-details-marker {
    display: none;
}

/* Default (desktop) – dropdown anchored under button */
.ua-details-panel {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 6px;
    width: 28rem;
    background: #fff;
    border: 1px solid var(--ua-border);
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    padding: 16px;
    z-index: 50;
}

/* Backdrop when open */
.ua-details[open]::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 40;
}

/* Mobile – turn it into a bottom sheet */
@media (max-width: 760px) {
    .ua-details-panel {
        position: fixed;
        inset: auto 0 0 0; /* stick to bottom, full width */
        width: 100%;
        max-height: 70vh;
        overflow: auto;
        border-radius: 16px 16px 0 0;
        margin-top: 0;
        padding: 16px;
        z-index: 60;
    }
}
/* === Projects & Addresses (Admin) === */
:root {
    --proj-card: #ffffff;
    --proj-text: #111827;
    --proj-muted: #6b7280;
    --proj-border: #e5e7eb;
    --proj-brand: #1a73e8;
    --proj-brand-600: #1558b0;
    --proj-danger: #e11d48;
    --proj-danger-600: #be123c;
    --proj-ring: rgba(26, 115, 232, 0.25);
}

/* Page wrapper */
.projet-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

/* Card projet */
.projet-card {
    background: var(--proj-card);
    border: 1px solid var(--proj-border);
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Titre projet */
.projet-card h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--proj-brand);
}

/* Liste des adresses */
.projet-card ul {
    list-style: disc;
    padding-left: 20px;
    color: var(--proj-text);
}

.projet-card li {
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: var(--proj-text);
}

/* Inline forms */
.projet-card form {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.projet-card input[type="text"] {
    flex: 1;
    min-width: 220px;
    padding: 10px;
    border: 1px solid var(--proj-border);
    border-radius: 8px;
    font-size: 0.95rem;
}

.projet-card input[type="text"]:focus {
    outline: none;
    border-color: var(--proj-brand);
    box-shadow: 0 0 0 3px var(--proj-ring);
}

/* Buttons */
.btn-primary {
    background: var(--proj-brand);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-primary:hover {
    background: var(--proj-brand-600);
}

.btn-secondary {
    background: #fff;
    color: var(--proj-brand);
    border: 1px solid var(--proj-border);
    border-radius: 8px;
    padding: 8px 14px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.btn-secondary:hover {
    background: #f9fafb;
}

.btn-danger {
    background: #fff;
    color: var(--proj-danger);
    border: 1px solid #fecdd3;
    border-radius: 8px;
    padding: 8px 14px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.btn-danger:hover {
    background: #fff1f2;
    border-color: #fda4af;
}

/* Empty state */
.projet-card p[style*="color:#888"] {
    color: var(--proj-muted) !important;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .projet-card form {
        flex-direction: column;
        align-items: stretch;
    }
    .projet-card input[type="text"] {
        width: 100%;
    }
    .btn-primary,
    .btn-secondary,
    .btn-danger {
        width: 100%;
        text-align: center;
    }
}
.btn-light {
    background: none;
    border: none;
}

/*# sourceMappingURL=pjtf.raw.css.map */
