* {
    -webkit-tap-highlight-color: rgba(0,0,0,0); /* make transparent link selection, adjust last value opacity 0 to 1.0 */
}

body {
    -webkit-touch-callout: none;
    -webkit-text-size-adjust: none; 
    -webkit-user-select: none;
    background: #34485C;
    background: linear-gradient(180deg,rgba(52, 72, 92, 1) 0%, rgba(52, 72, 92, 1) 50%, rgba(52, 72, 92, 0.96) 100%);
    background-attachment: fixed;
    background-size: cover;
    height:100vh;
    margin:0px;
    padding:0px;
    padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-right, 0px);
    width:100%;
    color:#ffffff;
}

        .wheel-wrapper {
            position: relative;
            width: 100%;
            max-width: 600px;
            margin: 0 auto 30px;
        }

        .arrow {
            position: absolute;
            top: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 0;
            height: 0;
            border-left: 20px solid transparent;
            border-right: 20px solid transparent;
            border-top: 40px solid #ff4136;
            z-index: 100;
            filter: drop-shadow(0 3px 5px rgba(0,0,0,0.4));
        }

        .wheel-container {
            width: 100%;
            padding-bottom: 100%; /* Ratio 1:1 pour garder un cercle */
            position: relative;
        }

        canvas {
            position: absolute;
            top: 0;
            left: 0;
            width: 100% !important;
            height: 100% !important;
            border-radius: 50%;
            box-shadow: 0 5px 20px rgba(0,0,0,0.3);
        }

        #spin-btn {
            padding: 15px 50px;
            font-size: 20px;
            font-weight: bold;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            border-radius: 50px;
            cursor: pointer;
            box-shadow: 0 5px 15px rgba(0,0,0,0.3);
            transition: all 0.3s;
            text-transform: uppercase;
            margin-bottom: 20px;
        }

        #spin-btn:hover:not(:disabled) {
            transform: translateY(-2px);
            box-shadow: 0 7px 20px rgba(0,0,0,0.4);
        }

        #spin-btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
        }

        #result {
            font-size: 26px;
            font-weight: bold;
            padding: 20px;
            background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
            border-radius: 15px;
            color: white;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
            min-height: 60px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .calibration-mode {
            margin-top: 20px;
            padding: 20px;
            background: #fff3cd;
            border: 2px solid #ffc107;
            border-radius: 10px;
        }

        .calibration-mode h3 {
            color: #856404;
            margin-bottom: 15px;
        }

        .segment-buttons {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 10px;
            margin-top: 10px;
        }

        .segment-btn {
            padding: 10px;
            background: #007bff;
            color: white;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-weight: bold;
        }

        .segment-btn:hover {
            background: #0056b3;
        }

        .correction-display {
            margin-top: 15px;
            padding: 10px;
            background: #d4edda;
            border: 1px solid #28a745;
            border-radius: 5px;
            color: #155724;
            font-weight: bold;
        }


.other-message {
  margin-bottom:15px;
  width:80%;
  background-color:#198754;
  color:#fff;
  border-radius: 8px;
  padding:8px;
}


.table-primary {
    --bs-table-border-color: #34485c!important;
}

.table {
  --bs-table-border-color: #34485c!important;
}

a {
    color: var(--bs-link-color);
    text-decoration: none;
}

.border-green {
  border: 0px #fff solid;
  background-color: #303F53 ;
  border-radius:1em;
  width:100%;
  aspect-ratio: 1 / 1;
}

.border-green-defi {
  border: 0px #fff solid;
  background-color: #303F53 ;
  border-radius:1em;
  padding:20px;
  width:100%;
}

.loader {
    /* Dimensions du cercle */
    width: 50px;
    height: 50px;
    /* Transformation en cercle */
    border-radius: 50%;
    /* Définition initiale des couleurs des bords */
    border: 5px solid #f3f3f3; /* Couleur claire pour le fond */
    border-top: 5px solid #3498db; /* Couleur de la partie mobile (bleu) */
    background-color: #303F53;
    /* Animation */
    animation: spin 1s linear infinite; /* Nom, durée, type de rythme, répétition */
    margin:auto;
    margin-top:50px;
}

