/*
 * styles.css - Feuille de style principale Citeamup EasyRallye
 *
 * 2025 Citeamup - NOTICE OF COPYRIGHT
 * Unauthorized copying, modification, distribution, or use of this source file is strictly prohibited.
 * For more information about this source code, please contact: hello@citeamup.com
 * @author @copyright 2025 Citeamup SASU
 * All rights reserved. Citeamup EasyRallye is an International Registered Trademark & Property of Citeamup SASU
 */

/* ================= Polices ================= */
@font-face {
  font-family: 'Aptos';
  src: local('Aptos Regular'),
       url('../fonts/aptos.woff2') format('woff2'),
       url('../fonts/aptos.woff')  format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Aptos';
  src: local('Aptos Display'),
       url('../fonts/aptos-display.woff2') format('woff2'),
       url('../fonts/aptos-display.woff')  format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Aptos';
  src: local('Aptos Semi Bold'),
       url('../fonts/aptos-semibold.woff2') format('woff2'),
       url('../fonts/aptos-semibold.woff')  format('woff');
  font-weight: 700;
  font-style: bold;
  font-display: swap;
}

h1, h2, h3 {
  font-family: 'Aptos Display', sans-serif;
}


/* ================= Page Login ================= */
body.login-body {
    margin: 0;
    font-family: 'Aptos', Arial, sans-serif;
    background: url('../img/background.jpg') no-repeat center center fixed;
    background-size: auto;
}

.login-box {
    background: white;
    padding: 40px;
    box-sizing: content-box;
	width: 100%;
	max-width: 400px;
	margin: 10vh auto;
    border-radius: 20px;
    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.4);
    text-align: center;
}

.login-box img {
    max-width: 250px;
    margin-bottom: 20px;
}

.login-box input[type="email"],
.login-box input[type="password"] {
    width: 80%;
    padding: 12px;
    margin: 10px 0;
    border-radius: 10px;
    border: 1px solid #ccc;
}

.login-box button {
    background-color: #0077cc;
    color: white;
    padding: 12px;
	margin-top: 15px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    width: 60%;
}

.login-box button:hover {
    background-color: #005fa3;
}

.login-box .remember-me {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 15px 0;
    font-size: 14px;
}

.login-box .remember-me input[type="checkbox"] {
    margin: 0;
    transform: scale(1.2);
}

.login-error {
    color: red;
    margin-top: 10px;
}

.footer-login {
  color: #ffffff;
  text-align: center;
  padding: 15px;
  font-size: 0.9em;
  position: relative;
  bottom: 0;
}


@media (max-width: 768px) {
  .footer-login {
    margin-left: 0;
  }
}

/* ================= Wrapper ================= */
.wrapper {
  display: flex;
  flex-direction: row;
  width: 100%;
  min-height: 100vh;
}


body {
    margin: 0;
    font-family: 'Aptos', Arial, sans-serif;
    background-color: #f8f8f0;
    color: #333;
    min-height: 100vh;
}

html, body {
    height: 100%;
}



/* ================= Sidebar ================= */

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 250px;
  height: 100vh;
  background-color: #3a1f1f;
  color: #fff;
  padding: 20px;
  z-index: 999;
  overflow-y: auto;
  flex-shrink: 0;
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.3);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.sidebar-logo img {
  max-width: 200px;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.sidebar-logo img:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}


/* Menu items et groupes */

.menu-item,
.menu-toggle {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  padding: 10px 15px 10px 20px; /* place pour le rectangle rouge */
  border-radius: 8px;
  font-family: 'Aptos', sans-serif;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
  font-weight: 700;
}

.menu-item:hover,
.menu-toggle:hover {
  background-color: #000;
  transform: translateX(4px);
}

.menu-item:hover::before,
.menu-toggle:hover::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 4px;
  background-color: #800000;
  border-radius: 2px;
}

/* Sous-menus */

.menu-separator {
  border-top: 1px solid #555;
  margin: 15px 0;
}

.menu-group .submenu {
  list-style: none;
  padding-left: 20px;
  display: none;
  margin-top: 8px;
}

.menu-group.open .submenu {
  display: block;
}

.menu-toggle {
  font-weight: 700;
}


