/* FLAIX — base.css : reset minimal + utilitaires globaux.
   Les variables CSS et les composants visuels sont dans components.css. */

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

html,
body {
    min-height: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

/* Helpers ergonomiques pour formulaires hors maquette dashboard.html */
.form-grid {
    display: grid;
    gap: 14px;
    max-width: 380px;
    margin: 0 auto;
}

.form-grid label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--gry, #64748B);
}

.form-grid input {
    padding: 9px 12px;
    border: 1.5px solid var(--bdr, #DDE1EC);
    border-radius: 8px;
    background: #fff;
    font-size: 13px;
}

.form-grid input:focus {
    outline: none;
    border-color: var(--b2, #0047BB);
    box-shadow: 0 0 0 3px rgba(0, 71, 187, 0.12);
}

.btn-primary {
    background: linear-gradient(135deg, #6699FF, #9B59E8 50%, #EC4899);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 11px 18px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(155, 89, 232, 0.25);
    transition: transform 0.1s ease, box-shadow 0.15s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(155, 89, 232, 0.32);
}

.flash {
    max-width: 520px;
    margin: 12px auto 0;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
}

.flash-success {
    background: #DCFCE7;
    color: #15803D;
    border: 1px solid rgba(21, 128, 61, 0.25);
}

.flash-error {
    background: #FEE2E2;
    color: #C81E1E;
    border: 1px solid rgba(200, 30, 30, 0.25);
}

.login-card {
    max-width: 420px;
    margin: 64px auto;
    background: #fff;
    border: 1px solid var(--bdr, #DDE1EC);
    border-radius: 16px;
    padding: 28px 28px 24px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
}

.login-card h1 {
    font-family: -apple-system-condensed, 'Arial Narrow', Arial, sans-serif;
    font-weight: 800;
    letter-spacing: 0.4px;
    font-size: 20px;
    color: var(--b1, #002060);
    margin-bottom: 4px;
    text-align: center;
}

.login-card .subtitle {
    text-align: center;
    font-size: 11px;
    color: var(--gry, #64748B);
    margin-bottom: 22px;
}

.login-card form {
    display: grid;
    gap: 14px;
}

.login-card button[type="submit"] {
    margin-top: 6px;
}

.placeholder-page {
    max-width: 720px;
    margin: 40px auto;
    background: #fff;
    border: 1px solid var(--bdr, #DDE1EC);
    border-radius: 14px;
    padding: 32px;
    text-align: center;
}

.placeholder-page h2 {
    font-family: -apple-system-condensed, 'Arial Narrow', Arial, sans-serif;
    color: var(--b1, #002060);
    margin-bottom: 8px;
}

.placeholder-page .tag {
    display: inline-block;
    background: var(--purp-l, #EDE9FE);
    color: var(--purp, #6D28D9);
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 8px;
    letter-spacing: 0.6px;
}

/* Grille de raccourcis outils sur la home */
.home-tools {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.tool-card {
    display: block;
    background: #fff;
    border: 1.5px solid var(--bdr, #DDE1EC);
    border-radius: 14px;
    padding: 16px 18px;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    transition: transform 0.12s ease, box-shadow 0.18s ease, border-color 0.12s ease;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--b2, #0047BB);
    opacity: 0.85;
}

.tool-card.primary::before {
    background: linear-gradient(135deg, #6699FF, #9B59E8 50%, #EC4899);
    height: 5px;
    opacity: 1;
}

.tool-card.admin::before {
    background: linear-gradient(135deg, #FFB800, #C44D00);
}

.tool-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
    border-color: var(--b2, #0047BB);
}

.tool-card .ico {
    font-size: 28px;
    line-height: 1;
    margin-bottom: 8px;
}

.tool-card .lbl {
    font-family: -apple-system-condensed, 'Arial Narrow', Arial, sans-serif;
    font-weight: 800;
    font-size: 15px;
    color: var(--b1, #002060);
    letter-spacing: 0.3px;
}

.tool-card .sub {
    font-size: 11px;
    color: var(--gry, #64748B);
    margin-top: 4px;
    line-height: 1.4;
}

.tool-card.primary .lbl {
    background: linear-gradient(135deg, #5B7BFF, #8B5CF6, #EC4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
