* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #ffffff;
  min-height: 100vh;
}

.container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
}

.logo {
  width: 140px;
  margin-bottom: 20px;
}

h1 {
  margin-bottom: 25px;
  color: #0b1f3a;
}

form {
  width: 100%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  background: #ffffff;
  padding: 30px;
  border-radius: 16px;
  border: 2px solid #0b1f3a;
  box-shadow: 0 8px 25px rgba(11, 31, 58, 0.08);
}

input {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  border: 1px solid #cfd8e3;
  border-radius: 10px;
  outline: none;
  color: #0b1f3a;
}

input:focus {
  border-color: #0b1f3a;
  box-shadow: 0 0 0 3px rgba(11, 31, 58, 0.12);
}

button {
  padding: 14px;
  font-size: 16px;
  border: none;
  border-radius: 10px;
  background: #0b1f3a;
  color: white;
  cursor: pointer;
  transition: 0.2s;
}

button:hover {
  background: #14345f;
}

label {
  font-weight: bold;
  color: #0b1f3a;
  text-align: left;
  display: block;
  margin-bottom: 8px;
}

input[type="file"] {
  background: #ffffff;
  padding: 12px;
}

select {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  border: 1px solid #cfd8e3;
  border-radius: 10px;
  outline: none;
  color: #0b1f3a;
  background: #ffffff;
}

select:focus {
  border-color: #0b1f3a;
  box-shadow: 0 0 0 3px rgba(11, 31, 58, 0.12);
}

.rdv-box {
  width: 100%;
  max-width: 900px;
  background: #ffffff;
  border: 2px solid #0b1f3a;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 8px 25px rgba(11, 31, 58, 0.08);
  text-align: center;
  color: #0b1f3a;
}

.progress-steps {
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 340px;
  margin: 10px auto 30px auto;
}

.step {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: #e5e7eb;
}

.step.completed {
  background: #0b1f3a;
}

.step.current {
  background: #7ea0c7;
}

.recap-box {
  width: 100%;
  max-width: 700px;
  background: #ffffff;
  border: 2px solid #0b1f3a;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 8px 25px rgba(11, 31, 58, 0.08);
  color: #0b1f3a;
  text-align: left;
}

.recap-box h2 {
  margin-top: 25px;
  margin-bottom: 15px;
  color: #0b1f3a;
}

.recap-box h2:first-child {
  margin-top: 0;
}

.recap-box p {
  margin: 10px 0;
}

.recap-actions {
  width: 100%;
  max-width: 700px;
  margin-top: 20px;
}

.rdv-manual-box {
  width: 100%;
  max-width: 900px;
  background: #ffffff;
  border: 2px solid #0b1f3a;
  border-radius: 16px;
  padding: 24px;
  margin-top: 20px;
  box-shadow: 0 8px 25px rgba(11, 31, 58, 0.08);
  color: #0b1f3a;
  text-align: left;
}

.rdv-manual-box h2 {
  margin-top: 0;
  margin-bottom: 10px;
}

.rdv-manual-box p {
  margin-bottom: 20px;
}

.rdv-manual-box input {
  margin-bottom: 16px;
}

.rdv-manual-box button {
  margin-top: 8px;
  width: 100%;
}

.rdv-layout {
  width: 100%;
  max-width: 1250px;
  display: flex;
  gap: 20px;
  align-items: stretch;
  margin-top: 10px;
}

.rdv-layout .rdv-box {
  flex: 1.2;
  display: flex;
  margin-top: 0;
}