.menu-toggle::after {
  content: "▼";
  font-size: 0.8em;
  margin-left: auto;
  color: #ccc;
}

.menu-group.open > .menu-toggle::after {
  content: "▲";
}


.submenu a {
  font-size: 0.9em;
  padding: 8px 15px;
  color: #ccc;
  text-decoration: none;
  display: block;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.submenu a:hover {
  background-color: #333;
  color: #fff;
}
.close-btn {
  display: none;
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  z-index: 1001;
}

/* Responsive */
@media screen and (max-width: 768px) {
.sidebar {
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  width: 70%;
  max-width: 300px;
  background-color: #3a1f1f;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 1000;
  padding: 20px;
  overflow-y: auto;
}

.sidebar.active {
  transform: translateX(0);
}


  .main-wrapper {
    margin-left: 0;
  }
  .sidebar.active .close-btn {
  display: block;
  }
}


/* ================= Main Wrapper ================= */
.main-wrapper {
  margin-left: 290px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 100vh;
  background: #f8f8f0;
  transition: margin-left 0.3s ease;
}

@media screen and (max-width: 768px) {
  .main-wrapper {
    margin-left: 0;
  }
}

/* ================= Header ================= */
/* === Header Desktop === */
.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background-color: #f8f8f0;
  border-bottom: 1px solid #ccc;
}

.main-header,
.mobile-header {
  background-image: url('/../admin-ctu/img/header-background.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-link {
  display: flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.profile-link .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
  margin-right: 10px;
  transition: transform 0.2s ease;
}

.profile-link .avatar:hover {
    transform: scale(1.1);}
	
	
.profile-link .avatar:hover {
    transform: scale(1.1);}
	
	
.profile-link .avatar:hover {
    transform: scale(1.1);}
	
	
.profile-link span {
    font-weight: bold;}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    transition: transform 0.2s ease;}


.avatar:hover {
    transform: scale(1.1);
}
	
	
.avatar:hover {
    transform: scale(1.1);
}
	
	
.avatar-preview {
    margin-top: 10px;
}
	
	
.avatar-preview img {
    height: 20px;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(0,0,0,0.2);
}
	
.main-header .user-info .avatar {
    width: 48px;
    height: 48px;
    margin: 5px;
}


.user-name {
  font-size: 0.9em;
  font-weight: bold;
}

.separator {
  margin: 0 5px;
}

.logout-link {
  font-size: 0.9em;
  text-decoration: none;
  color: #333;
}

