/* Variables CSS Conveo */
:root {
  --conveo-blue: #030054;
  --conveo-green: #5E9935;
  --conveo-primary: #030054;
  --conveo-secondary: #5E9935;
  --conveo-tertiary: #AEAFB3;
  --conveo-primary-light: #1a1a7e;
  --conveo-primary-dark: #020042;
  --conveo-secondary-light: #7db553;
  --conveo-secondary-dark: #4a7829;
  --conveo-success: #5E9935;
  --conveo-warning: #ffc107;
  --conveo-danger: #e74c3c;
  --conveo-info: #17a2b8;
  --conveo-background: #f8f9fa;
  --conveo-surface: #ffffff;
  --conveo-border: #e9ecef;
  --conveo-text: #333333;
  --conveo-text-light: #666666;
  --conveo-text-muted: #999999;
}
/* Layout principal */
.auth-layout {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
}

/* Fond bleu uniforme Conveo */
.auth-background {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #030054; /* Bleu Conveo uniforme */
  z-index: 0;
}

/* Contenu centré */
.auth-content {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  padding: 40px 20px 60px;
}

.auth-container {
  width: 100%;
  max-width: 480px;
  animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Card */
.auth-card {
  background: white;
  border-radius: 16px;
  padding: 48px 40px 32px 40px;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.auth-card:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 30px 80px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.2);
}

/* Logo image en haut de la card */
.auth-card-logo {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 2px solid #f0f0f0;
}

