@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

:root{
  --blue: #1e3a8a;
  --red:  #dc2626;
  --bg:   #f3f4f6;
  --muted:#6b7280;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family:'Inter',sans-serif;
  background:var(--bg);
  color:#111827;
  -webkit-font-smoothing:antialiased;
}

.topbar{
  background:var(--blue);
  color:#fff;
  padding:14px 20px;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 3px 10px rgba(0,0,0,0.08);
}

.topbar .logo-center{ display:flex; align-items:center; justify-content:center; width:100%; }
.logo{ height:48px; display:block; }

/* Container */
.container{ max-width:1000px; margin:20px auto; padding:22px; }
.narrow{ max-width:760px; }

/* Card */
.form-card{
  background:#fff;
  padding:18px;
  border-radius:10px;
  box-shadow:0 6px 22px rgba(15,23,42,0.06);
}

/* Typography */
h1{ color:var(--blue); margin:0 0 12px 0; }
h2{ color:var(--blue); margin:0 0 18px 0; }

/* Inputs */
label{ display:block; font-weight:500; margin-bottom:6px; }
input, select, textarea {
  width:100%;
  padding:10px 12px;
  border-radius:8px;
  border:1px solid #e5e7eb;
  margin-bottom:12px;
  font-size:14px;
}

/* Buttons */
.btn {
  display:inline-block;
  padding:10px 14px;
  border-radius:8px;
  text-decoration:none;
  color:#fff;
  background:var(--red);
  border:none;
  cursor:pointer;
}
.btn:hover{ background:#b91c1c; }

/* Table */
.table{
  width:100%;
  border-collapse:collapse;
  background:#fff;
  border-radius:8px;
  overflow:hidden;
  box-shadow:0 6px 18px rgba(15,23,42,0.04);
}
.table th,.table td{ padding:12px 14px; border-bottom:1px solid #eef2f7; text-align:left; }
.table th{ background:#fbfdff; font-weight:600; color:#374151; }

/* Action links */
.actions a{ display:inline-block; margin-right:8px; padding:6px 10px; border-radius:6px; background:var(--red); color:#fff; text-decoration:none; font-size:13px; }
.actions a.ghost{ background:#fff; color:var(--blue); border:1px solid #e5e7eb; }

/* Panels on home */
.grid{ display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-top:12px; }
.panel{ display:block; padding:18px; border-radius:10px; background:#fff; box-shadow:0 6px 18px rgba(15,23,42,0.04); text-decoration:none; color:inherit; }

/* Notifications */
.error{ background:#fee2e2; color:#991b1b; padding:10px; border-radius:8px; }
.success{ background:#ecfdf5; color:#065f46; padding:10px; border-radius:8px; }

/* Footer */
.site-footer{ text-align:center; padding:18px 0; color:var(--muted); font-size:13px; }

/* Responsiveness */
@media(max-width:720px){
  .grid{ grid-template-columns:1fr; }
  .logo{ height:40px; }
  .container{ padding:12px; }
}
/* ==== HEADER ==== */
.topbar {
  background: var(--blue);
  color: #fff;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between; /* espace entre les 3 colonnes */
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.topbar-left, .topbar-center, .topbar-right {
  display: flex;
  align-items: center;
}

.topbar-left { flex:1; }
.topbar-center { flex:1; justify-content: center; }
.topbar-right { flex:1; justify-content: flex-end; }

.logo { height:48px; }

/* Bouton Déconnexion */
.btn-logout {
  background: var(--red);
  color: #fff;
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s ease;
}

.btn-logout:hover {
  background: #b91c1c;
}

.btn-webmail {
  background: #fff;
  color: var(--blue);
}

.btn-webmail:hover {
  background: #f3f4f6;
  color: var(--blue);
  text-decoration: none;
}

/* Mobile */
@media (max-width: 720px) {
  .btn-logout { padding:6px 10px; font-size:13px; }
  .logo { height:40px; }
}

/* ==== Bouton Changer mot de passe ==== */
.btn-change {
  background: #1e40af; /* bleu foncé */
  color: #fff;
  margin-right: 8px;
}

.btn-change:hover {
  background: #1d4ed8; /* bleu un peu plus vif */
  text-decoration: none;
}

/* Ajuste l’espace entre les boutons à droite */
.topbar-right .btn + .btn {
  margin-left: 8px;
}

.form-card {
  background: #fff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  max-width: 420px;
  margin: 20px auto;
}

.form-card label {
  display: block;
  margin-bottom: 15px;
}

.form-card input {
  width: 100%;
  padding: 8px 10px;
  margin-top: 5px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.success {
  background: #dcfce7;
  color: #166534;
  padding: 8px 10px;
  margin-bottom: 10px;
  border-radius: 6px;
}

.error {
  background: #fee2e2;
  color: #991b1b;
  padding: 8px 10px;
  margin-bottom: 10px;
  border-radius: 6px;
}

button {
  background: var(--blue);
  color: #fff;
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

button:hover {
  background: #1e3a8a;
}