/* --- Logo et Burger Mobile --- */
.top-bar-mobile {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.left-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.burger-btn {
  display: none; /* caché en desktop */
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  width: 50px;
  height: 50px;
  background-color: #3a1f1f;
  border: none;
  padding: 10px;
  cursor: pointer;
  border-radius: 6px;
}

.burger-bar {
  width: 100%;
  height: 4px;
  background-color: white;
  border-radius: 2px;
  margin: 3px 0;
  transition: 0.3s;
}

.mobile-header {
  display: none;
}

.main-header h1,
.titre-page-mobile {
  color: white;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}


/* === Header Mobile === */
@media screen and (max-width: 768px) {
  .main-header {
    display: none;
  }

  .mobile-header {
    display: flex;
    flex-direction: column;
    background-color: #3a1f1f;
    color: white;
    padding: 10px;
    position: sticky;
    top: 0;
    z-index: 999;
  }

  .top-bar-mobile {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .burger-btn {
    display: flex;
  }
  
  .mobile-logo {
  height: 50px;
  max-width: 230px;
  width: auto;
  object-fit: contain;
  display: block;
  border-radius: 8px;
}

  .user-info-mobile {
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: right;
  }

  .user-info-mobile .avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 6px rgba(0,0,0,0.3);
  }

  .user-info-mobile .user-name {
    font-size: 0.85rem;
    line-height: 1.1;
  }

  .user-info-mobile .logout-link {
    color: white;
    text-decoration: none;
    font-size: 1.4rem;
    padding-left: 10px;
  }

  .titre-page-mobile {
    margin: 10px 0 0;
    font-size: 1.3rem;
    text-align: center;
  }
}



/* ================= Footer ================= */
.footer {
  background: #f4f4f4;
  color: #555;
  text-align: center;
  padding: 15px;
  font-size: 0.9em;
  position: relative;
  bottom: 0;
}


@media (max-width: 768px) {
  .footer {
    margin-left: 0;
  }
}




/* ================= Main Content & Zones de Pages ================= */
.main-content {
  flex-grow: 1;
  padding: 30px;
  background: #f9f9f9;
}


@media (max-width: 768px) {
  .main-content {
    margin-left: 0;
  }
}

/* Mise en page des zones de page */
.page-gestion-large .form-block {
    max-width: 100% !important;
	margin-bottom: 20px;
	}
	
.page-gestion-debrief .form-block {
    max-width: 100% !important;
	margin-bottom: 20px;
	}

/* ================= Formulaires & Boutons ================= */

/* Champs texte */
input[type="text"],
input[type="email"],
input[type="password"],
textarea {
    border-radius: 8px;
    padding: 8px 10px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    font-size: 14px;
	}
	
/* Champs select */
select {
    border-radius: 3px;
    padding: 8px 10px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    font-size: 14px;
	}
	
/* Boutons généraux */
button,
input[type="submit"],
input[type="button"],
.btn,
.btn-save,
.btn-save-stay,
.btn-return {
    background-color: #0a8ce7;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
    padding: 10px 20px;
	margin: 10px;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.3s ease;
	underline: none;
	}
	
/* Boutons généraux */
button,
input[type="submit"],
input[type="button"],
.btn {
  display: inline-block;
  background-color: #0a8ce7;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: bold;
  color: white;
  text-decoration: none;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s ease;
  text-align: center;
}

.btn-green {
  background-color: #28a745;
}


.btn-grey {
  background-color: #6c757d;
  text-decoration: none;
}

/* Effet au survol des boutons */
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
.btn:hover {
    background-color: #086bb3;
	transform: scale(1.05);
	transition: transform 0.2s ease;
	}

.btn-green:hover {
  background-color: #218838;
  transform: scale(1.05);
  transition: transform 0.2s ease;
}

.btn-grey:hover {
  background-color: #5a6268;
  transform: scale(1.05);
  transition: transform 0.2s ease;
}

.double-form-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 40px;
}

.double-form-wrapper .double-form-left {
  flex: 1 1 50%;
  min-width: 300px;
}

.double-form-wrapper .double-form-right {
  flex: 1 1 45%;
  min-width: 300px;
}
	
.form-block {
    background-color: #f6f6f6;
    padding: 50px;
    border-radius: 8px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.3);
    max-width: 600px;
    margin: 0 auto;
	}
	
.form-group {
    margin-bottom: 8px;
	}
	
.form-group {
    margin-bottom: 8px;
	}
	
.form-group label {
    /*display: block;*/
    font-weight: bold;
    margin-bottom: 8px;
	}
	
.form-group label {
    /*display: block;*/
    font-weight: bold;
    margin-bottom: 8px;
	}
	
.form-group input,
.form-group select {
    width: 100%;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 16px;
	max-width: 500px;
	}
	
.form-group input,
.form-group select {
    width: 100%;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 16px;
	max-width: 500px;
	}
	
.form-group input,
.form-group select {
    width: 100%;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 16px;
	max-width: 500px;
	}
	
.form-group input,
.form-group select {
    width: 100%;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 16px;
	max-width: 500px;
	}
	
.form-buttons {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
	}
	
.form-buttons {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
	}
	
.form-section label {
  display: inline-block;
  vertical-align: middle;
  margin-bottom: 5px;
  }
  
.form-section textarea {
  vertical-align: middle;
  }
  
.form-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  }
  
.form-group {
  display: flex;
  align-items: center;
  gap: 10px;
  }
  
.form-group {
  display: flex;
  align-items: center;
  gap: 10px;
  }
  
.form-group label {
  min-width: 180px;
  }
  
.form-group label {
  min-width: 180px;
  }
  
.form-group textarea {
  width: 100%;
  resize: vertical;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #fff;
  font-size: 14px;
  box-sizing: border-box;
  max-width: 500px;
  }
  
.form-group textarea {
  width: 100%;
  resize: vertical;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #fff;
  font-size: 14px;
  box-sizing: border-box;
  max-width: 500px;
  }
  
  input[type="file"] {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: white;
  cursor: pointer;
}