.conveo-logo {
  max-width: 200px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Footer dans la card */
.auth-card-footer {
  text-align: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #f0f0f0;
  color: #999;
  font-size: 13px;
}

.auth-card-footer p {
  margin: 0;
}

/* Responsive */
@media (max-width: 576px) {
  .auth-card {
    padding: 32px 24px 24px 24px;
  }

  .conveo-logo {
    max-width: 150px;
  }
}
/* Header du formulaire (conservé pour d’autres écrans auth si besoin) */
.login-header {
  text-align: center;
  margin-bottom: 32px;
}

.login-header h2 {
  font-size: 28px;
  font-weight: 700;
  color: #030054;
  margin: 0 0 8px 0;
}

.login-header p {
  font-size: 15px;
  color: #666;
  margin: 0;
}

/* Labels */
.login-form-container .ant-form-item-label>label {
  font-weight: 600;
  color: #030054;
  font-size: 14px;
}

.login-forgot-row {
  text-align: center;
  margin: -12px 0 16px;
}

.forgot-link {
  color: #5E9935;
  font-weight: 500;
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: 13px;
  transition: color 0.3s ease;
}

.forgot-link:hover {
  color: #4a7a28;
  text-decoration: underline;
}

.login-remember {
  margin: -8px 0 20px;
}

.login-remember .ant-checkbox-wrapper {
  color: #475569;
  font-size: 14px;
}

/* Icônes FontAwesome */
.input-icon {
  color: #5E9935;
  font-size: 16px;
  margin-right: 8px;
}

/* Inputs personnalisés */
.login-form-container .custom-input {
  border-radius: 10px;
  border: 2px solid #e8e8e8;
  padding: 12px 16px 12px 44px !important;
  font-size: 15px;
  transition: all 0.3s ease;
}

.login-form-container .custom-input:hover {
  border-color: #5E9935;
}

.login-form-container .custom-input:focus,
.login-form-container .custom-input.ant-input-focused {
  border-color: #5E9935;
  box-shadow: 0 0 0 4px rgba(94, 153, 53, 0.1);
}

/* Fix pour Input.Password avec FontAwesome (page login uniquement) */
.login-form-container .ant-input-password {
  border-radius: 10px;
  border: 2px solid #e8e8e8;
  padding: 8px 16px 8px 44px !important;
  transition: all 0.3s ease;
}

.login-form-container .ant-input-password:hover {
  border-color: #5E9935;
}

.login-form-container .ant-input-password:focus,
.login-form-container .ant-input-password.ant-input-focused {
  border-color: #5E9935;
  box-shadow: 0 0 0 4px rgba(94, 153, 53, 0.1);
}

.login-form-container .ant-input-password .ant-input {
  padding: 4px 0;
}

/* Assurer que les icônes soient bien positionnées */
.login-form-container .ant-input-prefix {
  margin-right: 8px;
  display: flex;
  align-items: center;
}

/* Options de connexion */
.login-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.login-password-label {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.forgot-link {
  color: #5E9935;
  font-weight: 500;
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: 13px;
  transition: color 0.3s ease;
}

.forgot-link:hover {
  color: #4a7a28;
  text-decoration: underline;
}

.login-remember {
  margin: -8px 0 20px;
}

.login-remember .ant-checkbox-wrapper {
  color: #475569;
  font-size: 14px;
}

.login-alt-divider.ant-divider {
  margin: 28px 0 20px;
  color: #64748b;
  font-size: 13px;
  border-color: #e2e8f0;
}

.login-alt-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.login-alt-button {
  height: 46px !important;
  border-radius: 10px !important;
  border: 2px solid #e8e8e8 !important;
  background: #fff !important;
  color: #030054 !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: none !important;
}

.login-alt-button:hover:not(:disabled) {
  border-color: #5E9935 !important;
  color: #030054 !important;
  background: #f8fafc !important;
}

.login-alt-button .ant-btn-icon {
  display: inline-flex;
  align-items: center;
}

/* Bouton de connexion (vert) */
.login-button {
  background: linear-gradient(135deg, #5E9935 0%, #4a7a28 100%);
  border: none;
  border-radius: 10px;
  height: 50px;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(94, 153, 53, 0.3);
  transition: all 0.3s ease;
}

.login-button:hover {
  background: linear-gradient(135deg, #4a7a28 0%, #3d6522 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(94, 153, 53, 0.4);
}

.login-button:active {
  transform: translateY(0);
}

/* Section inscription */
.register-section {
  text-align: center;
  margin-top: 24px;
}

.register-section p {
  color: #666;
  margin-bottom: 12px;
  font-size: 14px;
}

/* Bouton "Créer un compte" (BLEU Conveo) */
.register-button {
  border: 2px solid #030054;
  /* Bleu Conveo */
  color: #030054;
  border-radius: 10px;
  height: 50px;
  font-size: 16px;
  font-weight: 600;
  background: white;
  transition: all 0.3s ease;
}

.register-button:hover {
  background: #030054;
  /* Bleu Conveo */
  color: white;
  border-color: #030054;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(3, 0, 84, 0.3);
}

/* Divider */
.ant-divider {
  margin: 24px 0;
  color: #999;
  font-size: 14px;
}

/* Checkbox */
.ant-checkbox-checked .ant-checkbox-inner {
  background-color: #5E9935;
  border-color: #5E9935;
}

.ant-checkbox-wrapper:hover .ant-checkbox-inner {
  border-color: #5E9935;
}

/* Animation du formulaire */
.login-form-container {
  animation: formFadeIn 0.5s ease;
}

@keyframes formFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}



/* Responsive */
@media (max-width: 576px) {
  .login-header h2 {
    font-size: 24px;
  }

  .login-options {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
}/* Header du formulaire */
.register-header {
  text-align: center;
  margin-bottom: 32px;
}

.register-header h2 {
  font-size: 28px;
  font-weight: 700;
  color: #030054;
  margin: 0 0 8px 0;
}

.register-header p {
  font-size: 15px;
  color: #666;
  margin: 0;
}

/* Rangée de formulaire (2 colonnes) */
.form-row {
  display: flex;
  gap: 16px;
  margin-bottom: 0;
}

.half-width {
  flex: 1;
}

/* Select personnalisé */
.custom-select .ant-select-selector {
  border-radius: 10px !important;
  border: 2px solid #e8e8e8 !important;
  padding: 8px 16px !important;
  height: auto !important;
  transition: all 0.3s ease;
}

.custom-select:hover .ant-select-selector {
  border-color: #5E9935 !important;
}

.custom-select.ant-select-focused .ant-select-selector {
  border-color: #5E9935 !important;
  box-shadow: 0 0 0 4px rgba(94, 153, 53, 0.1) !important;
}

/* Bouton d'inscription */
.register-submit-button {
  background: linear-gradient(135deg, #5E9935 0%, #4a7a28 100%);
  border: none;
  border-radius: 10px;
  height: 50px;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(94, 153, 53, 0.3);
  transition: all 0.3s ease;
  margin-top: 8px;
}

.register-submit-button:hover {
  background: linear-gradient(135deg, #4a7a28 0%, #3d6522 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(94, 153, 53, 0.4);
}

.register-submit-button:active {
  transform: translateY(0);
}

/* Section connexion */
.login-section {
  text-align: center;
  margin-top: 24px;
}

.login-section p {
  color: #666;
  margin-bottom: 12px;
  font-size: 14px;
}

.login-link-button {
  border: 2px solid #030054;
  color: #030054;
  border-radius: 10px;
  height: 50px;
  font-size: 16px;
  font-weight: 600;
  background: white;
  transition: all 0.3s ease;
}

.login-link-button:hover {
  background: #030054;
  color: white;
  border-color: #030054;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(3, 0, 84, 0.2);
}

/* Cartes formule — prix centré dans le badge gris */
.plan-card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.plan-card-info {
  flex: 1;
  min-width: 0;
}

.plan-price-tag {
  flex-shrink: 0;
  min-width: 96px;
  margin: 0 !important;
  padding: 8px 14px !important;
  text-align: center;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 8px !important;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.25;
  white-space: nowrap;
}

.plan-price-tag.ant-tag-default {
  background: #f0f0f0 !important;
  border: 1px solid #e8e8e8 !important;
  color: #333 !important;
}

.plan-price-tag.ant-tag-green {
  text-align: center;
}

/* Animation du formulaire */
.register-form-container {
  animation: formSlideIn 0.5s ease;
}

@keyframes formSlideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Force de mot de passe */
.register-form-container .ant-form-item-has-success .ant-input-password {
  border-color: #5E9935;
}

.register-form-container .ant-form-item-has-error .ant-input-password {
  border-color: #ff4d4f;
}

/* Feedback visuel */
.register-form-container .ant-input-password-icon {
  color: #5E9935;
}

/* Responsive */
@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .half-width {
    width: 100%;
  }

  .register-header h2 {
    font-size: 24px;
  }
}

/* Messages de validation */
.ant-form-item-explain-error {
  font-size: 13px;
  margin-top: 4px;
}

/* Style des icônes dans les inputs */
.register-form-container .ant-input-prefix {
  margin-right: 12px;
  display: inline-flex;
  align-items: center;
  flex: none;
}

/* Mot de passe — prefix à gauche (sans le padding Login.css) */
.register-form-container .ant-input-affix-wrapper.ant-input-password {
  padding: 4px 11px !important;
  border-radius: 10px;
  border: 2px solid #e8e8e8;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.register-form-container .ant-input-affix-wrapper.ant-input-password:hover {
  border-color: #5E9935;
}

.register-form-container .ant-input-affix-wrapper.ant-input-password-focused {
  border-color: #5E9935;
  box-shadow: 0 0 0 4px rgba(94, 153, 53, 0.1);
}

.register-form-container .ant-input-affix-wrapper .ant-input {
  padding: 4px 0;
}
/* Document juridique type PDF — CGV / CGP (web + impression) */

:root {
  --legal-doc-font: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --legal-doc-ink: #1c1917;
  --legal-doc-muted: #57534e;
  --legal-doc-rule: #d6d3d1;
  --legal-doc-desk: #e7e5e4;
  --legal-doc-paper: #fffcf7;
}

.legal-doc-desk {
  background:
    radial-gradient(ellipse at 30% 0%, rgba(94, 153, 53, 0.06), transparent 50%),
    linear-gradient(180deg, #ebe8e4 0%, var(--legal-doc-desk) 100%);
  padding: 28px 16px 48px;
  min-height: 100%;
  box-sizing: border-box;
}

.legal-doc-desk--compact {
  padding: 12px;
  min-height: 0;
  background: #ebe8e4;
  border-radius: 10px;
}

.legal-doc-sheet {
  font-family: var(--legal-doc-font);
  color: var(--legal-doc-ink);
  background: var(--legal-doc-paper);
  max-width: 794px; /* ~A4 */
  margin: 0 auto;
  padding: 48px 56px 56px;
  box-sizing: border-box;
  border: 1px solid #d6d3d1;
  box-shadow:
    0 1px 2px rgba(28, 25, 23, 0.04),
    0 12px 28px rgba(28, 25, 23, 0.1);
  border-radius: 2px;
}

.legal-doc-sheet--embedded {
  padding: 28px 32px 32px;
  max-height: 440px;
  overflow: auto;
  box-shadow:
    0 1px 2px rgba(28, 25, 23, 0.04),
    0 6px 16px rgba(28, 25, 23, 0.08);
}

.legal-doc-sheet--modal {
  padding: 28px 32px 36px;
  max-height: min(62vh, 720px);
  overflow: auto;
  margin: 0;
  max-width: none;
  box-shadow: none;
  border: 1px solid var(--legal-doc-rule);
}

.legal-doc-kicker {
  display: block;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--legal-doc-muted);
  margin: 0 0 10px;
}

.legal-doc-title {
  font-family: var(--legal-doc-font);
  text-align: center;
  font-size: 22px;
  font-weight: 650;
  line-height: 1.25;
  color: #030054;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.legal-doc-subtitle {
  display: block;
  text-align: center;
  font-size: 13.5px;
  color: var(--legal-doc-muted);
  margin: 0 0 20px;
  line-height: 1.4;
}

.legal-doc-rule {
  border: none;
  border-top: 1px solid var(--legal-doc-rule);
  margin: 0 0 24px;
}

.legal-doc-body {
  margin: 0;
  white-space: pre-wrap;
  font-family: var(--legal-doc-font);
  font-size: 15px;
  line-height: 1.7;
  color: var(--legal-doc-ink);
  word-break: break-word;
}

.legal-doc-sheet--embedded .legal-doc-body,
.legal-doc-sheet--modal .legal-doc-body {
  font-size: 14.5px;
  line-height: 1.68;
}

/* Contenu structuré (articles Ant Design Typography) */
.legal-doc-rich .ant-typography,
.legal-doc-rich h1.ant-typography,
.legal-doc-rich h2.ant-typography,
.legal-doc-rich h3.ant-typography,
.legal-doc-rich h4.ant-typography,
.legal-doc-rich .ant-typography p,
.legal-doc-rich p {
  font-family: var(--legal-doc-font) !important;
  color: var(--legal-doc-ink);
}

.legal-doc-rich h2.ant-typography {
  font-size: 16px !important;
  font-weight: 650 !important;
  margin-top: 1.4em !important;
  margin-bottom: 0.55em !important;
  color: #030054 !important;
}

.legal-doc-rich .ant-typography {
  font-size: 15px;
  line-height: 1.7;
}

.legal-doc-toolbar {
  max-width: 794px;
  margin: 0 auto 16px;
}

@media (max-width: 640px) {
  .legal-doc-desk {
    padding: 12px 8px 28px;
  }

  .legal-doc-sheet {
    padding: 28px 20px 36px;
  }

  .legal-doc-sheet--embedded,
  .legal-doc-sheet--modal {
    padding: 20px 16px 24px;
  }

  .legal-doc-title {
    font-size: 18px;
  }

  .legal-doc-body {
    font-size: 14.5px;
  }
}

@media print {
  .legal-doc-desk {
    background: white;
    padding: 0;
  }

  .legal-doc-sheet {
    box-shadow: none;
    border: none;
    max-width: none;
    padding: 0;
  }

  .legal-doc-toolbar {
    display: none !important;
  }
}
/* @tailwind directives removed because Tailwind CSS is not being processed */

:root {
  --unused-var: none;
}

/* Reset et base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: white;
  max-width: 100%;
  overflow-x: hidden;
}

html,
#root {
  max-width: 100%;
  overflow-x: hidden;
}

/* Contenu layout Ant Design : autorise le shrink sur mobile */
.ant-layout,
.ant-layout-content,
.ant-layout-header {
  min-width: 0 !important;
  max-width: 100%;
}

.conveo-page-content {
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
}

.conveo-table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  /* Indices de débordement (fade) — visibles surtout sur mobile */
  background:
    linear-gradient(90deg, #fff 60%, rgba(255, 255, 255, 0)) 0 0 / 28px 100% local,
    linear-gradient(270deg, #fff 60%, rgba(255, 255, 255, 0)) 100% 0 / 28px 100% local,
    linear-gradient(90deg, rgba(15, 23, 42, 0.08), transparent) 0 0 / 12px 100% local,
    linear-gradient(270deg, rgba(15, 23, 42, 0.08), transparent) 100% 0 / 12px 100% local;
  background-repeat: no-repeat;
  background-attachment: local, local, scroll, scroll;
}

.conveo-table-scroll-inner {
  width: 100%;
}

.conveo-table-scroll table {
  width: 100%;
  border-collapse: collapse;
}

/* Sur petit écran, barre de scroll un peu plus visible */
@media (max-width: 767px) {
  .conveo-table-scroll {
    scrollbar-width: thin;
    scrollbar-color: #94a3b8 transparent;
  }

  .conveo-table-scroll::-webkit-scrollbar {
    height: 8px;
  }

  .conveo-table-scroll::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 999px;
  }

  .conveo-table-scroll::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 999px;
  }
}

.conveo-hide-sm {
  display: inline;
}

@media (max-width: 767px) {
  .conveo-hide-sm {
    display: none !important;
  }

  .conveo-header-title {
    font-size: 15px !important;
    max-width: 42vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* Harmoniser titres / UI (évite Times New Roman navigateur) */
html,
#root,
h1, h2, h3, h4, h5, h6,
button, input, select, textarea, label, span, p, a, li, td, th {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
}

.chauffeur-shell,
.chauffeur-shell * {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
}

/* Garder le fond gris uniquement pour les layouts principaux */
.ant-layout-content {
  background: #f5f5f5 !important;
}

/* Amélioration des cartes */
.ant-card {
  border-radius: 12px !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08) !important;
  border: 1px solid #e8e8e8 !important;
  transition: all 0.3s ease !important;
}

.ant-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12) !important;
  transform: translateY(-2px);
}

/* Amélioration des tableaux */
.ant-table {
  border-radius: 12px !important;
  overflow: hidden;
}

.ant-table-thead>tr>th {
  background: #fafafa !important;
  font-weight: 600 !important;
  color: #030054 !important;
  border-bottom: 2px solid #e8e8e8 !important;
}

.ant-table-tbody>tr:hover>td {
  background: #f0f8ff !important;
}

/* Amélioration des statistiques */
.ant-statistic-title {
  color: #666 !important;
  font-weight: 500 !important;
  margin-bottom: 8px !important;
}

.ant-statistic-content {
  color: #030054 !important;
  font-weight: 600 !important;
}

/* Amélioration des boutons */
.ant-btn {
  border-radius: 8px !important;
  font-weight: 500 !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
  transition: all 0.3s ease !important;
}

.ant-btn:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15) !important;
}

/* Amélioration des tags */
.ant-tag {
  border-radius: 20px !important;
  padding: 4px 12px !important;
  font-weight: 500 !important;
  border: none !important;
}

/* Amélioration des progress bars */
.ant-progress-bg {
  border-radius: 10px !important;
}

.ant-progress-inner {
  border-radius: 10px !important;
  background: #f0f0f0 !important;
}

/* Layout améliorations */
.ant-layout-content {
  background: #f5f5f5 !important;
}

/* Headers de pages */
h1 {
  color: inherit;
  /* ← CHANGE EN inherit au lieu de #030054 */
  font-weight: 700 !important;
  margin-bottom: 24px !important;
  font-size: 28px !important;
}

/* Appliquer le bleu foncé UNIQUEMENT dans le contenu Ant Design */
.ant-layout-content h1 {
  color: #030054 !important;
}


/* Sidebar améliorée */
.ant-menu-dark.ant-menu-inline .ant-menu-item-selected {
  background-color: rgba(94, 153, 53, 0.15) !important;
  border-right: 3px solid #5E9935 !important;
}

.ant-menu-dark .ant-menu-item:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
}

