body, html {
    height: 100%;
    margin: 0;
}

.container-main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
}

/* Clavier numérique */
.keypad {
    display: grid;
    grid-template-columns: repeat(3, 100px);
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}
.keypad button {
    width: 100px;
    height: 100px;
    font-size: 28px;
    cursor: pointer;
}

/* Boutons de pointage */
button#start-break-btn,
button#end-break-btn,
button#clock-out-btn {
    width: 100%;
    max-width: 300px;
    font-size: 1.25rem;
    padding: 0.75rem 1rem;
    margin: 0.5rem auto;
}
#clock-in-btn {
  width: 8rem;
  aspect-ratio: 1;
  padding: 0;
  font-size: 3rem;
}


/* Nav-link active */
.nav-link.active {
    font-weight: 600;
    color: #fff !important;
    background-color: #f8f9fa;
}

/* Autres classes existantes… */
.main {
    margin-left: 250px;
    padding: 20px;
}

.list-group-item {
    transition: all 0.3s ease;
}

/* Variables globales */
:root {
  --color-navbar-bg: #ffffff;
  --color-site-bg: rgba(0, 0, 0, 0.03);
  --color-card-bg: #ffffff;
  --color-primary: #0d6efd;
  --radius-default: 0.5rem;
}

/* Fond du site */
body {
  background-color: var(--color-site-bg);
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #333;
}

/* Navbar bien blanche */
.container-fluid.fixed-top {
  background-color: var(--color-navbar-bg) !important;
}

/* Cartes (cards) modernes */
.card {
  background-color: var(--color-card-bg);
  border: none;
  border-radius: var(--radius-default);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Titres harmonisés */
h1, h2, h3, h4, h5, .card-header h2, .card-header h5 {
  color: var(--color-primary);
  margin-bottom: 1rem;
}

/* Boutons arrondis et doux */
.btn {
  border-radius: var(--radius-default);
  transition: background-color 0.2s ease;
}
.btn:hover {
  filter: brightness(0.9);
}

/* Espacements globaux */
.container {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

/* Formulaires & selects arrondis */
.form-control, .form-select {
  border-radius: var(--radius-default);
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: #2a9d8f;
    box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.1);
}


/* Listes dans le dashboard */
.list-group-item {
  border: none;
  border-radius: var(--radius-default);
  margin-bottom: 0.25rem;
}

/* Tableaux responsives */
.table-responsive {
  overflow-x: auto;
  border-radius: var(--radius-default);
}

/* Media queries pour tablettes */
@media (max-width: 992px) {
  .container {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  .card-header h2, .card-header h5 {
    font-size: 1.2rem;
  }
  .table th, .table td {
    padding: 0.45rem;
    font-size: 0.9rem;
  }
  /* Formulaires : champs empilés */
  .row.g-3.align-items-end > .col-auto {
    width: 100%;
  }
}

/* ============================= */
/* Styles “touch” pour tablette  */
/* ============================= */

/* Cadre plus large et plus de padding */
.clocking-touch-card {
  max-width: 600px;
}
.clocking-touch-card .card-body {
  padding: 1rem;
}

/* Titre plus grand */
.clocking-touch-card .card-header h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

/* Texte et timer plus lisibles */
.clocking-touch-card p,
.clocking-touch-card #timer {
  font-size: 1.5rem;
  margin: 0.5rem 0;
}

/* Boutons “finger-friendly” */
.btn-touch {
  font-size: 1.5rem;    /* texte plus grand */
  padding: 1rem 1.5rem; /* zone de clic plus large */
  min-height: 60px;     /* hauteur minimale confortable */
  border-radius: var(--radius-default);
}

/* Pour garder la mise en page sur petits tablettes */
@media (max-width: 992px) {
  .clocking-touch-card {
    max-width: 100%;
    margin: 0 1rem ;
  }

  .navbar-brand img { width: 100px !important; }
  .navbar a img[alt="Déconnexion"] { width: 36px !important; height: 36px !important; }
}

/* Login : pad plus grand sur mobile */
@media (max-width: 768px) {
  /* Agrandir l’input du code */
  #code-input {
    width: 100%;
    max-width: 260px;
    font-size: 1.8rem;
  }

  /* Rendre le pad plus large et plus haut */
  .keypad {
    grid-template-columns: repeat(3, minmax(90px, 1fr));
    gap: 18px;
    justify-content: center;
  }

  .keypad button {
    width: 100%;
    height: 90px;
    font-size: 2rem;
  }

  .navbar-brand img { width: 80px !important; }
  .navbar a img[alt="Déconnexion"] { width: 32px !important; height: 32px !important; }
}