.rdv-layout .rdv-manual-box {
  flex: 0.8;
  margin-top: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.rdv-layout .rdv-box .calendly-inline-widget {
  width: 100%;
}

@media (max-width: 900px) {
  .rdv-layout {
    flex-direction: column;
  }
}


.admin-actions {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  margin-bottom: 15px;
}

.admin-search-bar{
  width: 1000px;
  display: flex;
  margin-bottom: 2rem;
}
.admin-search{
  border: 2px solid #0b1f3a;
  margin-right: 2rem;
}

.admin-table-box {
  width: 100%;
  background: #ffffff;
  border: 2px solid #0b1f3a;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 8px 25px rgba(11, 31, 58, 0.08);
  overflow-x: auto;
  max-height: 600px;
  overflow-y: auto;
  border: 1px solid #ddd;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1200px;
}

.admin-table th,
.admin-table td {
  border: 1px solid #d9e1ea;
  padding: 12px;
  text-align: left;
  vertical-align: top;
  color: #0b1f3a;
}

.admin-table th {
  background: #0b1f3a;
  color: #ffffff;
}

.admin-table tbody tr:nth-child(even) {
  background: #f7f9fc;
}

.delete-row-btn {
  width: 100%;
  min-width: 100px;
  background: #c62828;
}

.delete-row-btn:hover {
  background: #a61f1f;
}

.delete-entreprise-btn {
  width: 100%;
  min-width: 100px;
  background: #c62828;
}

.delete-entreprise-btn:hover {
  background: #a61f1f;
}
/* CALENDRIER */

.calendar-box {
  width: 100%;
  border: 2px solid #0b1f3a;
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 16px;
  background: #ffffff;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.calendar-header h2 {
  margin: 0;
  font-size: 22px;
  color: #0b1f3a;
  text-transform: capitalize;
}

.calendar-nav-btn {
  width: 42px;
  height: 42px;
  min-width: 42px;
  padding: 0;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.calendar-weekdays span {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: #0b1f3a;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.calendar-day {
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 0;
  border-radius: 12px;
  border: 1px solid #d9e1ea;
  background: #ffffff;
  color: #0b1f3a;
  font-size: 15px;
  font-weight: 700;
}

.calendar-day.empty {
  visibility: hidden;
}

.calendar-day.allowed {
  background: #eef5ff;
  border-color: #7ea0c7;
  color: #0b5cff;
}

.calendar-day.allowed:hover {
  background: #dfeeff;
}

.calendar-day.blocked {
  background: #f2f2f2;
  border-color: #e1e1e1;
  color: #b2b2b2;
  cursor: not-allowed;
}

.calendar-day.disabled {
  background: #f8f8f8;
  border-color: #ededed;
  color: #d0d0d0;
  cursor: not-allowed;
}

.calendar-day.today {
  box-shadow: inset 0 0 0 2px #0b1f3a;
}

.calendar-day.selected {
  background: #0b5cff;
  border-color: #0b5cff;
  color: #ffffff;
}



.creneaux-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 12px 0;
}

.creneau-card {
  background: #ffffff;
  border: 2px solid #7ea0c7;
  border-radius: 10px;
  color: #0b5cff;
  padding: 8px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: center;
  justify-content: center;
  min-height: 48px;
}

.creneau-card:hover {
  background: #f5f9ff;
}

.creneau-card.selected {
  border-color: #0b5cff;
  box-shadow: 0 0 0 2px rgba(11, 92, 255, 0.12);
}

.creneau-card.disabled {
  background: #f2f2f2;
  border-color: #d6d6d6;
  color: #a0a0a0;
  cursor: not-allowed;
}

.creneau-card.disabled:hover {
  background: #f2f2f2;
}

.creneau-heure {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.1;
}

.creneau-places {
  font-size: 11px;
  line-height: 1.1;
}

.empty-slots-message {
  width: 100%;
  text-align: center;
  color: #6b7280;
  margin: 0;
}

.sign{
  display: flex;
  justify-content: space-around;
}

.sign button.active {
  background-color: #0b1f3a;
  color: white;
}

.sign button {
  width: 13rem;
  color: #0b1f3a;
  background-color: white;
  border: 2px solid #0b1f3a;
  cursor: pointer;
  transition: 0.2s ease;
}

/* hover uniquement si PAS actif */
.sign button:hover:not(.active) {
  background-color: #0b1f3a;
  color: white;
}


.sign button.active:hover {
  background-color: #0b1f3a;
  color: white;
}

#descriptionMetier{
  min-height: 20rem;
  max-height: 20rem;
  min-width: 100%;
  max-width: 100%;
  font-size: 16px;
}

#technicien{
  color:black;
  background-color: #ffc40e;
}