/* Calendriers semaine/mois : scroll horizontal sur téléphone */
.conveo-calendar-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.conveo-calendar-scroll > * {
  min-width: 560px;
}

/* Responsive améliorations */
@media (max-width: 768px) {
  .ant-statistic {
    text-align: center;
  }

  .ant-card {
    margin-bottom: 16px !important;
  }

  .ant-card .ant-card-body {
    padding: 12px !important;
  }

  .ant-table-wrapper {
    max-width: 100%;
  }

  .ant-picker,
  .ant-input-affix-wrapper,
  .ant-select {
    max-width: 100%;
  }

  .ant-space {
    flex-wrap: wrap !important;
  }

  h1 {
    font-size: 1.25rem !important;
    line-height: 1.3 !important;
  }

  h2 {
    font-size: 1.1rem !important;
  }
}

/* Exception pour les headers avec gradient */
.facture-detail-header h1,
.mission-detail-header h1,
div[style*="linear-gradient"] h1 {
  color: white !important;
}

/* Compteur caractères TextArea : ne pas passer sous les boutons du Modal / actions */
.ant-modal-body .ant-input-textarea-show-count,
.ant-modal-confirm-body .ant-input-textarea-show-count {
  margin-bottom: 4px;
  padding-bottom: 22px;
}

.ant-modal-body .ant-input-textarea-show-count .ant-input-data-count,
.ant-modal-confirm-body .ant-input-textarea-show-count .ant-input-data-count {
  bottom: 0;
}

/* Form.Item Ant Design : laisser de la place au compteur au-dessus du bouton suivant */
.ant-form-item .ant-input-textarea-show-count {
  margin-bottom: 0;
  padding-bottom: 22px;
}

.ant-form-item .ant-input-textarea-show-count .ant-input-data-count {
  bottom: 0;
}

/* Groupe parent « Contexte & actions » — resserrer les languettes enfants */
.mission-context-actions-inner > .collapsible-section {
  margin-bottom: 10px;
}

.mission-context-actions-inner > .collapsible-section:last-child {
  margin-bottom: 0;
}
