/* ════════════════════════════════════════════
   JANOOS MOBILE — Styles.css
   ════════════════════════════════════════════ */

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

/* ── Base ── */
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background-color: #5f7073;
  display: flex;
  flex-direction: column;
  font-family: Helvetica, Arial, sans-serif;
  color: #000;
  font-size: 17px;
}

/* ════════════════════════════════════════════
   LOGO
   ════════════════════════════════════════════ */
.logo-wrap {
  background: #fff;
  text-align: center;
  border-bottom: 3px solid #a2b4b9;
}
.logo-wrap img {
  width: 100%;
  max-width: 480px;
  display: block;
  margin: 0 auto;
}

/* ════════════════════════════════════════════
   FOOTER BANDES
   ════════════════════════════════════════════ */
.footer-bands {
  background: url(Images/Trois_Bandes.png) repeat-x;
  height: 64px;
  flex-shrink: 0;
}

/* ════════════════════════════════════════════
   PAGE LOGIN
   ════════════════════════════════════════════ */
.login-outer {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}
.login-card {
  background: rgba(255,255,255,0.97);
  border-radius: 16px;
  padding: 32px 28px 28px;
  width: 100%;
  max-width: 360px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}
.login-title {
  font-size: 22px;
  font-weight: 600;
  color: #3a5055;
  text-align: center;
  margin: 0 0 28px;
  letter-spacing: 0.5px;
}

/* ── Champs formulaire ── */
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #5f7073;
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}
.form-group input {
  display: block;
  width: 100%;
  height: 48px;
  padding: 0 14px;
  font-size: 16px;
  font-family: Helvetica, Arial, sans-serif;
  color: #2a3a3d;
  background: #f4f7f8;
  border: 1.5px solid #c8d5d8;
  border-radius: 10px;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
  -webkit-appearance: none;
}
.form-group input:focus {
  border-color: #5f7073;
  background: #fff;
}

