/* ============================================================
   BASE GLOBALE — STYLE FINTECH
============================================================ */

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

html, body {
  width: 100%;
  height: 100%;
  font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  background: #f7f8fa;
  color: #1a1a1a;
  line-height: 1.55;
  overflow-x: hidden;
}

body {
  font-size: 16px;
}

/* TITRES */
h1, h2, h3 {
  font-weight: 600;
  color: #0d1b2a;
}

h1 {
  margin-top: 24px;
  font-size: 26px;
  text-align: center;
}

/* INPUTS */
input[type="file"],
input[type="text"],
input[type="email"],
input[type="password"],
select {
  width: 100%;
  max-width: 360px;
  padding: 12px;
  border: 1px solid #d8dde3;
  border-radius: 8px;
  background: #ffffff;
  font-size: 15px;
  transition: 0.2s ease;
}

input:focus,
select:focus {
  border-color: #3a6ea5;
  box-shadow: 0 0 0 3px rgba(58,110,165,0.15);
  outline: none;
}

/* BOUTONS */
button {
  background: #3a6ea5;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 22px;
  font-size: 15px;
  cursor: pointer;
  transition: 0.25s ease;
}

button:hover {
  background: #2f5a87;
}

/* TABLES */
table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0,0,0,0.05);
  display: block;
  overflow-x: auto;
}

thead {
  background: #3a6ea5;
  color: #fff;
}

th, td {
  padding: 10px 12px;
  border-bottom: 1px solid #eceff2;
  font-size: 14px;
}

tbody tr:hover {
  background: #f3f6fa;
}

/* RESPONSIVE GLOBAL */
@media (max-width: 600px) {
  body { font-size: 15px; }
  input, select { font-size: 17px; padding: 14px; }
  button { font-size: 16px; }
}

/* ============================================================
   HEADER GLOBAL — STYLE FINTECH (ALIGNEMENT PARFAIT)
============================================================ */

#header {
  width: 100%;
  height: 10vh;                 /* Hauteur normale */
  min-height: 60px;             /* Sécurité mobile */
  max-height: 120px;            /* Pour éviter un header trop grand */
  margin: 0;
  padding: 0;
  background: none;
}

/* Contenu injecté */
.banner {
  width: 100%;
  height: 100%;
  background: #0d1b2a;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: center;      /* CENTRE le contenu */
  position: relative;           /* Permet de placer le logo à gauche */
  box-shadow: 0 1px 8px rgba(0,0,0,0.12);
  overflow: hidden;
}

/* Logo à gauche */
.banner-logo {
  position: absolute;
  left: 2rem;                   /* marge à gauche */
  top: 50%;
  transform: translateY(-50%);  /* centrage vertical parfait */
  height: 70%;                  /* taille idéale */
  display: flex;
  align-items: center;
}

.banner-logo svg {
  height: 100%;
  width: auto;
  max-height: 100%;
  display: block;
  pointer-events: none;
}

/* Texte CENTRÉ */
.banner-text {
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  text-align: center;
}


/* ============================================================
   PAGE CHOIX — STYLE FINTECH
============================================================ */

#page-choix {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: none;
}

#choix-main-container {
  flex: 1;
  max-width: 1200px;
  margin: auto;
  padding: 2rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#choix-titre {
  font-size: 1.4rem;
  font-weight: 600;
  color: #0d1b2a;
  margin-bottom: 2rem;
}

#choix-buttons-container {
  width: 100%;
  max-width: 900px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 600px) {
  #choix-buttons-container { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1000px) {
  #choix-buttons-container { grid-template-columns: repeat(3, 1fr); }
}

.choix-btn {
  padding: 0.85rem 1rem;
  border-radius: 8px;
  border: 1px solid #c7cdd8;
  background: #ffffff;
  color: #1b1f27;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.18s ease;
  text-align: center;
}

.choix-btn:hover {
  background: #3a6ea5;
  color: #ffffff;
  border-color: #3a6ea5;
}

/* ============================================================
   PAGE LOGIN — STYLE FINTECH
============================================================ */