.drop-zone {
    border: 2px dashed #aaa;
    padding: 30px;
    text-align: center;
    color: #555;
    border-radius: 10px;
    cursor: pointer;
    background-color: #f9f9f9;
    transition: background-color 0.3s ease;
  }
  .drop-zone.dragover {
    background-color: #e0f7ff;
  }

  .photo-preview-zone {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  
  #preview-zone {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: flex-start;
}
  
  .photo-thumb img {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
	width: 100%;
    height: auto;
    border-radius: 5px;
  }
  
    .photo-thumb {
    display: inline-block;
    position: relative;
    margin: 10px;
	width: 120px;
	transition: transform 0.2s ease;
	flex-direction: column;
	align-items: center;
    }
	
	#photo-principale-zone {
	display: flex;
	justify-content: center;
	margin-bottom: 20px;
	padding: 10px;
	border: 2px solid #333;
	border-radius: 5px;
	background-color: #cccccc;
	max-width: 402px;
	width: 100%;
}

.photo-thumb.photo-principale {
  max-width: 400px;
  width: 100%;
}

	.photo-image {
	width: 100%;
	height: auto;
	border-radius: 5px;
	display: block;
	cursor: pointer;
	}
	.photo-principale .photo-image {
	max-width: 400px;
	}
    .photo-thumb img {
    max-width: 120px;
    border-radius: 5px;
    border: 1px solid #ccc;
    }
    .photo-thumb .remove {
    position: absolute;
    top: -5px;
    right: -5px;
    background: red;
    color: white;
    border: none;
    border-radius: 50%;
    width: 15px;
    height: 15px;
    cursor: pointer;
    font-weight: bold;
  }
  
  .btn-delete-photo {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 20px;
  height: 20px;
  background-color: #e30613; /* rouge vif */
  color: white;
  font-size: 25px;
  font-weight: bold;
  border: none;
  border-radius: 50%;
  text-align: center;
  line-height: 18px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-delete-photo:hover {
  background-color: #b4030e;
}

    #resultat {
            border: 1px solid #ccc;
            padding: 15px;
            margin-top: 15px;
            background: #f9f9f9;
        }

  
@media (max-width: 768px) {

	.double-form-wrapper {
    flex-direction: column;
  }

  .double-form-wrapper .double-form-left,
  .double-form-wrapper .double-form-right {
    width: 100%;
  }

  .form-group {
    display: flex;
    flex-direction: column;
    align-items: stretch;
	width: 100% !important;
	}
	
.form-group label {
    margin-bottom: 5px;
	width: 100% !important;
	display: block;
	}
	
.form-group label {
    margin-bottom: 5px;
	width: 100% !important;
	display: block;
	}
	
.form-group input,
  .form-group input[type="text"],
  .form-group textarea,
  .form-group select {
    width: 100% !important;
	}
	
.form-group input,
  .form-group input[type="text"],
  .form-group textarea,
  .form-group select {
    width: 100% !important;
	}
	
.form-group input,
  .form-group input[type="text"],
  .form-group textarea,
  .form-group select {
    width: 100% !important;
	}
	
.form-group input,
  .form-group input[type="text"],
  .form-group textarea,
  .form-group select {
    width: 100% !important;
	}
	
.form-section {
    flex-direction: column !important;
	}

  .button-group,
  .form-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .button-group .btn,
  .form-buttons .btn,
  .button-group button,
  .form-buttons button {
    width: 60%;
    max-width: 300px;
    margin: 8px 0;
  }

  .btn-save,
  .btn-save-stay,
  .btn-return {
    width: 60%;
    max-width: 300px;
    margin: 8px 0;
  }
  .photo-thumb {
    width: 48%;
  }

  .photo-thumb.photo-principale {
    width: 100%;
    max-width: 100%;
  }
}
}



/* --- Formulaires & Champs issus de Citeamup Live --- */

.responsive-form {
  display: flex;
  flex-direction: column;
  gap: 1em;
  max-width: 500px;
  margin: auto;
  padding: 1em;
}
.responsive-form label {
  display: flex;
  flex-direction: column;
}
@media screen and (max-width: 600px) {
  .responsive-form {
    padding: 0.5em;
  }
}


