@charset "UTF-8";

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  color: white;
  width: 100%;
  position: sticky;
  top: 0;
  left: 0;
  z-index: 1000;
  box-sizing: border-box;
  font-family: "open_sans", Arial, Helvetica, sans-serif;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.navbar .logo a {
  color: white;
  text-decoration: none;
  font-size: 2em;
  font-weight: bold;
}

.navbar .nav-links {
  display: flex;
  gap: 20px;
  margin-right: 60px;
}

.navbar .nav-links a {
  color: white;
  text-decoration: none;
  padding: 8px 16px;
  background: #0042a0;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.navbar .nav-links a:hover {
  background: #003366;
}

.identification .identification-wrapper .identificationpro {
  margin-bottom: 5px;
  text-align: left;
  color: #ffffff;
  width: 100%;
  padding: 0 0 0 10px;
  font-size: 1em;
  display: table;
  position: initial;
  width: 260px;
}

body {
  margin: 0;
  padding-top: 0px;
  background: #f7f7f7;
  font-family: "open_sans", Arial, Helvetica, sans-serif;
}

#acces_espace {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  position: relative;
  top: 35px;
}

#acces_espace li a {
  letter-spacing: .1rem;
  text-decoration: none;
  padding: 12px 15px;
  margin: 2px 0;
  border-radius: 3px;
  background-color: #002f7a;
  color: white;
  flex: 1;
  text-align: center;
  display: block;
  width: auto;
  float: none;
}

.titleBar {
  text-align: center;
}

#loginPage {
  padding-top: 130px;
}

main.RegisterPage {
  padding-top: 130px;
}

#Pwdforget {
  padding-top: 130px;
}

.logo {
  width: 35%;
  float: left;
}

.perso {
  padding-top: 50px;
  width: 49%;
  float: right;
  text-align: right;
}

#deco {
  background-image: url(images/deco.jpg);
  background-size: contain;
  -webkit-background-size: contain;
  background-repeat: no-repeat;
  background-position: 0px;
}

#logo {
  height: 100px;
  padding: 0;
  margin: 0px 10px 0px 10px;
  background-image: url(images/logo.png);
  background-size: contain;
  -webkit-background-size: contain;
  background-repeat: no-repeat;
  background-position: 0px;
}

html {
  height: 100%;
  margin: 0;
}

.LoginBack {
  background-image: url('../images/entretien-professionnel-importance.webp');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: top;
  width: 100%;
  height: 100vh;
}
.LoginBackOff {
  background-image: url('../Interim974/images/entretien-professionnel-importance.webp');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: top;
  width: 100%;
  height: 100vh;
}