/* Définition de l'animation */
@keyframes spin {
    0% {
        transform: rotate(0deg); /* Commence sans rotation */
        border-top-color: #3498db; /* Bleu */
    }
    25% {
        border-top-color: #2ecc71; /* Vert */
    }
    50% {
        border-top-color: #f1c40f; /* Jaune */
    }
    75% {
        border-top-color: #e74c3c; /* Rouge */
    }
    100% {
        transform: rotate(360deg); /* Termine une rotation complète */
        border-top-color: #3498db; /* Retour au bleu pour la continuité */
    }
}

.flip-container {
  /* Définissez la taille de votre conteneur */
  width: 100%; 
}

.flip-image {
  /* Assurez-vous que l'image remplit le conteneur */
  width: 100%;
  height: 100%;
  display: block;

  /* Applique l'animation */
  animation: rotation-360 1s 2 linear;
  /* Propriétés pour un rendu 3D plus agréable (facultatif mais recommandé) */
  transform-style: preserve-3d;
  perspective: 1000px; 
}

/* 2. Définition de l'animation avec @keyframes */
@keyframes rotation-360 {
  /* Début de l'animation */
  0% {
    transform: rotateY(0deg); /* Commence sans rotation */
  }
  
  /* Fin de l'animation */
  100% {
    transform: rotateY(360deg); /* Fait une rotation complète sur l'axe Y */
  }
}

.montserrat-global {
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
}

.cursor {
  cursor:pointer; 
}

.montserrat-bold {
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
}

.dark-green {
    color: #303F53;
}

.light-green {
    color: #34485C;
}

.progress {
  background-color:#303F53!important;
}

.font-small {
  font-size: 13px;
}

/* Ligne de séparation centrale */
.divider {
    width: 1px;
    background-color: #495057;
    height: 100%;
    min-height: 60px; /* Hauteur min pour couvrir les lignes */
}

/* Ajustement vertical pour aligner les barres et le divider */
.stat-row {
    margin-bottom: 8px; /* Espace entre chaque ligne (3 sets, 4 sets...) */
}

.btn {
    border-radius: 20px;
    padding-right:20px!important;
    padding-left:20px!important;
    padding-top: .575rem;
    padding-bottom: .575rem;
}

.btn-green {
    color: #fff!important;
    background-color: #303F53!important;
    border-color: #303F53!important;
}

.nav-pills .nav-link.active, .nav-pills .show>.nav-link {
    color: #fff!important;
    background-color: #303F53!important;
}


.table-primary {
  background-color: #303F53!important;
  --bs-table-bg: #303F53;
}

.icoTop {
  line-height: 39px!important;
  color: #fff;
  background-color: #303F53;
  width: 40px;
  height: 40px;
  border: 1px solid #303F53;
  border-radius: 50%;
  text-align: center;
  display: inline-block;
}

.icoTopXLRed {
    line-height: 50px !important;
    color: #fff;
    background-color: #d3404c;
    width: 50px;
    height: 50px;
    border: 1px solid #d3404c;
    border-radius: 50%;
    text-align: center;
    display: inline-block;
    margin-bottom: 5px;
}

.red{
    background-color: #d3404c!important;
}

.vert{
    background-color: #14a834!important;
}

.darkblue{
    background-color: #212f3d!important;
}

.alert-danger {
    color: #fff;
    background-color: #d3404c;
    border-color: #d3404c;
}

.form-check-input:checked {
    background-color: #303F53;
    border-color: #303F53;
}

.icoTopXL {
  line-height: 55px!important;
  color: #fff;
  background-color: #34485C;
  width: 55px;
  height: 55px;
  border: 1px solid #34485C;
  border-radius: 50%;
  text-align: center;
  display: inline-block;
  margin-bottom:10px;
}

.footer{
  position:fixed;
  bottom:0px;
  left:0px;
  right:0px;
  /*background-color: #5E2CED;*/
  z-index:16000;
}