.form-box {
  background-color: #fce7db;
  border: 1px solid #fad8c4;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  padding: 20px;
  margin-bottom: 30px;
}

@media (max-width: 768px) {
  .form-box {
    padding: 10px;
  }
}

.form-box input[type="text"],
.form-box input[type="number"],
.form-box input[type="email"],
.form-box input[type="date"],
.form-box input[type="time"],
.form-box input[type="file"],
.form-box select {
  width: 100%;
  max-width: 400px;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: white;
  margin-bottom: 15px;
  box-sizing: border-box;
}

.form-box textarea {
  width: 100%;
  max-width: 700px;
  height: 30px;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: white;
  margin-bottom: 15px;
  resize: vertical;
  box-sizing: border-box;
}

.form-box input[type="password"] {
  width: 100%;
  max-width: 300px;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: white;
  margin-bottom: 15px;
  box-sizing: border-box;
}

.form-box input[readonly],
.form-box input[disabled] {
  background-color: #f5f5f5;
}
/*  Boutons */
.btn-submit {
  background-color: #e30613;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  cursor: pointer;
  font-weight: bold;
}

.btn-submit:hover {
  background-color: #b20812;
}

.btn-secondary {
  background-color: grey;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  cursor: pointer;
  font-weight: bold;
}

.btn-secondary:hover {
  background-color: #222;
}

.form-box button[type="submit"] {
  background-color: #e30613;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 5px 10px;
  cursor: pointer;
  width: auto;
  display: inline-block;
  max-width: 300px;
  font-weight: bold;
}

.form-box button[type="submit"]:hover {
  background-color: #b20812;
}

/*  Formulaire Simple - labels à gauche, champ à droite */
/*  pour l'intégrer : <form class="form-box form-simple">...</form> */
.form-simple .form-group {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  gap: 10px;
}

.form-simple .form-group label {
  width: 200px;
  min-width: 150px;
  font-weight: bold;
}

.form-simple .form-group .form-field,
.form-simple .form-group .form-field-with-button {
  flex: 1;
}

@media (max-width: 768px) {
  .form-simple .form-group {
    flex-direction: column;
    align-items: flex-start;
  }

  .form-simple .form-group label {
    width: 100%;
  }

  .form-simple .form-group .form-field,
  .form-simple .form-group .form-field-with-button {
    width: 100%;
  }
}
/*  Formulaire Double Colonne - 2 à 3 champs côte à côte, labels au-dessus */
/*  pour l'intégrer : <form class="form-box form-double">...</form> */
.form-double {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  column-gap: 30px;
  row-gap: 10px;
}

.form-double .form-group {
  display: flex;
  flex-direction: column;
}

.form-double .form-group label {
  font-weight: bold;
  margin-bottom: 5px;
}

@media (max-width: 768px) {
  .form-double {
    grid-template-columns: 1fr;
  }
}
/* --- FIN  Formulaires & Champs issus de Citeamup Live --- */





/* ====================== Options de Carte ====================== */
/* Container responsive */
.options-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  justify-content: space-between;
  margin-top: 1em;
}

.option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /*width: 48%;*/
  min-width: 220px;
}

/* Mobile : les switches passent en colonne */
@media screen and (max-width: 600px) {
  .options-container {
    flex-direction: column;
  }
  .option {
    width: 100%;
  }
}

/* ====================== SWITCH ON/OFF ====================== */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  background-color: #e74c3c; /* rouge = OFF par défaut */
  border-radius: 34px;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: .4s;
}

/* ON */
input:checked + .slider {
  background-color: #27ae60; /* vert = ON */
}

input:checked + .slider:before {
  transform: translateX(22px);
}

/* Optionnel : forme arrondie */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/* ================= Page Index ================= */

.hero {
  padding: 4rem 2rem;
  text-align: center;
  background: #3949ab;
  color: #fff;
}
.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}

.main-actions {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 3rem 0;
  flex-wrap: wrap;
}
.main-actions a {
  display: inline-block;
  padding: 1rem 2rem;
  background: #3949ab;
  color: white;
  text-decoration: none;
  border-radius: 10px;
  transition: background 0.3s;
}
.main-actions a:hover {
  background: #303f9f;
}