.Displayback {
  height: 100vh;
  background-image: url('../images/background.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: 60vh;
  padding-left: 3vw;
}
.DisplaybackOff {
  height: 100vh;
  background-image: url('../Interim974/images/background.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: 60vh;
  padding-left: 3vw;
}

.DisplayPlanning {
  height: 100vh;
  background-image: url('../images/background.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: 6vh;
  padding-left: 3vw;
}
.DisplayPlanningOff {
  height: 100vh;
  background-image: url('../Interim974/images/background.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: 6vh;
  padding-left: 3vw;
}
.DisplaySearch {
  height: 100vh;
  background-image: url('../images/background.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: 12vh;
  padding-left: 3vw;
}
.DisplaySearchOff {
  height: 100vh;
  background-image: url('../Interim974/images/background.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: 12vh;
  padding-left: 3vw;
}

.DisplaybackDisplayPwdforget {
  height: 100vh;
  background-image: url('../images/background.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: 15vh;
  padding-left: 3vw;
}
.DisplaybackDisplayPwdforgetOff {
  height: 100vh;
  background-image: url('../Interim974/images/background.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: 15vh;
  padding-left: 3vw;
}

.hero-title,
.hero-subtitle {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.hero-title {
  background: transparent;
  color: #fff;
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.6);
}

.hero-subtitle {
  background: transparent;
  color: #ffffff;
  font-size: 1.3rem;
  line-height: 1.6;
  max-width: 50ch;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
  font-weight: 400;
}

table.DisplayLoginStyle {
  display: none;
}

.DisplayLoginStyle {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px;
  max-width: 400px;
/*   margin: 150px auto; */  
  margin: auto auto;  
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;
}

.DisplayLoginStyle input[type="text"],
.DisplayLoginStyle input[type="password"] {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

.DisplayLoginStyle button {
  background: #0042a0;
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  margin-top: 10px;
}

.DisplayLoginStyle button:hover {
  background: #003366;
}

.DisplayLoginStyle a {
  display: inline-block;
  margin: 10px;
  color: #0042a0;
  text-decoration: none;
  font-size: 14px;
}

.DisplayLoginStyle a:hover {
  text-decoration: underline;
}

.RegisterPage input[type="text"],
.RegisterPage input[type="password"],
.RegisterPage input[type="email"],
.RegisterPage select {
  width: 75%;
  padding: 8px;
  margin: 5px 0;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.hero-content {
  position: relative;
  color: #fff;
  z-index: 1;
  max-width: 80%;
}

.hero-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
}

.login-title {
  width: 30%;
  background-color: #0042a0;
  text-align: center;
  margin: 0 auto 20px auto;
  margin-bottom: 20px;
  font-weight: bold;
  font-size: 1.8em;
  border-radius: 10px;
  color: white;
}

.btn-planning {
  position: relative;
  background-color: #0042a0;
  color: white;
  padding: 12px 24px;
  display: inline-block;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  top: 20px;
}

.btn-planning:hover {
  background: #003366;
}

.btn-danger,
.btn-primary {
  background-color: #0042a0;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  display: inline-block;
  border-radius: 4px;
}

.square {
  margin-left: 10px;
  text-decoration: none;
  width: 25%;
  font-size: 14px;
  text-transform: uppercase;
  color: #0B6BA8;
  font-weight: 700;
}

table.tableRec {
  margin: 0 auto 0 auto;
}

.profil .titre span {
  font-size: 14px;
  text-transform: uppercase;
  color: #0B6BA8;
  font-weight: 700;
}

ul {
  list-style: none;
}

.labelInfo {
  margin-top: auto;
  margin-bottom: auto;
  text-align: right;
}

.inputInfo {
  margin-top: auto;
  margin-bottom: auto;
  text-align: left;
}

#Global {
  width: 50%;
}

#Global #gauche {
  float: left;
  width: 58%;
  padding-right: 15px;
}

#Global #droite {
  margin-left: 60%;
  font-weight: bold;
  background-color: #EDF4F9;
}

li#Global {
  margin-top: 10px;
}

.divSearch {
  display: inline-block;
  width: auto;
}

table {
  border-collapse: collapse;
  width: 100%;
}

th,
td {
  text-align: left;
  padding: 8px;
}

form#tr:nth-child(even) {
  background-color: #f2f2f2;
}

table.tableRec tr {
  background-color: white;
}

th {
  background-color: #4CAF50;
  color: white;
}

.icon {
  margin: 0 0.3em;
  padding: 0 !important;
  width: 16px;
  height: 16px;
  background-image: url(images/sprites.png) !important;
  background-repeat: no-repeat !important;
  background-position: top left !important;
}

.ic_b_drop {
  background-position: 0 -336px !important;
}

.ic_b_del {
  background-position: 0 -208px !important;
}

.tabCompProfif {
  margin: 0 auto 0 auto;
  width: 90%;
}

.selectjustifType {
  margin-right: 10px;
}

/*   SELECTION COMPETEZ PROFIL    */

.row-selects {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  justify-content: center;
  align-items: center;
}

.row-selects select {
  min-width: 120px;
  max-width: 200px;
  white-space: nowrap;
  flex-grow: 1;
}

/* BOUTON TYPE LOGIN (EMPLOYEUR | CANDIDAT) */

.login-link {
  color: white;
  text-decoration: none;
  padding: 8px 16px;
  background: #0042a0;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.login-switch {
  display: flex;
  position: absolute;
  top: 200px;
  left: 40%;
  justify-content: center;
  gap: 20px;
}

.login-link:hover {
  background-color: #003366;
}

.login-link.active {
  background-color: #002a66;
}

/* AFFICHAGE PAGE PLANNING CANDIDAT */

.DisplayPlanningHome {
  margin-top: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.DisplayPlanningHome h2 {
  color: black;
  border-bottom: 2px solid #3498db;
  padding-bottom: 10px;
  display: inline-block;
  transition: color 0.3s ease;
}

/* STYLE CALENDRIER PLANNING CANDIDAT */

#calendar {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
  height: 600px;
}

/* #calendar a {
  background: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  color: inherit !important;
  display: inline !important;
  margin: 0 !important;
  text-decoration: none;
} */

.fc-v-event, .fc-timegrid-event {
    background-color: #1a73e8 !important;
    border: 1px solid #0d47a1 !important;
    border-radius: 4px !important;
    display: block !important;
    opacity: 1 !important;
}

.fc-event-main, .fc-event-title, .fc-event-time {
    color: #ffffff !important;
    font-weight: bold !important;
    padding: 2px 4px;
}

#calendar {
    background-color: #ffffff !important;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.back-button {
  display: inline-block;
  background-color: #0042a0;
  color: #fff;
  padding: 10px 15px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translate(40px);
}

.btn-modif {
  font-size: 12px;
  padding: 2px 6px;
  transform: scale(0.9);
  transform-origin: center;
  margin: 4px 0;
}

.btn-modif:hover {
  background-color: #16447c;
}

.back-buttonCandidat {
  display: inline-block;
  background-color: #0042a0;
  color: #fff;
  padding: 10px 15px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  position: absolute;
  bottom: 20px;
  left: 62%;
  transform: translate(40px);
}

.back-button:hover {
  background-color: #002a6a;
}

.DisplayPlanningHome a {
  background-color: #0042a0;
  color: #fff;
  padding: 12px 20px;
  border-radius: 4px;
  font-size: 16px;
  text-decoration: none;
  margin-top: 10px;
  display: inline-block;
}

/* AFFICHAGE LISTE EMPLOYE*/

.period-form {
  margin-bottom: 12px;
  text-align: center;
}

.period-label {
  margin-right: 8px;
  font-weight: 600;
  color: #1f2d4a;
}

.period-select {
  border: 1px solid #0042a0;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 14px;
  color: #0042a0;
  cursor: pointer;
  background: #fff;
}

.period-select:hover {
  border-color: #002a6a;
}

.planning-layout {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 16px;
  flex-wrap: nowrap;
}

.calendar-area {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 0 0 900px;
}

#calendar {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  height: calc(100vh - 160px);
  min-height: 400px;
}

#planning-calendar {
  display: block;
  margin: 40px auto 60px auto;
  max-width: 900px;
  height: 650px;
}

.Back {
  width: 100%;
  text-align: right;
  margin-top: 10px;
}

#back-buttonCandidat {
  background: #0042a0;
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  text-decoration: none;
}