.footerGradient{
  position:fixed;
  bottom:46px;
  left:0px;
  right:0px;
  height:15px;
  z-index:16000;
}

.headerGradient{
    position: fixed;
    top: 49px;
    left: 0px;
    right: 0px;
    height: 15px;
    z-index: 1000;
}

.btn:focus, .btn.focus {
  outline: 0;
  box-shadow: none;  
}

.dropdown-toggle::after {
  display: inline-block;
  margin-left: 0;
  content: "";
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
}

.dropleft .dropdown-toggle::before {
  display: inline-block;
  margin-right: 0;
  content: "";
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
}

.modal-header {
  border-bottom: 0px;
}

.modal-content {
  border-radius: 0;
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: #ecf0f140;
}

.card {
  background-color: transparent;
  border-radius: 0;
  border: 0px solid rgba(0, 0, 0, .125);
}

.list-group-item {
  position: relative;
  display: block;
  padding: 0.75rem 1.25rem;
  margin-bottom: -1px;
  background-color: transparent;
  border: 1px solid rgba(0,0,0,0.125);
  font-size:110%;
}

.form-control:disabled, .form-control[readonly] {
  background-color: #FBFBFB;
  opacity: 1;
}


.form-control, .form-select {
    background-color: #303F53!important;
    background-clip: padding-box;
    color:#fff!important;
    border: 0;
    border-radius: 20px;
    padding-left: 20px;
    outline: 0 !important;
    padding-right:20px!important;
    padding-left:20px!important;
    padding-top: .575rem;
    padding-bottom: .575rem;
}

.form-control:focus, .form-select:focus {
  outline: 0 !important;
  box-shadow: none !important;
}

.bars {
  display: inline-block;
  width: 48px;
  height: 48px;
  margin-top: 14px;
  margin-left: 20px;
}

.bleu {
  background-color: #0D6EFD!important;
}

.bar{
  width:40px;
  height:5px;
  background-color:#ffffff;
  margin-bottom:6px;
}

#bgOverlay {
  position: fixed;
  background-color: #303F53;
  top: 0px;
  left: 0px;
  right: 0px;
  bottom: 0px;
  z-index: 18;
}


#application {
    position:relative;
    z-index: 1;
    padding-top: 80px;
}

.flexVertical {
  display: flex; 
  align-items: center; 
  justify-content: center; 
  flex-direction: column;
}

.content-wrapper {
    text-align: center; /* Assure le centrage horizontal du texte à l'intérieur de l'élément */
}

.badge {
  font-size: 80%;
}

input[type="date"] {
    /* Style de base pour l'input */
    padding-right: 30px; /* Ajoute de l'espace pour l'icône */
    
    /* 1. Cacher l'icône par défaut */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Cacher l'indicateur du calendrier dans WebKit */
input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0;
    position: absolute; /* Place l'indicateur sur l'input */
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    cursor: pointer; /* Garde le curseur cliquable */
}

/* 2. Ajouter l'icône personnalisée */
input[type="date"] {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='15' viewBox='0 0 24 24'><path fill='white' d='M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 18H4V8h16v13z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 15px center; /* Positionne l'icône */
    background-size: 18px; /* Taille de l'icône */
}

input[type="time"] {
    /* Réinitialise l'apparence native pour un meilleur contrôle */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    
    /* Laisse de la place pour l'icône à droite */
    padding-right: 30px; 
    
    /* 2. Ajoute votre icône d'horloge SVG personnalisée */
    /* REMPLACER: L'URL du SVG doit être l'image d'une HORLOGE et vous pouvez changer 'red' par la couleur souhaitée */
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24'><path fill='white' d='M12 2c5.53 0 10 4.47 10 10s-4.47 10-10 10S2 17.53 2 12 6.47 2 12 2zm0 18c4.41 0 8-3.59 8-8s-3.59-8-8-8-8 3.59-8 8 3.59 8 8 8zm.5-13H11v6l5.25 3.15.75-1.23-4.5-2.62z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 18px;
}