/* ================= Page Profil ================= */
/*  Message Succès */
.success {
  background: #c8e6c9;
  color: #256029;
  padding: 10px;
  margin: 1rem 0;
  border-radius: 6px;
  text-align: center;
  font-weight: bold;
}

/*  Avatar dans le formulaire */
.login-container img {
  display: block;
  margin: 10px auto;
  border-radius: 50%;
  max-width: 100px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}


/* ================= Titre de page ================= */
h1 {
  text-align: center;
  margin-top: 1rem;
  font-size: 2rem;
  color: #333;
}

/* ================= Carte ================= */
/* Carte équipe principale */
#map {
  height: calc(90vh - 220px); /* ajuste la valeur selon la taille des éléments hors carte */
  max-height: 800px;           /* limite visuelle pour écrans très grands */
  min-height: 400px;
  width: 100%;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.2);
}



.map-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 1rem 1rem;
  font-size: 1rem;
}

.map-top-bar .top-left {
  font-weight: bold;
}

.map-top-bar .top-right button {
  margin-left: 0.5rem;
  padding: 0.3rem 0.7rem;
  border: none;
  border-radius: 6px;
  background: #444;
  color: white;
  cursor: pointer;
}
.map-top-bar .top-right button:hover {
  background: #666;
}

.map-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1rem;
  align-items: center;
}

.map-controls label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.btn-retour {
  background: #eee;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  color: #333;
  font-weight: bold;
  border: 1px solid #ccc;
}

.popin {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

  .popin.hidden {
    display: none;
  }

.popin .popin-content {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  position: relative;
}

.popin .close {
  position: absolute;
  top: 2px;
  right: 8px;
  font-size: 2rem;
  cursor: pointer;
}



.qr_canvas {
  width: 300px;
  height: 300px;
}
  
.hidden {
  display: none !important;
}

@media screen and (max-width: 768px) {
    .popin .popin-content {
  width: 80%;
}
.popin .popin-image {
  width: 80%;
}
}

/* ================= Popin Creation Rapide Session ou Elément avec id ================= */
.modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: white;
  padding: 30px;
  width: 90%;
  max-width: 500px;
  border-radius: 10px;
  position: relative;
}

.modal .close {
  position: absolute;
  top: 10px; right: 15px;
  font-size: 24px;
  cursor: pointer;
}


/* ================= Messagerie ================= */

.messagerie {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 400px;
  background: #111;
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

.messagerie-header {
  background: #222;
  color: white;
  padding: 1rem;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#messages {
  flex-grow: 1;
  overflow-y: auto;
  padding: 1rem;
}

#messages .msg {
  margin-bottom: 1rem;
  color: white;
}

#messages .msg.from {
  text-align: right;
}

#messages .msg span.label {
  display: inline-block;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  background: #444;
  color: white;
  margin-bottom: 0.2rem;
}

#form-message {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  gap: 0.5rem;
}

#form-message input {
  padding: 0.4rem;
  border-radius: 6px;
  border: none;
}

#form-message button {
  padding: 0.5rem;
  border: none;
  background: #3498db;
  color: white;
  font-weight: bold;
  border-radius: 6px;
}

#form-message select {
  padding: 0.4rem;
  border-radius: 6px;
  border: none;
}

.msg-badge {
  display: inline-block;
  min-width: 24px;
  height: 24px;
  line-height: 24px;
  text-align: center;
  font-weight: bold;
  color: white;
  border-radius: 50%;
  margin-right: 6px;
}

.msg-badge.neutral {
  background: #aaa;
}

.msg .heure {
  font-size: 0.8rem;
  color: #ccc;
  margin-left: 6px;
}




/* Bouton Quitter le rallye */
.quit-button {
  display: block;
  margin: 2rem auto;
  background-color: #c62828;
  color: #fff;
  padding: 12px 24px;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}
.quit-button:hover {
  background-color: #b71c1c;
}
/* Repère Equipe */
.marker-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 3px rgba(0,0,0,0.4);
}
.marker-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.marker-couleur {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  position: relative;
  box-shadow: 0 0 3px rgba(0,0,0,0.4);
}
.marker-numero {
  position: absolute;
  bottom: -6px;
  right: -6px;
  background: #fff;
  color: #000;
  font-size: 0.75rem;
  font-weight: bold;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ccc;
}
.marker-couleur.bright .marker-numero {
  background: #000;
  color: #fff;
}