/* ── Bouton connexion ── */
.btn-connect {
  display: block;
  width: 100%;
  height: 52px;
  margin-top: 28px;
  background: #5f7073;
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  font-family: Helvetica, Arial, sans-serif;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: background 0.15s, transform 0.1s;
  -webkit-appearance: none;
}
.btn-connect:hover  { background: #4a5a5d; }
.btn-connect:active { background: #3a4a4d; transform: scale(0.98); }

/* ════════════════════════════════════════════
   PAGES LISTE (sociétés, menus, modules)
   ════════════════════════════════════════════ */
.main {
  flex: 1;
  padding: 16px 12px;
}

/* Label de section (ex: "Sociétés", "Gestion Commerciale") */
.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  padding: 4px 4px 10px;
}

/* Liste de navigation */
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nav-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 0 18px;
  background: rgba(255,255,255,0.13);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 12px;
  font-size: 17px;
  font-family: Helvetica, Arial, sans-serif;
  color: #fff;
  text-decoration: none;
  transition: background 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.nav-list li a:hover,
.nav-list li a:active {
  background: rgba(255,255,255,0.25);
}
/* Chevron droit */
.nav-list li a::after {
  content: '\203A';
  font-size: 22px;
  opacity: 0.4;
  line-height: 1;
  margin-left: 8px;
  flex-shrink: 0;
}

/* Bouton retour — variante discrète */
.nav-list li.back a {
  min-height: 44px;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  background: rgba(0,0,0,0.15);
  border-color: rgba(255,255,255,0.1);
  margin-bottom: 6px;
}
.nav-list li.back a::before {
  content: '\2039';
  font-size: 22px;
  opacity: 0.5;
  margin-right: 8px;
  line-height: 1;
}
.nav-list li.back a::after {
  display: none;
}

/* ════════════════════════════════════════════
   COMPATIBILITÉ — anciennes classes ASP
   (conservées pour les pages non encore migrées)
   ════════════════════════════════════════════ */
.FondGris     { background-color: #79878A; }
.FondGrisClair{ background-color: #A2B4B9; }
.FondBlanc    { background-color: #FFFFFF; }
.Blanc        { color: #FFFFFF; }
.Gris         { color: #828282; }
.Titre        { font-size: 46px; }
.STitre       { font-size: 30px; }
.Petit        { font-size: 14px; }

a {
  font-family: Helvetica, Arial, sans-serif;
  text-decoration: none;
  color: #000;
}
a:hover        { text-decoration: underline; }
a.Blanc        { color: #fff; }
a.Blanc:hover  { text-decoration: underline; color: #fff; }

/* Empêche les images de déborder sur les vieilles pages */
img, table, td, textarea, input, iframe, video {
  max-width: 100%;
}
img { height: auto; }
.hide_mobile { display: none !important; }

/* ════════════════════════════════════════════
   PAGES FORMULAIRE
   ════════════════════════════════════════════ */

/* Carte blanche qui enveloppe un formulaire */
.form-card {
  background: rgba(255,255,255,0.97);
  border-radius: 16px;
  padding: 24px 20px 20px;
  margin-bottom: 12px;
}
.form-card-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #5f7073;
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e0e8ea;
}

/* Champ générique dans un formulaire */
.form-card .form-group {
  margin-bottom: 16px;
}
.form-card .form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #5f7073;
  margin-bottom: 6px;
}
.form-card .form-group select,
.form-card .form-group textarea {
  display: block;
  width: 100%;
  font-size: 16px;
  font-family: Helvetica, Arial, sans-serif;
  color: #2a3a3d;
  background: #f4f7f8;
  border: 1.5px solid #c8d5d8;
  border-radius: 10px;
  padding: 0 14px;
  outline: none;
  -webkit-appearance: none;
  transition: border-color 0.15s, background 0.15s;
}
.form-card .form-group select {
  height: 48px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235f7073' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.form-card .form-group textarea {
  padding: 12px 14px;
  height: 90px;
  resize: none;
  line-height: 1.5;
}
.form-card .form-group select:focus,
.form-card .form-group textarea:focus {
  border-color: #5f7073;
  background: #fff;
}

/* Radio Oui/Non */
.radio-group {
  display: flex;
  gap: 10px;
}
.radio-group label {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: #2a3a3d;
  cursor: pointer;
  white-space: nowrap;
}
/* Cacher le radio natif */
.radio-group input[type="radio"] {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  min-width: 22px;
  margin: 0;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid #a2b4b9;
  background: #f4f7f8;
  cursor: pointer;
  position: relative;
  transition: border-color 0.15s, background 0.15s;
}
/* Point central quand coché */
.radio-group input[type="radio"]::after {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: transparent;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: background 0.15s;
}
.radio-group input[type="radio"]:checked {
  border-color: #5f7073;
  background: #fff;
}
.radio-group input[type="radio"]:checked::after {
  background: #5f7073;
}

/* Bouton submit dans une form-card */
.btn-action {
  display: block;
  width: 100%;
  height: 52px;
  margin-top: 20px;
  background: #5f7073;
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  font-family: Helvetica, Arial, sans-serif;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: background 0.15s, transform 0.1s;
  -webkit-appearance: none;
}
.btn-action:hover  { background: #4a5a5d; }
.btn-action:active { background: #3a4a4d; transform: scale(0.98); }
.btn-action.btn-stop {
  background: #8a4a4a;
}
.btn-action.btn-stop:hover  { background: #7a3a3a; }
.btn-action.btn-stop:active { background: #6a2a2a; transform: scale(0.98); }

/* ════════════════════════════════════════════
   TABLEAU DE DONNÉES (dashboard, créances...)
   ════════════════════════════════════════════ */

.data-card {
  background: rgba(255,255,255,0.97);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 10px;
}
.data-card-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #5f7073;
  padding: 12px 16px 8px;
  border-bottom: 1px solid #e0e8ea;
}
.data-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 16px;
  border-bottom: 1px solid #eef2f3;
  font-size: 15px;
  color: #2a3a3d;
}
.data-row:last-child {
  border-bottom: none;
}
.data-row .lbl {
  color: #4a5a5d;
  font-size: 14px;
}
.data-row .val {
  font-weight: 600;
  color: #4a5a5d;
  text-align: right;
  white-space: nowrap;
}
/* Ligne accentuée (exercice courant) */
.data-row.accent {
  background: #f0f5f6;
}
.data-row.accent .lbl,
.data-row.accent .val {
  color: #1a3035;
}
/* Séparateur visuel entre groupes */
.data-divider {
  height: 1px;
  background: transparent;
  margin: 6px 0;
}

/* Lien facture dans une data-row */
a.facture-link {
  color: #3a7abf;
  font-weight: 600;
  text-decoration: none;
}
a.facture-link:hover {
  text-decoration: underline;
}

/* Nom client sous le numéro de facture */
.data-row .client {
  font-size: 13px;
  color: #7a9098;
  font-weight: 400;
}

/* ════════════════════════════════════════════
   NAV-LIST AVEC VALEUR (comptes bancaires...)
   ════════════════════════════════════════════ */
.nav-list li a .nav-label {
  flex: 1;
  text-align: left;
}
.nav-list li a .nav-val {
  font-size: 15px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  margin-right: 6px;
  white-space: nowrap;
  text-align: right;
}
.nav-list li a .nav-val.negative {
  color: #f4a0a0;
}



/* ════════════════════════════════════════════
   LIGNE TOTAL dans une data-card
   ════════════════════════════════════════════ */
.data-row.total {
  border-top: 1.5px solid #c8d5d8;
  margin-top: 2px;
}
.data-row.total .lbl,
.data-row.total .val {
  font-weight: 700;
  color: #1a3035;
}

/* Bandeau résultat en bas de page */
.result-banner {
  background: #5f7073;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
}
