/* =============================================================================
   saidcrm — feuille de style
   Palette dérivée du logo Atlas Cement : bleu marine et orange brûlé,
   sur des gris à teinte ciment.
   ========================================================================== */

:root {
  --marine: #1a2260;
  --marine-clair: #2c3785;
  --orange: #e8420d;
  --orange-sombre: #c53509;

  --fond: #f2f2ef;
  --surface: #ffffff;
  --surface-2: #e8e9e4;
  --bordure: #d5d6cf;
  --bordure-forte: #b8bab1;

  --texte: #16181d;
  --texte-2: #565b64;
  --texte-3: #82868d;

  --succes: #2f6a45;
  --alerte: #a5741a;
  --erreur: #a5321a;
  --erreur-fond: #f6e3dd;

  --rayon: 4px;
  --ombre: 0 1px 2px rgba(22, 24, 29, .07), 0 4px 12px rgba(22, 24, 29, .05);
}

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

body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { letter-spacing: -.015em; line-height: 1.2; text-wrap: balance; }

a { color: var(--marine-clair); }

/* --- Écran de connexion --------------------------------------------------- */
.ecran-auth {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.carte-auth {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
  padding: 32px;
}

.marque {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  text-align: center;
}
.marque img { width: 96px; height: auto; }
.marque .nom {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--texte-3);
}

/* --- Formulaires ---------------------------------------------------------- */
.champ { margin-bottom: 16px; }
.champ label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--texte-2);
  margin-bottom: 6px;
}
.champ input {
  width: 100%;
  padding: 10px 12px;
  font: inherit;
  color: var(--texte);
  background: var(--surface);
  border: 1px solid var(--bordure-forte);
  border-radius: var(--rayon);
}
.champ input:focus {
  outline: 2px solid var(--marine-clair);
  outline-offset: 1px;
  border-color: var(--marine-clair);
}
.champ .aide { font-size: 13px; color: var(--texte-3); margin-top: 6px; }

.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 11px 18px;
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: var(--marine);
  border: 1px solid var(--marine);
  border-radius: var(--rayon);
  cursor: pointer;
}
.bouton:hover { background: var(--marine-clair); border-color: var(--marine-clair); }
.bouton:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

/* --- Messages ------------------------------------------------------------- */
.message {
  padding: 11px 14px;
  border-radius: var(--rayon);
  font-size: 14px;
  margin-bottom: 18px;
  border-left: 3px solid;
}
.message.erreur { background: var(--erreur-fond); border-color: var(--erreur); color: var(--erreur); }
.message.info   { background: var(--surface-2); border-color: var(--marine); color: var(--texte-2); }

/* --- Coquille applicative ------------------------------------------------- */
.entete {
  background: var(--marine);
  color: #fff;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  height: 54px;
}
.entete .titre { font-weight: 600; letter-spacing: .02em; }
.entete .pousse { margin-left: auto; }
.entete .identite { font-size: 13px; opacity: .85; }
.entete a { color: #fff; }

.contenu { max-width: 1100px; margin: 0 auto; padding: 28px 20px 64px; }

.panneau {
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  padding: 22px;
  margin-bottom: 18px;
}

.etiquette {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 2px;
  background: var(--surface-2);
  color: var(--texte-2);
}

table.liste { width: 100%; border-collapse: collapse; font-size: 14px; }
table.liste th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--texte-3);
  padding: 0 12px 8px 0;
  border-bottom: 1px solid var(--bordure-forte);
}
table.liste td { padding: 9px 12px 9px 0; border-bottom: 1px solid var(--bordure); }
.nombre { font-variant-numeric: tabular-nums; text-align: right; }

.pied {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 20px 40px;
  font-size: 12px;
  color: var(--texte-3);
}

@media (max-width: 640px) {
  .carte-auth { padding: 24px 20px; }
  .entete { padding: 0 14px; gap: 12px; }
}