/* 1. Cache l'indicateur (pour le rendre cliquable mais invisible) */
input[type="time"]::-webkit-calendar-picker-indicator {
    opacity: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    cursor: pointer;
}

input[type="number"]:focus  {
    background-color: #fafafa!important;
}

#validation-feedback{

    padding: 13px;
    background-color: #303F53;
    width: 90%;
    font-size: 16px;
    font-weight: bold;

}


input[type="number"]{
  outline: none;
  width:50px;
  box-shadow:none !important;
  background-color: #fafafa!important;
  color:#000!important;
  border:1px solid #fafafa!important;
  border-radius:1em;
  text-align: center;
  font-size: 30px;
}

input[type="text"], input[type="email"], input[type="password"], input[type="time"], textarea {
  outline: none;
  box-shadow:none !important;
  background-color: #303F53!important;
  color:#fff!important;
}

input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus, input[type="time"]:focus, textarea:focus {
    background-color: #303F53!important;
}

input::-webkit-input-placeholder, textarea::-webkit-input-placeholder {
  color: #ffffff!important;
}
 
 input:focus::-webkit-input-placeholder, textarea:focus::-webkit-input-placeholder {
  color: #ffffff!important;
  visibility: visible !important;
 }
 
.input-group-text {
  background-color: transparent !important;
  border-bottom: 1px solid #ccc !important;
  border:0;
  border-radius: 0;
}

.mt-6 {
    margin-top: 5rem!important;
}

.menuBar {
    cursor:pointer;
}

.panneauLateral {
    background-color: #34485C;
    position:fixed;
    z-index: 16002;
    width:100%;
    top:0;
    left:-9999px;
    bottom:0;
    overflow-y: auto;
}

.panneauLateral.open {
    left:0!important;
}

.panneauLateralNotif {
    background-color: #34485C;
    position:fixed;
    z-index: 16002;
    width:100%;
    top:0;
    left:-9999px;
    bottom:0;
    overflow-y: auto;
}

.panneauLateralNotif.open {
    left:0!important;
}

.overlay {
    position:fixed;
    z-index: 16001;
    top:0;
    left:0;
    right:0;
    bottom:0;
    background-color: rgba(0,0,0,0.4);
}

#top {
  display: none;
  position: fixed; 
  bottom: 20px; 
  right: 30px; 
  z-index: 99; 
  border: none;
  outline: none;
  background-color: #E74C3C;
  color: white;
  cursor: pointer;
  padding: 10px 17px 10px 17px;
  border-radius: 50%;
  font-size: 20px;
}

.overlay-blue {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  right: 0;
  height: 200px;
  background-color: #2C3E50;
}

.header {    
    color:#fff;
    position:fixed;
    top:0;
    right:0;
    left:0;    
    z-index:16000;
    background-color: #303F53!important;
    height:60px;
}

.fa-2x {
    font-size:1.6rem!important;
}

.dropdown-menu:not([class*=bg-]) .dropdown-item.active:not(.disabled) .uniform-checker span {
  border-color: #fff;
  color: #fff; }

.dropdown-menu:not([class*=bg-]) .dropdown-item.active:not(.disabled) .uniform-choice span {
  border-color: #fff; }

.dropdown-item.form-check .form-check-label {
  padding-left: 3.25rem; }

.dropdown-item.form-check .uniform-checker,
.dropdown-item.form-check .uniform-choice {
  margin-top: 0.50002rem;
  left: 1rem; }

.dropdown-item.form-check.form-check-right .form-check-label {
  padding-right: 3.25rem; }

.dropdown-item.form-check.form-check-right .uniform-checker,
.dropdown-item.form-check.form-check-right .uniform-choice {
  left: auto;
  right: 1rem; }

.dropdown-menu[class*=bg-]:not(.bg-white):not(.bg-transparent):not(.bg-light) .uniform-checker span {
  border-color: #fff;
  color: #fff; }

.dropdown-menu[class*=bg-]:not(.bg-white):not(.bg-transparent):not(.bg-light) .uniform-choice span {
  border-color: #fff; }

  .cordova-camera-select {
      opacity:0;
      display:none;
  }