.back-buttonCandidat {
  position: static !important;
  left: auto !important;
  bottom: auto !important;
  transform: none !important;
}

#back-buttonCandidat:hover {
  background: #003480;
}

/* .sidebar {
  flex: 0 0 320px;
  max-width: 320px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 12px;
  margin: 0;
  position: static;
  align-self: flex-start;
} */

.tag {
  padding: 2px 8px;
  position: relative;
  top: -12px;
  border-radius: 999px;
  font-size: 12px;
}

.tag-rest {
  background: #ffe5e5;
  color: #b60000;
}

.tag-work {
  background: #e6ffed;
  color: #0e7a2f;
}

#ADDForm {
  display: none;
  margin-top: 10px;
}

#ADDForm input[type="email"] {
  margin-right: 8px;
  padding: 5px;
}

.btn {
  background: #0042a0;
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 8px;
  display: inline-block;
  text-decoration: none;
}

.btn:hover {
  background: #003480;
}

.add-employee {
  margin-top: 5px;
  padding-top: 5px;
}

#toggleAdd:checked ~ #ADDForm {
  display: block;
}

.employee-list {
  text-align: left;
  padding-left: 0;
  margin-left: 0;
}

.emp-line {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 4px 0;
}

.emp-mail {
  font-weight: 700;
  display: block;
  color: #1f2d4a;
}

