/* ===== WeekendIdeas — styles communs des pages de l'application ===== */
:root {
  --ink: #1c1f1d;
  --paper: #ffffff;
  --accent: #2f5d4e;
  --muted: #5f6662;
  --line: #e6e8e6;
  --soft: #f5f6f4;
  --error: #9b2c2c;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(28,31,29,.06), 0 8px 24px rgba(28,31,29,.06);
  --font-title: "Fraunces", Georgia, serif;
  --font-text: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--soft);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: var(--accent); }

/* En-tête */
header { background: var(--paper); border-bottom: 1px solid var(--line); }
header .wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-family: var(--font-title); font-size: 20px; text-decoration: none; color: var(--ink); letter-spacing: -.01em; }
.logo span { color: var(--accent); }

/* Carte centrale */
main { padding: 56px 20px; }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 420px;
  margin: 0 auto;
  padding: 32px;
}
h1 { font-family: var(--font-title); font-weight: 500; font-size: 28px; letter-spacing: -.02em; line-height: 1.2; margin-bottom: 8px; }
.sub { color: var(--muted); margin-bottom: 28px; }

/* Formulaire */
label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
input {
  width: 100%;
  font: inherit;
  padding: 12px 14px;
  border: 1px solid #c9cecb;
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  margin-bottom: 18px;
}
input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.hint { font-size: 13px; color: var(--muted); margin: -12px 0 18px; }

/* Bouton : même style que la page d'accueil */
.btn {
  display: inline-block;
  width: 100%;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 500;
  font-size: 15px;
  text-align: center;
  text-decoration: none;
  padding: 13px 22px;
  border-radius: var(--radius);
  border: 0;
  cursor: pointer;
  transition: opacity .15s;
}
.btn:hover { opacity: .9; }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); }

/* Messages */
.msg { font-size: 14px; border-radius: var(--radius); padding: 12px 14px; margin-bottom: 18px; display: none; }
.msg.show { display: block; }
.msg.error { background: #fbeeee; color: var(--error); }
.msg.ok { background: #edf3f0; color: var(--accent); }

/* Lien discret dans l'en-tête */
.link-btn { background: none; border: 0; font: inherit; font-size: 15px; font-weight: 500; color: var(--muted); cursor: pointer; }
.link-btn:hover { color: var(--ink); }

/* Bloc de test du verrou */
h2 { font-family: var(--font-title); font-weight: 500; font-size: 22px; letter-spacing: -.02em; margin-bottom: 6px; }
.verif { margin-top: 24px; }
.verif ul { list-style: none; }
.verif li { font-size: 14px; padding: 10px 0; border-top: 1px solid var(--line); }
.verif li.ok { color: var(--accent); }
.verif li.ko { color: var(--error); font-weight: 600; }

.switch { text-align: center; font-size: 14px; color: var(--muted); margin-top: 22px; }

@media (max-width: 480px) {
  main { padding: 32px 16px; }
  .card { padding: 24px 20px; }
}
