/* style.css */
body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background-color: #f1f5f9;
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* 100% hauteur viewport */
  width: 100vw;       /* 100% largeur viewport */
  box-sizing: border-box;
  overflow-x: hidden;
}

/* Fait que le contenu pousse le footer vers le bas */
main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 1rem;
}

/* Empêche overflow horizontal */
* {
  box-sizing: border-box;
}
/* ===== Header ===== */
header
{
  width: 100vw;
  height: 7.5vh;
}
.DivCenterHeaderTitle
{
  font-size: 2em;
}
.divHeaderTotal
{
  width: 100%;
  height: 100%;
  background-color: #398897;
  display: flex;
}
.DivLeftHeader,.DivCenterHeader,.FormHeaderRight
{
  width: 33%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
}
.FormHeaderRight > div
{
  width: 35%;
  height: 75%;
  margin-right: 1%;
}
.FormHeaderRight > div > input
{
  width: 100%;
  height: 100%;
}
.DivCenterHeader > div
{
  color: white;
  text-align: center;
}
.DivLeftHeader
{
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: start;
  align-items: center;
}
.imgAist21
{
  width: 17.5%;
  height: 90%;
  background-image: url("../Assets/AIST21logo.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  margin-left: 0.5%;
}
/********************************/
/* Style Footer*/
.aist-footer 
{
  width: 100vw;
  height: 10vh;
  background-color: #398897;
  color: white;
  font-family: 'Segoe UI', sans-serif;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem 2rem;
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.1);
}