/* @media (max-width: 1100px) {
  .planning-layout {
    flex-direction: column;
    align-items: center;
  }
  .sidebar {
    max-width: 100%;
    flex: 0 0 auto;
    margin: 16px auto 0 auto;
  }
}
 */
 .sidebar {
  flex: 0 0 320px;
  max-width: 320px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 12px;
  margin: 0;
  position: static;
  align-self: flex-start;
  height: calc(100vh - 160px);
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar::-webkit-scrollbar {
  width: 4px;
}
.sidebar::-webkit-scrollbar-track {
  background: transparent;
}
.sidebar::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 2px;
}
.sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.4);
}

@media (max-width: 1100px) {
  .planning-layout {
    flex-direction: column;
    align-items: center;
  }
  .sidebar {
    max-width: 100%;
    flex: 0 0 auto;
    margin: 16px auto 0 auto;
    height: auto;        /* En mobile colonne, la sidebar reprend sa hauteur naturelle */
    overflow-y: visible; /* Et on laisse la page scroller normalement */
  }
}
.DisplayPlanningHome a:hover {
  background-color: #002a6a;
}

/*PLANNING CREATION */

.pc-container {
  text-align: center;
}

.pc-container h2 {
  color: black;
  margin-top: 60px;
  margin-bottom: 10px;
  border-bottom: 2px solid #3498db;
  padding-bottom: 8px;
  display: inline-block;
}

.emp-lines {
  margin: 6px 0;
  color: #4a5568;
  font-size: 14px;
}

.employee-select {
  border: none;
  background: transparent;
  font-size: 16px;
  color: #0042a0;
  font-weight: bold;
  cursor: pointer;
  outline: none;
}

.employee-select:hover {
  text-decoration: underline;
}

.employee-name form,
.employee-name {
  display: inline-block;
  text-align: center;
}

.employee-label {
  font-weight: 600;
}

.center-button {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.btn-small {
  background: #0042a0;
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 8px;
  display: inline-block;
  text-decoration: none;
  transition: background 0.3s ease;
}

.btn-small:hover {
  background: #002a6a;
}

.employee-name {
  display: block;
  text-align: center;
  font-size: 16px;
  color: #1f2d4a;
  border: 1px solid #0042a0;
  padding: 6px 12px;
  border-radius: 6px;
  background: transparent;
  margin: 20px auto 30px;
  width: fit-content;
}

.employee-name strong {
  color: #0042a0;
}

.week-total {
  text-align: right;
  font-weight: 600;
  color: #1f2d4a;
  padding-top: 6px;
  border-top: 2px solid #e5e7eb;
}

.pc-table tfoot td {
  background-color: #f9fafc;
  font-size: 15px;
}

.pc-table tfoot strong {
  color: #0042a0;
}

/* PERIODS  */

.preset-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
  align-items: flex-end;
  margin-left: 4px;
}

.preset-form {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.preset-select {
  height: 28px;
  padding: 0 8px;
  font: inherit;
  border: 1px solid #0d47a1;
  border-radius: 6px;
  color: #0d47a1;
  background: #fff;
  margin-top: 6px;
}

.preset-select:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(13,71,161,.2);
}

.preset-form .btn {
  height: 29px;
  padding: 0 12px;
  border-radius: 6px;
}

.periods {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.period-block {
  flex: 1 1 0;
  min-width: 340px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px;
}

.period-block h3 {
  text-align: center;
  margin: 8px 0 12px;
}

@media (max-width: 1100px) {
  .periods {
    flex-direction: column;
  }
  .period-block {
    max-width: 100%;
  }
}

 /* CustomPeriode */

.wrap {
  max-width: 900px;
  margin: 24px auto;
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .06);
}

