@import url('https://fonts.googleapis.com/css2?family=Black+Ops+One&display=swap');
/* ── EuropeSoftwares — Palette Officielle ───────────────── */

:root {
    --bg: #f5f7fa; /* Fond premium EuropeSoftwares */
    --panel: #ffffff;
    --text: #2f7dd1; /* Gris foncé lisible */
    --muted: #5A6478; /* Gris secondaire */
    --line: #E6E9EF; /* Gris clair premium */
    --primary: #003366; /* Bleu EuropeSoftwares */
    --primary-dark: #DD5132; /* Bleu foncé */
    --danger: #d64545; /* Rouge alerte */
    --ok: #1fa86a; /* Vert validation */
    --font-display: 'Orbitron', monospace;
    --text-bright: #0a1520;
    --border: #d0dae6;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: Arial;
    background: var(--bg);
    color: var(--text);
}

.logo-text {
    font-family: 'Black Ops One', var(--font-display), monospace;
    font-size: 52px;
    font-weight: 400;
    letter-spacing: 0.08em;
    color: var(--text-bright);
    line-height: 1;
    background: #0a1520;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
    filter: drop-shadow(1px 2px 0px rgba(212,88,10,0.25));
}

.page {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 44px;
}

header {
    margin-bottom: 20px;
}

h1 {
    margin: 0 0 8px;
    font-size: 30px;
    line-height: 1.2;
    color: black;
}

h2 {
    margin: 0 0 14px;
    font-size: 18px;
    color: darkgray;
}

.subtitle {
    margin: 0;
    color: var(--muted);
}

.layout {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 18px;
    align-items: start;
}

.panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
}

.panel h2 {
    margin: 0 0 14px;
    font-size: 18px;
}

.tb-title {
    padding: 8px 4px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.tb-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--orange);
    border-radius: 1px;
}

.tb-title-em {
    font-family: 'Black Ops One', var(--font-display), monospace;
    font-style: normal;
    font-size: 28px;
    font-weight: 400;
    letter-spacing: 0.12em;
    display: inline-block;
    isolation: isolate;
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    background: linear-gradient(90deg, #DD5132 0%, #ffffff 100%);
    background-clip: padding-box;
    -webkit-background-clip: padding-box;
    padding: 4px 14px;
    border-radius: 3px;
    position: relative;
    top: -4px;
    clip-path: polygon(6px 0%, 100% 0%, 100% 100%, 6px 100%, 0% 50%);
}

.field {
    margin-bottom: 14px;
    color: #0a1520;
}

label, .field-title {
    display: block;
    font-weight: 650;
    margin-bottom: 6px;
}

input[type="text"], input[type="number"], select, textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 10px 11px;
    font: inherit;
    background: #fff;
    color: var(--text);
}

textarea {
    min-height: 70px;
    resize: vertical;
}

.row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.checks {
    display: grid;
    gap: 8px;
}

.check {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
}

.check label {
    margin: 0;
    font-weight: 500;
}

.actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.btn, .btn-secondary {
    border: 0;
    border-radius: 6px;
    padding: 11px 14px;
    font-weight: 700;
    cursor: pointer;
}

.btn {
    background: #DD5132;
    color: #fff;
}

.btn:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    border: 1px solid var(--line);
    background: #fff;
    color: #0a1520;
}

.message {
    margin-bottom: 14px;
    padding: 11px 12px;
    border-radius: 6px;
    background: #fff3f0;
    border: 1px solid #ffd0c8;
    color: var(--danger);
    font-weight: 650;
}

.results {
    display: grid;
    gap: 12px;
}

.result {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
    background: #fff;
}

.password-line {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
}

.password {
    font-family: Consolas, Monaco, monospace;
    font-size: 18px;
    word-break: break-all;
    padding: 9px 10px;
    background: #f6f8fc;
    border-radius: 6px;
}

.copy {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 6px;
    padding: 9px 11px;
    cursor: pointer;
}

.meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 10px;
    color: var(--muted);
    font-size: 14px;
}

.meter {
    height: 9px;
    border-radius: 999px;
    background: #e8edf5;
    overflow: hidden;
    margin-top: 10px;
}

.meter span {
    display: block;
    height: 100%;
    background: var(--ok);
}

.history {
    margin-top: 18px;
}

.history textarea {
    font-family: Consolas, Monaco, monospace;
    min-height: 160px;
}

.hint {
    color: var(--muted);
    font-size: 13px;
    margin-top: 5px;
}

@media (max-width: 860px) {
    .layout { grid-template-columns: 1fr; }
    .row { grid-template-columns: 1fr; }
    .password-line { grid-template-columns: 1fr; }
}

.tb-lang-flags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: flex-end;
    margin-left: auto;
    max-width: 560px;
}

.tb-lang-flag {
    display: inline-flex;
    line-height: 0;
}

.tb-lang-flag img {
    border: solid 3px transparent;
    height: 32px;
    width: 32px;
}

.tb-lang-flag:hover img,
.tb-lang-flag.active img {
    border-color: red;
}

/* ── Cartes ────────────────────────────────────────────────── */
.panel-claude {
    width: 100%;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.panel-claude + .panel-claude {
    width: 100%;
    margin-top: 12px;
}

.panel-claude img {
    display: block;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
}

.panel-claude p {
    margin: 0 0 4px;
    font-size: 0.9em;
    font-weight: 600;
    color: var(--muted);
}

.panel-claude a {
    font-size: 0.85em;
    color: var(--text);
    text-decoration: none;
    overflow-wrap: anywhere;
}

.panel-claude a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ─────────────────────────────────────────────────────────── */
/* ── Alignement global à gauche (ajout demandé) ───────────── */
/* ─────────────────────────────────────────────────────────── */

h1, h2, h3, h4, h5, h6,
.subtitle,
label, .field-title,
p, .panel p,
.tb-title, .tb-title-em,
.result, .message,
.password, textarea, input, select {
    text-align: left !important;
}