/* ================= Messagerie ================= */
.bouton-message {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #444;
  color: white;
  border: none;
  border-radius: 50%;
  padding: 12px 14px;
  font-size: 20px;
  cursor: pointer;
  z-index: 1000;
}

.messagerie-fermee {
  display: none;
}

#messagerie {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 300px;
  max-height: 400px;
  background: #000;
  color: white;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 1001;
}

.messagerie-header {
  background: #222;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.messagerie-corps {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  background: #111;
}

.messagerie-corps .message {
  margin-bottom: 8px;
  max-width: 80%;
  word-wrap: break-word;
}

.message.equipe {
  text-align: right;
  background: #336699;
  color: white;
  border-radius: 8px 8px 0 8px;
  padding: 6px 10px;
  margin-left: auto;
}

.message.autre {
  text-align: left;
  background: #333;
  color: white;
  border-radius: 8px 8px 8px 0;
  padding: 6px 10px;
}

/* ================= Tableaux ================= */
.dataTables_wrapper {
  margin-top: 20px;
  padding: 20px;
}

.dataTables_filter input {
  border-radius: 8px;
  padding: 6px;
}

.data-table {
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: auto;
    width: 100%;
}

.data-table thead {
    display: none;
}

.data-table tr {
    display: block;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    padding: 10px;
    min-width: 320px;
    width: auto !important;
    background-color: #fff;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.data-table tr:nth-child(even) {
    background-color: #f6f6f6;
}

.data-table td {
    display: block;
    position: relative;
    text-align: center;
    padding: 12px 16px;
    border: none;
    border-bottom: 1px solid #ddd;
}

.data-table td:last-child {
    border-bottom: none;
}

.data-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
}

/* Table DataTables avec entête stylisée */
table.styled-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 20px;
  font-family: 'Aptos', sans-serif;
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

table.styled-table thead {
  background-color: #3a1f1f;
  color: #fff;
}

table.styled-table thead th {
  padding: 12px 16px;
  text-align: center;
  font-weight: bold;
  font-size: 14px;
}

table.styled-table tbody td {
  padding: 10px 14px;
  text-align: center;
  border-bottom: 1px solid #ddd;
}


/* ✅ Alternance blanc / gris clair sur toutes les tables avec .styled-table */
table.styled-table tbody tr:nth-child(even) {
    background-color: #f4f4f4;
}

table.styled-table tbody tr:last-child td {
  border-bottom: none;
}

/* Coins arrondis visibles même sur thead */
table.styled-table thead th:first-child {
  border-top-left-radius: 12px;
}

table.styled-table thead th:last-child {
  border-top-right-radius: 12px;
}

table.styled-table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 12px;
}

table.styled-table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 12px;
}

/* Icones colonne actions */
.actions img { 
	width: 24px;
	margin-right: 6px;
}

.icon-actions a {
  display: inline-block;
  margin: 0 4px;
  padding: 6px;
  border-radius: 6px;
  transition: all 0.2s ease-in-out;
}

.icon-actions a:hover {
  background-color: #f0f0f0;
  transform: scale(1.1);
}

/* Avatar dans les tableaux */
	.data-table td img {
    width: 20px;
    height: 20px;
    border-radius: 5%;
    object-fit: cover;          /* garde le ratio tout en remplissant le cadre */
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
    vertical-align: middle;     /* aligne au centre de la ligne */
    transition: transform 0.3s;  /* petit effet au survol */}

	.data-table td img {
    width: 20px;
    height: 20px;
    border-radius: 5%;
    object-fit: cover;          /* garde le ratio tout en remplissant le cadre */
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
    vertical-align: middle;     /* aligne au centre de la ligne */
    transition: transform 0.3s;  /* petit effet au survol */}
.data-table td img:hover {
    transform: scale(1.1);}
.data-table td img:hover {
    transform: scale(1.1);}


/* ================= Icône Selecteur de Langue ================= */
.icone-langue {
  height: 20px;
  display: inline-block;
  margin-bottom: 8px;
  }
	