h2 {
  margin: 0 0 12px;
}

.row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin: 8px 0 14px;
}

.row label {
  font-weight: 600;
}

input[type=text],
input[type=number] {
  padding: 6px 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

th,
td {
/*   border: 1px solid #ddd; */
  padding: 8px;
  text-align: center;
}

th {
  background-color: #4CAF50;
  color: white;
}


input[type=time] {
  padding: 4px;
  width: 95px;
}

.actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.btn {
  background: #0d47a1;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 14px;
  cursor: pointer;
  text-decoration: none;
}

.btn:hover {
  background: #1565c0;
}

.btn-gray {
  background: #6b7280;
}

.preset-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 8px 0;
}


.custom-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
  margin-bottom: 14px;
  padding-top: 6px;
  border-top: 1px solid #e5e7eb;
}


.custom-apply-form {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.custom-apply-form .btn, .custom-apply-form button, .custom-apply-form a {
  background-color: #0d47a1;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
}

.custom-apply-form .btn:hover, .custom-apply-form button:hover, .custom-apply-form a:hover {
  background-color: #1565c0;
}
.btn-recap {
  display: inline-block;
  margin-top: 6px;
  padding: 5px 10px;
  background: #1a1a2e;
  color: #fff;
  border-radius: 6px;
  font-size: 12px;
  text-decoration: none;
  font-weight: 600;
}
.btn-recap:hover {
  background: #16213e;
}

.alert-error {
	background:#fee2e2;
	color:#991b1b;
	border:1px solid #fca5a5;
	border-radius:8px;
	padding:10px 14px;
	margin-bottom:12px;
	font-size:13px;
	font-weight:600;
	display:flex;
	align-items:center;
	gap:8px;
	}
	
.alert-success {
	background:#d1fae5;
	color:#065f46;
	border:1px solid #6ee7b7;
	border-radius:8px;
	padding:10px 14px;
	margin-bottom:12px;
	font-size:13px;
	font-weight:600;
	display:flex;
	align-items:center;
	gap:8px;
	}
	
.alert-warn {
	background:#fef3c7;
	color:#92400e;
	border:1px solid #fcd34d;
	border-radius:8px;
	padding:10px 14px;
	margin-bottom:12px;
	font-size:13px;
	font-weight:600;
	display:flex;
	align-items:center;
	gap:8px;
	}

/* ═══════════════════════════════════════════════════════════════════════════
   RECAP AGENT — styles de la page récapitulative des pointages d'un employé
   ═══════════════════════════════════════════════════════════════════════════ */
 
/* Wrapper principal */
.rw {
  max-width: 960px;
  margin: 30px auto;
  padding: 0 16px;
}
 
/* En-tête employé (avatar + nom) */
.rh {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}
 
.av {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 20px;
  /* La couleur de fond est injectée inline (dynamique par employé) */
}
 
.rn {
  font-size: 22px;
  font-weight: 700;
}
 
.re {
  color: #888;
  font-size: 13px;
}
 
/* Grille de cartes résumé */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
 
.card {
  background: #fff;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .07);
  /* border-left couleur dynamique injectée inline */
}
 
.cl {
  font-size: 10px;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 4px;
}
 
.cv {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a2e;
}
 
.cu {
  font-size: 11px;
  color: #888;
  margin-top: 2px;
}
 
.card.gr  { border-left-color: #10B981; }
.card.gr .cv { color: #059669; }
.card.nv  { border-left-color: #1e3a5f; }
.card.nv .cv { color: #1e3a5f; }
.card.rd  { border-left-color: #EF4444; }
.card.rd .cv { color: #DC2626; }
 
/* Titres de section */
.st {
  font-size: 16px;
  font-weight: 700;
  margin: 24px 0 10px;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 6px;
}
 
/* Grilles 2 et 3 colonnes */
.g2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 24px;
}
 
.g3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-bottom: 24px;
}
 
/* Items de majoration */
.mi {
  border-radius: 10px;
  padding: 14px 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
}
 
.ml {
  font-size: 12px;
  color: #555;
  margin-bottom: 2px;
}
 
.mv {
  font-size: 18px;
  font-weight: 700;
}
 
.md {
  font-size: 11px;
  color: #666;
  margin-top: 4px;
}
 
/* Tableau récap */
.rw table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .07);
  margin-bottom: 28px;
}
 
.rw th {
  background: #f8f9fa;
  padding: 9px 11px;
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  color: #888;
  font-weight: 600;
}
 
.rw td {
  padding: 8px 11px;
  border-top: 1px solid #f0f0f0;
  font-size: 13px;
}
 
.rw tr:hover td {
  background: #fafafa;
}
 
/* Badges type de journée */
.bg {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}
 
.bf  { background: #fef3c7; color: #92400e; }
.bd  { background: #ede9fe; color: #5b21b6; }
.bn  { background: #f0fdf4; color: #166534; }
.bnt { background: #dbeafe; color: #1e40af; }
 
/* Sous-texte dans les cellules */
.sub {
  font-size: 11px;
  color: #666;
  margin-top: 2px;
}
 
/* Ligne alerte repos insuffisant */
.ar td {
  color: #9a3412;
  background: #fff7ed !important;
}
 
/* Bouton retour */
.bb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #f3f4f6;
  border-radius: 8px;
  text-decoration: none;
  color: #374151;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}
 
.bb:hover {
  background: #e5e7eb;
}
 
/* Navigation mois précédent / suivant */
.mnav {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
 
.mnav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #f3f4f6;
  text-decoration: none;
  color: #374151;
  font-size: 18px;
  font-weight: 700;
}
 
.mnav a:hover {
  background: #e5e7eb;
}
 
.mnav .ml {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a2e;
  min-width: 160px;
  text-align: center;
}
 
.mnav .mc {
  font-size: 12px;
  color: #888;
  font-weight: 400;
}
 
/* Bloc heures supplémentaires */
.hsbx {
  background: linear-gradient(135deg, #fff7ed, #fef3c7);
  border: 1.5px solid #f59e0b;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 20px;
}
 
.hsbx-t {
  font-size: 14px;
  font-weight: 700;
  color: #92400e;
  margin-bottom: 10px;
}
 
.hsbx-r {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}
 
.hsbx-item {
  background: #fff;
  border-radius: 8px;
  padding: 10px 14px;
  text-align: center;
}
 
.hsbx-v {
  font-size: 20px;
  font-weight: 700;
}
 
.hsbx-l {
  font-size: 11px;
  color: #888;
  margin-top: 3px;
}
 
/* Responsive */
@media (max-width: 600px) {
  .g2,
  .g3,
  .hsbx-r {
    grid-template-columns: 1fr;
  }
}


/* ─── Planning topbar (partagée sur toutes les pages) ─────────────────────── */
.planning-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  padding: 18px 24px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.10);
}

.planning-topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.planning-topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.planning-title {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0;
}

.planning-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

.badge-blue {
  background: #dbeafe;
  color: #1e40af;
}

.badge-teal {
  background: #ccfbf1;
  color: #0f766e;
}

.planning-user {
  font-size: 13px;
  color: #555;
  font-weight: 500;
}

/* Bouton page courante (non cliquable, bleu plein) */
.btn-planning-action {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  background: #0042a0;
  color: #fff;
  border: none;
  cursor: default;
  white-space: nowrap;
  transition: background 0.15s;
}

/* Boutons liens secondaires (gris, cliquables) */
.btn-planning-secondary {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  background: #f0f4ff;
  color: #374151;
  border: 1px solid #e2e8f0;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.btn-planning-secondary:hover {
  background: #dbeafe;
  color: #0042a0;
  border-color: #bfdbfe;
}

/* Responsive : masquer les labels longs sur mobile */
@media (max-width: 768px) {
  .planning-topbar {
    padding: 12px 16px;
    gap: 8px;
  }
  .planning-title {
    font-size: 16px;
  }
  .btn-planning-action,
  .btn-planning-secondary {
    font-size: 12px;
    padding: 6px 10px;
  }
}