#login-banner {
  width: 100%;
  background: #0d1b2a;
  color: #fff;
  padding: 1rem 2rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

#login-form-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

#login-form-container {
  background: #fff;
  padding: 2rem 2.5rem;
  max-width: 420px;
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 1px 10px rgba(0,0,0,0.06);
}

#login-title {
  font-size: 1.4rem;
  margin-bottom: 1.8rem;
  font-weight: 600;
  color: #0d1b2a;
}

.login-input {
  width: 100%;
  padding: 0.85rem 1rem;
  margin-bottom: 1.1rem;
  border: 1px solid #c7cdd8;
  border-radius: 8px;
  background: #f9fafc;
}

.login-input:focus {
  border-color: #3a6ea5;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(58,110,165,0.15);
}

#login-submit-btn {
  width: 100%;
  padding: 0.85rem 1rem;
  background: #3a6ea5;
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
}

#login-submit-btn:hover {
  background: #2f5a87;
}

#login-register-text {
  margin-top: 1.2rem;
  text-align: center;
  font-size: 0.9rem;
}

#login-register-link {
  color: #3a6ea5;
  font-weight: 600;
  text-decoration: none;
}

#login-register-link:hover {
  text-decoration: underline;
}

/* ============================================================
   PAGE TÂCHES — STYLE FINTECH + COULEURS PLEINES
============================================================ */

#tasks-header {
  background: #0d1b2a;
  padding: 1rem 2rem;
  box-shadow: 0 1px 10px rgba(0,0,0,0.12);
}

#tasks-banner {
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

#tasks-title {
  margin-top: 1rem;
  color: #fff;
  font-size: 1.6rem;
  font-weight: 600;
}

#tasks-form-section {
  max-width: 1100px;
  margin: 2rem auto;
  background: #fff;
  padding: 1.8rem 2rem;
  border-radius: 12px;
  box-shadow: 0 1px 10px rgba(0,0,0,0.06);
}

#tasks-form {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.tasks-input,
.tasks-select,
.tasks-select-multiple {
  flex: 1;
  min-width: 220px;
  padding: 1rem;
  border: 1px solid #c7cdd8;
  border-radius: 8px;
  background: #f9fafc;
  font-size: 1rem;
}

.tasks-input:focus,
.tasks-select:focus,
.tasks-select-multiple:focus {
  border-color: #3a6ea5;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(58,110,165,0.15);
}

#tasks-list-section {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0 1rem;
}

#tasks-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
}

@media (min-width: 1100px) {
  #tasks-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.task-item {
  background: #ffffff;
  padding: 1.6rem;
  border-radius: 12px;
  box-shadow: 0 1px 10px rgba(0,0,0,0.06);
  cursor: grab;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 1.05rem;
  line-height: 1.45;
  border-left: 8px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.task-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
}

.task-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: #0d1b2a;
}

.task-meta {
  margin-top: 0.8rem;
  font-size: 0.95rem;
  color: #4b5563;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.task-actions {
  margin-top: 1.4rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.8rem;
}

.task-actions button {
  padding: 0.5rem 0.9rem;
  font-size: 0.9rem;
  border-radius: 6px;
}

/* STATUTS — COULEURS PLEINES + TEXTE BLANC */
.task-status-notstarted {
  background: #d62828 !important;
  border-left-color: #b71d1d !important;
  color: #ffffff !important;
}

.task-status-progress {
  background: #f77f00 !important;
  border-left-color: #c86500 !important;
  color: #ffffff !important;
}

.task-status-done {
  background: #2a9d8f !important;
  border-left-color: #1f7a6f !important;
  color: #ffffff !important;
}

/* DRAG */
.task-dragging {
  opacity: 0.5;
  transform: scale(0.98);
}

/* RESPONSIVE — LISIBILITÉ SMARTPHONE */
@media (max-width: 600px) {
  .task-item {
    font-size: 1.15rem;
    padding: 1.8rem;
  }

  .task-title {
    font-size: 1.35rem;
  }

  .task-meta {
    font-size: 1.05rem;
  }

  .task-actions button {
    font-size: 1rem;
    padding: 0.6rem 1rem;
  }
}