/* Injection dynamique du fond selon la valeur */
.langue-selector option[value="fr"] {
    background-image: url('../img/langues/fr.jpg');
	}
	
.langue-selector option[value="en"] {
    background-image: url('../img/langues/en.jpg');
	}
	
.langue-selector option[value="es"] {
    background-image: url('../img/langues/es.png');
	}
	
.langue-selector option[value="de"] {
    background-image: url('../img/langues/de.jpg');
	}
	
.langue-selector option[value="nl"] {
    background-image: url('../img/langues/nl.jpg');
	}
	
.langue-selector option[value="it"] {
    background-image: url('../img/langues/it.jpg');
	}
	
.langue-selector option[value="pt"] {
    background-image: url('../img/langues/pt.jpg');
	}
	
	
	/* Affichage du sélecteur de langue*/
.langue-selector {
    margin-left: 2px;
    vertical-align: top;
    height: 22px;
    font-size: 12px;
	}
	
.langue-selector option {
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 20px 20px;
    padding-left: 30px; /* Espace pour l'icône */
	}
	
.langue-selector option {
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 20px 20px;
    padding-left: 30px; /* Espace pour l'icône */
	}
	
select.langue-selector {
    display: inline-block !important;
	visibility: visible;
	opacity: 1;
    margin: 0;
    vertical-align: top;
    height: 18px; /* ou ajuste selon ton design */
    font-size: 10px; /* pour harmoniser si besoin */
	background-color: #badff9;
	border-radius: 8px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.05);
	padding: 0px;
	max-width: 40px;
	}
	
select.langue-selector {
    display: inline-block !important;
	visibility: visible;
	opacity: 1;
    margin: 0;
    vertical-align: top;
    height: 18px; /* ou ajuste selon ton design */
    font-size: 10px; /* pour harmoniser si besoin */
	background-color: #badff9;
	border-radius: 8px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.05);
	padding: 0px;
	max-width: 40px;
	}
	
.champ-multilingue {
    display: inline-block;
    margin: 0;
    padding: 5px 8px;
    font-size: 14px;
    vertical-align: middle;
    height: 26px;
    box-sizing: border-box;
	border-radius: 8px;
	background: #f0f0f0;
	color: #333;
	}
	
textarea.champ-multilingue {
  display: none; /* on masque par défaut */
  background-color: #fff !important;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 8px;
  width: 100%;
  box-sizing: border-box;
  font-size: 14px;
  resize: vertical;
  max-width: 500px;
  min-height: 40px;
  transition: all 0.2s ease-in-out;
  }
  
textarea.champ-multilingue.active {
  display: block;
  }

/* ================= Affichage Statut Sessions ================= */
.statut {
  display: inline-block;
  padding: 0.3em 0.6em;
  border-radius: 12px;
  font-weight: bold;
  font-size: 0.85rem;
  color: white;
  text-transform: uppercase;
}

.statut.inactive {
  background-color: #7f8c8d;
}

.statut.planifiee {
  background-color: #f39c12;
}

.statut.active {
  background-color: #27ae60;
}

/* --- Tableau de Bord --- */
.dashboard-content .welcome-block {
    margin-bottom: 30px;
}

.dashboard-stats-grid {
    display: flex!important;
    flex-wrap: wrap!important;
    gap: 20px;
    margin: 30px 0!important;
}

.dashboard-stat-box {
  background-color: var(--stat-color, #eaeaea);
  padding: 30px;
  border-radius: 20px;
  text-align: center;
  font-weight: bold;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
  max-width: 250px;
  margin: 10px;
  flex: 1 1 150px;
}

.dashboard-quick-links {
    display: flex!important;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap!important;
    margin-top: 20px!important;
}

.dashboard-quick-links a {
    display: inline-block;
    background-color: #0077cc;
    color: #fff;
    padding: 10px 15px;
    border-radius: 10px;
    text-decoration: none;
}

.dashboard-quick-links a:hover {
    background-color: #005fa3;
}

.dashboard-content {
  display: block;
  width: 100%;
  padding: 20px;
}

@media screen and (max-width: 768px) {
    .dashboard-stats-grid {
        flex-direction: column;
    }
    .dashboard-stat-box {
        width: 100%;
    }
}

