@import url('/fonts/fonts.css');

:root {
  --cream: #FBF6F1; --beige: #F3EAE1; --dark: #221E1C; --grey: #6B6560; --lgrey: #9A938D;
  --red: #E31D52; --blue: #1F3BB3; --lblue: #A3B4EC; --line: #E6DCD3; --navy: #111B3D; --ink: #151515;
  --mont: 'Montserrat', Arial, sans-serif; --carl: 'Carlito', Arial, sans-serif; --arial: Arial, Helvetica, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--cream); color: var(--dark); font-family: var(--arial); font-size: 15px; line-height: 1.5; }
a { color: var(--blue); }
button { font: inherit; cursor: pointer; }

/* ------------------------------------------------ en-tête de l'application */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 28px; border-bottom: 1px solid var(--line); background: var(--cream); }
.topbar img { height: 38px; display: block; }
.topbar .right { display: flex; align-items: center; gap: 18px; font-family: var(--mont); font-weight: 700; font-size: 12px; color: var(--lgrey); }
.topbar .right a, .topbar .right button { color: var(--grey); text-decoration: none; background: none; border: 0; font-family: var(--mont); font-weight: 700; font-size: 12px; }
.topbar .right a:hover, .topbar .right button:hover { color: var(--red); }

.wrap { max-width: 1040px; margin: 0 auto; padding: 40px 28px 80px; }
.eyebrow { font-family: var(--mont); font-weight: 700; font-size: 12px; letter-spacing: .05em; color: var(--red); text-transform: uppercase; }
h1.title { font-family: var(--carl); font-weight: 700; font-size: 40px; line-height: 1.08; margin: 6px 0 10px; }
h1.title i, h2 i { font-style: italic; }
.bar { width: 60px; height: 5px; background: linear-gradient(90deg, var(--red), var(--blue)); margin: 0 0 16px; }
.lead { color: var(--grey); max-width: 680px; }
h2 { font-family: var(--carl); font-weight: 700; font-size: 26px; margin: 44px 0 14px; }
.muted { color: var(--lgrey); }

.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--red); color: #fff; border: 0; border-radius: 8px; padding: 11px 18px; font-family: var(--mont); font-weight: 700; font-size: 13px; text-decoration: none; }
.btn:hover { filter: brightness(.94); }
.btn.ghost { background: transparent; color: var(--dark); border: 1.5px solid var(--line); }
.btn.ghost:hover { border-color: var(--grey); }
.btn.blue { background: var(--blue); }
.btn.small { padding: 7px 12px; font-size: 12px; }
.btn:disabled { opacity: .5; cursor: default; }

input[type=email], input[type=text], textarea, select { font: inherit; border: 1.5px solid var(--line); background: #fff; border-radius: 8px; padding: 11px 13px; width: 100%; color: var(--dark); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--blue); }

/* ------------------------------------------------ cartes */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.card { background: var(--beige); border-radius: 12px; padding: 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.card h3 { font-family: var(--carl); font-size: 22px; line-height: 1.15; }
.card p { font-size: 14px; }
.card .meta { font-family: var(--mont); font-weight: 700; font-size: 11px; color: var(--lgrey); letter-spacing: .04em; text-transform: uppercase; }
.card .actions { margin-top: auto; padding-top: 10px; display: flex; gap: 10px; flex-wrap: wrap; }
.card.dark { background: var(--ink); color: #fff; }
.card.dark .meta { color: var(--lblue); }
.status { display: inline-block; font-family: var(--mont); font-weight: 700; font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; background: var(--line); color: var(--grey); }
.status.draft { background: #FFF0C2; color: #7A5B00; }
.status.done { background: #D7F0DD; color: #1E6B35; }
.status.late { background: #FADDE4; color: var(--red); }

.list { border-top: 2px solid var(--red); }
.list .row { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.list .row .grow { flex: 1; min-width: 0; }
.list .row .t { font-weight: 700; }
.list .row .s { font-size: 13px; color: var(--grey); }

.notice { background: var(--beige); border-left: 4px solid var(--blue); padding: 14px 18px; border-radius: 6px; font-size: 14px; }
.notice.red { border-left-color: var(--red); }

/* ------------------------------------------------ connexion */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login .side { background: var(--red) url('/img/fond_rouge.jpg') center/cover; color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; }
.login .side .big { font-family: var(--carl); font-size: 46px; font-weight: 700; line-height: 1.05; }
.login .side .big i { font-weight: 400; }
.login .side .small { font-family: var(--mont); font-weight: 700; font-size: 12px; letter-spacing: .05em; opacity: .9; }
.login .form { padding: 48px; display: flex; flex-direction: column; justify-content: center; max-width: 520px; }
.login .form img { height: 46px; align-self: flex-start; margin-bottom: 40px; }
.login form { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
@media (max-width: 820px) { .login { grid-template-columns: 1fr; } .login .side { display: none; } }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 8px; font-size: 14px; z-index: 50; box-shadow: 0 6px 20px rgba(0,0,0,.2); }