.footer-container 
{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand h2 
{
  font-size: 1.25rem;
  color: white;
  margin-bottom: 0.5rem;
}

.footer-brand p,
.footer-contact p 
{
  margin: 0.25rem 0;
  font-size: 0.875rem;
}

.footer-links 
{
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer-links a,
.footer-contact a 
{
  text-decoration: none;
  color: white;
  font-size: 0.875rem;
}

.footer-links a:hover,
.footer-contact a:hover 
{
  text-decoration: underline;
  color: white;
}

.footer-contact .credits 
{
  font-size: 0.75rem;
  color: white;
  margin-top: 0.25rem;
}

.footer-bottom 
{
  text-align: center;
  font-size: 0.75rem;
  color: white;
  padding-top: 0.5rem;
}


/********************************/
/* ----------------------------------Formulaire de co -------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap');

body {
  font-family: 'Open Sans', sans-serif;
  background-color: #F8FAFC;
  color: #1E293B;
  margin: 0;
  padding: 0;
}

.contenu {
  max-width: 100%;
  margin: 0 auto;
  padding: 2rem;
}

/* Container du formulaire */
.login-container {
  background-color: #e7e7e7;
  color: Black;
  padding: 3rem;
  border-radius: 10px;
  width: 100%;
  max-width: 600px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  text-align: center;
}

.login-container h2 {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: Black;
}

/* Formulaire */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.login-form label {
  text-align: left;
  font-weight: 600;
  color: Black;
}

.login-form input {
  padding: 0.75rem;
  border-radius: 5px;
  border: 2px solid #000000; /* Bordure noire comme demandé */
  border-color: lightgray;
  background-color: #ffffff;
  color: #1E293B;
  font-size: 1rem;
}

.login-form input:focus {
  outline: none;
  border-color: #398897; /* Bleu AIST21 */
  box-shadow: 0 0 0 2px rgba(57, 136, 151, 0.3);
}

/* Bouton */
.login-form button {
  padding: 0.75rem;
  background-color: #398897; /* Bleu 100% */
  color: white;
  border: none;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.login-form button:hover {
  background-color: #2a6b79;
}

/* Pied de formulaire */
.login-footer {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: Black;
}

.login-footer a {
  color: Black;
  text-decoration: none;
}

.login-footer a:hover {
  text-decoration: underline;
}

.forgot-password {
  text-align: right;
  font-size: 0.85rem;
}

.forgot-password a {
  color: Black;
  text-decoration: none;
}

.forgot-password a:hover {
  text-decoration: underline;
}

/* ----------------------------------Formulaire de co -------------------------------------------------- */
/********************************/
/* Bibliotheque Div outils */
/* SECTION PRINCIPALE */
.Section1Outils {
  display: flex;
  flex-direction: column;
  height: 70vh;
}

.Div1ListOutils {
  height: 100vh;
  width: 100vw;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15vw, 1fr));
  gap: 2vw;
  padding: 2vh 2vw;
  overflow-y: auto;
  direction: ltr; /* ou rtl pour droite -> gauche */
}
.outil-card {
  background-color: #b91c1c;
  color: white;
  width: 12.5vw;
  height: 22.5vh;
  padding: 2vh 1vw;
  border-radius: 1vh;
  text-align: center;
  font-size: 1em;
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0.3vh 0.5vh rgba(0,0,0,0.15);
  transition: all 0.3s ease;
  transform: translateY(0);
}
/* Supprime soulignement et couleurs par défaut des liens */
.outil-card-link {
  text-decoration: none;
  color: inherit;
  display: inline-block;
}

.outil-card:hover {
  transform: translateY(-0.7vh);
  box-shadow: 0 0.7vh 1.2vh rgba(0, 0, 0, 0.3);
  background-color: #a31414; /* effet léger plus clair au hover */
}

/* Icône effet */
.outil-card .icon {
  font-size: 2.5vw;
  margin-bottom: 1vh;
  transition: transform 0.3s ease;
}

.outil-card .icon {
  font-size: 5vh;
  margin-bottom: 1vh;
}

.delete-btn {
  position: absolute;
  top: 1vh;
  right: 1vw;
  background: transparent;
  border: none;
  color: white;
  font-size: 1.5em;
  cursor: pointer;
  opacity: 0.8;
}

.delete-btn:hover {
  opacity: 1;
  color: #f8f9fa;
}
.label {
  font-size: 1em;
  font-weight: 500;
  letter-spacing: 0.05em;
  margin: 0;
  margin-top: 1vh;
  text-shadow: 0 0.1vh 0.2vh rgba(0,0,0,0.25);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  transition: opacity 0.3s ease;
}

.outil-card:hover .label {
  opacity: 0.95;
}


/* DIV INTERACTION BAS */
.Div2Interaction {
  height: 1vh;
  padding: 1vh 2vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2vw;
}

/* BARRE DE RECHERCHE */
.search-bar {
  flex: 1;
  padding: 1vh 1vw;
  font-size: 1vw;
  border: 1px solid #ccc;
  border-radius: 1vh;
}

/* BOUTON IMPORTER */
.import-btn {
  padding: 1vh 2vw;
  font-size: 1vw;
  background-color: #2563eb;
  color: white;
  border: none;
  border-radius: 1vh;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5vw;
}

.import-btn:hover {
  background-color: #1d4ed8;
}
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600&display=swap');

:root {
  --font-main: 'Open Sans', sans-serif;
  --blue: #5184C3;
  --blue-dark: #3a6aa4;
  --accent: #FFC700;
  --bg: linear-gradient(135deg, #f7f9ff 0%, #dceefb 100%);
  --border: #cddbef;
  --shadow-deep: rgba(81, 132, 195, 0.25);
  --shadow-fine: rgba(81, 132, 195, 0.15);
  --highlight: rgba(81, 132, 195, 0.2);
  --white: #ffffff;
  --radius: 20px;
  --transition: 0.35s ease;
}

/* ---------------------------------------------------------------------------------------------------------------*/
.bodyEnregistrement {
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  background: var(--bg);
  color: #1f2d3d;

}

.form-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 100px 20px;
  min-height: 100vh;
  background: var(--bg);
}

.form-card {
  background: var(--white);
  padding: 60px 50px;
  border: 2px solid var(--border);
  border-radius: 36px 80px 36px 20px;
  box-shadow:
    0 0 0 4px rgba(255,255,255,0.4),
    0 20px 60px var(--shadow-deep),
    inset 0 0 0 2px var(--white);
  max-width: 640px;
  width: 100%;
  position: relative;
  animation: floatIn 0.8s ease;
  overflow: hidden;
  background-image: radial-gradient(circle at 10% 20%, rgba(81,132,195,0.05), transparent 60%);
}

@keyframes floatIn {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.form-title {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  color: #398897;
  margin-bottom: 30px;
  position: relative;
}

.form-title::after {
  content: '';
  width: 80px;
  height: 4px;
  background: var(--accent);
  display: block;
  margin: 10px auto 0;
  border-radius: 4px;
}

.form-grid {
  display: grid;
  gap: 24px;
}

.field {
  display: flex;
  flex-direction: column;
  position: relative;
}

.field label {
  font-weight: 600;
  margin-bottom: 6px;
}

.field input {
  padding: 14px 18px;
  font-size: 16px;
  border: 2px solid var(--border);
  border-radius: 16px;
  background: #f8faff;
  transition: all var(--transition);
  box-shadow: inset 0 0 0 transparent;
}

.field input:focus {
  border-color: var(--blue);
  background: #ffffff;
  box-shadow: 0 0 8px 2px var(--highlight);
  outline: none;
}

/* Submit */
.submit-btn {
  background: #398897;
  color: white;
  padding: 16px;
  font-size: 17px;
  font-weight: bold;
  border: none;
  border-radius: 40px;
  cursor: pointer;
  box-shadow: 0 10px 25px var(--shadow-deep);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: skewX(-30deg);
  transition: 0.5s ease;
}

.submit-btn:hover::before {
  left: 100%;
}

.submit-btn:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 12px 30px var(--shadow-fine);
}
.field select {
  width: 100%;
  padding: 14px 18px;
  font-size: 16px;
  font-family: inherit;
  color: #1f2d3d;
  background-color: #f8faff;
  border: 2px solid var(--border);
  border-radius: 16px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg fill='%235184C3' viewBox='0 0 24 24' width='24' height='24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 16px;
  transition: all 0.3s ease;
}

.field select:focus {
  outline: none;
  border-color: var(--blue);
  background-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(81, 132, 195, 0.15);
}

/* -------------------------------- Style Administrateur ---------------------------------------- */
:root {
  --blue: #5184C3;
  --blue-dark: #398897;
  --accent: #B02534;
  --green: #2ecc71;
  --shadow: rgba(0, 0, 0, 0.1);
  --bg: #f9fafb;
  --white: #ffffff;
  --font-main: 'Open Sans', sans-serif;
}

body.bodyAdminPage {
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  background-color: var(--bg);
  color: #1f2d3d;
}

.DivAdminPage {
  width: 100vw;
  height: 100vh;
  display: flex;
}

.MainDivLeft,
.MainDivRight {
  width: 50%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.MainDivLeftTop,
.MainDivLeftBot,
.MainDivRightTop,
.MainDivRightBot 
{
  width: 98%;
  height: 50%;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: center;
  border-radius: 36px;
  background: var(--white);
  box-shadow: 0 6px 20px var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin: 10px;
  overflow: auto;
}
.MainDivRightLastMonth
{
  width: 98%;
  height: 90%;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: center;
  border-radius: 36px;
  background: var(--white);
  box-shadow: 0 6px 20px var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin: 10px;
  overflow: auto;
}
.MainDivRightLastMonth:hover
{
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.MainDivLeftTop:hover,
.MainDivLeftBot:hover,
.MainDivRightTop:hover,
.MainDivRightBot:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Titres */
.MainDivLeftTop > h3,
.MainDivLeftBot > h3,
.MainDivRightTop > h3,
.MainDivRightBot > h3 {
  width: 90%;
  height: 10%;
  text-align: center;
  font-size: 1.2em;
  font-weight: 800; /* ✅ Ta demande */
  color: var(--blue-dark);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 6px;
  margin-bottom: 10px;
}
.MainDivRightLastMonth > h3
{
  width: 90%;
  height: 10%;
  text-align: center;
  font-size: 1.2em;
  font-weight: 800; /* ✅ Ta demande */
  color: var(--blue-dark);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 6px;
  margin-bottom: 10px;
}

/* Zones tableau */
.MainDivLeftTopTableau,
.MainDivLeftBotTableau,
.MainDivRightBotTableau {
  height: 75%;
  width: 100%;
  overflow-y: auto; 
  overflow-x: hidden;
  background: #f0f4f8;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px #ddd;
  border: 1px solid black;
}

/* Table style */
table {
  width: 100%;
  height: 100%;
  table-layout: fixed; /* ou fixed, selon ce que tu veux */
  border-collapse: collapse;
  background-color: var(--white);
  border: 1px solid #ccc;
}

th, td {
  padding: 10px;
  border: 1px solid #ccc; /* ✅ bordures internes */
  text-align: center;
  vertical-align: middle;
  font-size: 75%;
  font-weight: 800;
  padding: 0;
  margin: 0;
}
.emailCss
{
  width: 25%;
}
.depCss
{
  width: 10%;
}
.numAdeCss
{
  width: 10%;
}
.nomServiceCss
{
  width: 30%;
}
.nomCss
{
  width: 12.5%;
}
.actionCss
{
  width: 12.5%;
}
.formBtnAdmin
{
  width: 100%;
  height: 25%;
  display: flex;
  padding-top: 5%;
  align-items: center;
  justify-content: center;
  padding-bottom: 25%;
}
.btnAdmin
{
  width: auto;
  height: auto;
  font-size: 100%;
  text-align: center;
  padding: 5%;
  margin: 0;
}

/* Ajout de département */
.MainDivRightBotAddDepartement {
  width: 90%;
  height: 15%;
  margin-top: 2.5vh;
}

.MainDivRightBotAddDepartementFormulaire {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.MainDivRightBotAddDepartementFormulaire input[type="email"],
.MainDivRightBotAddDepartementFormulaire input[type="text"],
.MainDivRightBotAddDepartementFormulaire input[type="number"] {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: 12px;
  font-size: 14px;
  flex: 1;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.MainDivRightBotAddDepartementFormulaire input[type="email"]:focus,
.MainDivRightBotAddDepartementFormulaire input[type="text"]:focus,
.MainDivRightBotAddDepartementFormulaire input[type="number"]:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(81, 132, 195, 0.2);
  outline: none;
}

.MainDivRightBotAddDepartementFormulaire input[type="submit"] {
  background-color: var(--blue);
  color: white;
  margin-top: 2.5%;
  padding: 10px 20px;
  font-weight: bold;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.MainDivRightBotAddDepartementFormulaire input[type="submit"]:hover {
  background-color: var(--blue-dark);
}

/* Animation d'entrée */
@keyframes floatIn {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.MainDivLeftTop,
.MainDivLeftBot,
.MainDivRightTop,
.MainDivRightBot {
  animation: floatIn 0.6s ease;
}

/* ------------------------------------------Style graphe suers co and register---------------------------- */
.DivMainGraphe
{
  display: flex;
  width: 100%;
  height: 100%;
}
.MainDivRightTopBorder
{
  width: 0.2%;
  height: 98%;
  background-color: #000000;
}
.DivMyChartGraphe2,
.DivMyChartGraphe1
{
  width: 49.9%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.graphe2,
.graphe1
{
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* ------------------------------------------Style graphe suers co and register---------------------------- */

/* -------------------------------- Style Administrateur ---------------------------------------- */