/* =============================  
   FONTS  
============================= */
@font-face {
  font-family: 'Harabara';
  src: url('/fonts/Harabara Mais Demo.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'Unageo';
  src: url('/fonts/Unageo-ExtraBoldItalic.ttf') format('truetype');
  font-weight: 800;
  font-style: italic;
}
@font-face {
  font-family: 'Unageo';
  src: url('/fonts/Unageo-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
}
@font-face {
  font-family: 'Unageo';
  src: url('/fonts/Unageo-BoldItalic.ttf') format('truetype');
  font-weight: 700;
  font-style: italic;
}
@font-face {
  font-family: 'Unageo';
  src: url('/fonts/Unageo-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: 'Unageo';
  src: url('/fonts/Unageo-SemiBoldItalic.ttf') format('truetype');
  font-weight: 600;
  font-style: italic;
}
@font-face {
  font-family: 'Unageo';
  src: url('/fonts/Unageo-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
}
@font-face {
  font-family: 'Unageo';
  src: url('/fonts/Unageo-MediumItalic.ttf') format('truetype');
  font-weight: 500;
  font-style: italic;
}
@font-face {
  font-family: 'Unageo';
  src: url('/fonts/Unageo-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: 'Unageo';
  src: url('/fonts/Unageo-RegularItalic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
}
@font-face {
  font-family: 'Unageo';
  src: url('/fonts/Unageo-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'Unageo';
  src: url('/fonts/Unageo-LightItalic.ttf') format('truetype');
  font-weight: 300;
  font-style: italic;
}
@font-face {
  font-family: 'Unageo';
  src: url('/fonts/Unageo-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
}

/* =============================
   THEME PRINCIPAL
============================= */
:root {
  --color-principal: #14676A;          /* vert canard profond */
  --color-principal-hover: #1b7d81;    /* version plus claire pour hover */
  --color-secondaire: #235b63;         /* bleu-vert désaturé */
  --color-fond-clair: #f8f8f8;         /* vert d’eau très pâle */
  --color-texte: #123235;              /* sombre, lisible, assorti */
  --color-danger: #dc2626;             /* rouge vif pour alertes */
  --color-white: #ffffff;
  --color-grey: #8fa4a9;               /* gris bleuté doux */
}

/* =============================
   RESET & BASE
============================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Unageo', sans-serif;
  background-color: var(--color-fond-clair);
  color: var(--color-texte);
  line-height: 1.6;
  padding-top: 0; /* overlay navbar par défaut (pas d'espace blanc) */
}

body.with-navbar-offset {
  padding-top: 60px;
}

.container {
  width: 100%;
  max-width: 100%; /* augmente la largeur max de la page */
  margin: 0 auto;    /* centre le contenu */
  padding-left: 2rem;
  padding-right: 2rem;
  box-sizing: border-box;
  padding: 2rem 1rem;
}

/* =============================
   BANDEAU
============================= */
.bandeau {
  display: flex;
  min-height: 4.5rem;
  font-weight: bold;
  color: white;
  font-size: 1.8rem !important;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  flex-wrap: wrap;
}

@media (max-width: 576px) {
  .bandeau {
    font-size: 1.3rem !important;
    letter-spacing: 0.08em; /* un peu moins sur mobile si besoin */
  }
}

/* =============================
   HEADER
============================= */
header {
  background-color: var(--color-principal);
  color: var(--color-white);
  padding: 1rem 2rem;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

header img {
  height: 50px;
}

/* =============================
   TITLES & TEXTS
============================= */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  color: var(--color-principal);
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
}

/* =============================
   BUTTONS
============================= */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn-primary {
  background-color: var(--color-principal);
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: var(--color-principal-hover);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-principal);
  border: 2px solid var(--color-principal);
}

.btn-outline:hover {
  background-color: var(--color-principal);
  color: var(--color-white);
}

/* =============================
   TABLES
============================= */
.table-responsive {
  overflow-x: auto;
  margin-bottom: 2rem;
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem; /* réduit l'espace entre les tableaux */
}

.table th, .table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-grey);
  padding: 0.5rem 0.75rem; /* réduit la hauteur des lignes */
}

.table th {
  background-color: var(--color-white);
  color: var(--color-secondaire);
  position: sticky;
  top: 0;
  z-index: 2;
  font-size: 0.85rem; /* réduit les en-têtes */
  font-weight: 600;
}

.table-striped tbody tr:nth-child(odd) {
  background-color: #e2e8f0;
}

.tables-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem; /* réduit l'espace entre les deux tableaux */
}

.tables-flex > div {
  flex: 1 1 300px; /* garde flexible mais resserré */
}

/* =============================
   CARDS & SECTIONS
============================= */
.section {
  background-color: var(--color-white);
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  padding: 1rem; /* réduit le padding global de la section */
  margin-bottom: 1.5rem;
}

.section h3 {
  margin-top: 0.5rem;
  margin-bottom: 0.8rem; /* réduit les marges entre titres et tableaux */
  font-size: 1.1rem;
}

/* =============================
   BADGES
============================= */
.badge {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  background-color: var(--color-grey);
  color: var(--color-white);
}

.badge-success {
  background-color: #22c55e;
}

.badge-warning {
  background-color: #f59e0b;
}

.badge-danger {
  background-color: var(--color-danger);
}

/* =============================
   MODALS
============================= */
.modal-header, .modal-footer {
  background-color: var(--color-fond-clair);
  padding: 1rem 2rem;
}

.modal-content {
  border-radius: 1rem;
}

/* =============================
   RESPONSIVE DESIGN
============================= */
@media (max-width: 768px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  header {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn {
    width: 100%;
    margin-bottom: 1rem;
  }
}

@media (max-width: 576px) {
  .table th, .table td {
    padding: 0.75rem;
  }

  .section {
    padding: 1rem; /* réduit sur mobile */
  }

  .info-item {
    margin-left: 0;   /* évite débordement */
    margin-right: 0;  /* évite débordement */
    box-sizing: border-box;
    width: 100%;
  }
}

/* =============================
   HISTORIQUE
============================= */

.vehicule-history-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.en-cours {
  font-style: italic;
  font-size: 0.9rem;
  color: #555;
}

.column-stack > .section:not(:last-child) {
  margin-bottom: 1.5rem; /* Même valeur que .section par défaut */
}


