/* CUSTOM CSS **********************************/

body {
	background-color: #2f94bc;
	background-image: url('../img/bg.jpg');
	background-size: cover;
	background-attachment: fixed;
	min-height: 100vh;
}
a {
  color: #4d85ce;
  text-decoration: none;
}
/*h1,h2,h3,h4{font-family: roboto;}*/
h3{
	font-size: 21px;
	margin: 15px 0 20px 0;
	border-bottom: 1px solid #ddd;
	padding: 0 0 10px 0;
}
h4{margin-bottom:20px;}
.noMarginBottom{ margin-bottom:0 !important;}
.noMarginTop{ margin-top:0 !important;}
.container, #wizard{
	position:relative;
	/*margin-bottom: 30px;*/
}
.container {
	max-width: 950px !important;
	padding: 0px;
	margin: 0 auto;
}
.formContainer{
	padding-bottom:17px !important;
	margin: 20px auto 40px auto;
}
.setWrapper{
	position:relative;
	width:100%;
	margin:0 auto;
}
#header{
	margin:0;
	/*height:200px;*/
	/*background-color: #fff;
	border-bottom: 1px solid #c9c9c9;*/
}

#header h1{
	font-size: clamp(1.3rem, 4.5vw, 2.3rem);
	line-height: clamp(1.6rem, 5.4vw, 3rem);
	color: #ffffff;
	display: inline-block;
	font-weight: bold;
	/*text-align: center;*/
}
#header h2{
	/*text-transform:uppercase;*/
	font-size: 25px;
	color: #fff;
	margin-top: 3px;
	border-top: 1px solid #fff;
	padding-top: 7px;
}
.header-bloc{
	padding: 20px 20px 20px 20px;
}
.header-content{
	background-color: #2fa2bcc9;
	padding: 13px 15px;
	border-radius: 10px
}
.header-content a{
	width: 40% !important;
  	max-width: 192px;
	padding: 8px;
}

/* STEPS*/
.wizard {
	padding: 0 20px;
}
.wizard > .steps > ul{
	display:flex;
	gap: 20px;
	justify-content: center;
}
.wizard > .steps > ul > li {
    width: 100%;
	float:none;
	background: #eee;
	border-radius: 10px;
	align-items: center;
	display: flex;
	justify-content: center;
}
.wizard > .steps {
	width: 100%;
	margin: 30px auto;
}
.wizard > .steps a, .wizard > .steps a, .wizard > .steps a:hover{
	line-height: 1.2em;
	padding: 20px 5px;
	margin: 0;
	color: #242424;
	text-align: center;
	background: none !important;
	width: 100%;
}
.wizard > .steps .done, .wizard > .steps .done:hover, .wizard > .steps .done:active {
  background: #e8e8ba;
  color: #fff;
}
.wizard > .steps .done a, .wizard > .steps .done a:hover, .wizard > .steps .done a:active {
  background: none;
}
.wizard > .steps .current, .wizard > .steps .current:hover, .wizard > .steps .current:active {
  background: #2fa2bc  !important;
  color: #fff !important;
  cursor: default;
}
.wizard > .steps .current a, .wizard > .steps .current a:hover, .wizard > .steps .current a:active {
  background: none;
}
.wizard > .steps > ul > li:last-child a {border-right: 0;}
.wizard > .content {
	background-color: #f5f5f5;
	margin: 0;
	box-shadow: 0 0rem 1.3rem rgba(0,0,0,.3) !important;
	border-radius:10px;
}
.wizard > .actions {
	background-color: #f5f5f5;
	padding: 19px 12px 12px 20px;
	margin-top: 20px;
  margin-bottom: 35px;
  border-radius: 10px;
}
.wizard > .actions a, .wizard > .actions a:active {
	background: #6ebc43;
	color:#fff;
}
.wizard > .actions a:hover {background: #67a643; color:#fff;}
.wizard > .actions .disabled a {
  background: #dcdcdc;
  color: #8e8e8e;
}
.wizard > .actions .disabled a:hover{
	background: #d4d4d4;
  color: #7b7878;
}
.wizard > .content > .body {
	padding: 0 15px 20px 15px;
}
.wizard > .content > .body label {
  margin-bottom: 0.3em;
}

.wizard > .content > .body label.error{
    color: #FF1D00;
    display: block;
    margin-left: 0;
}

form h2{
	padding: 28px 0 26px 35px;
	margin: 0px -25px 20px -25px;
	border-bottom: 1px solid #e1e1e1;
	text-transform: uppercase;
	font-size: 17px;
}
fieldset form h4{
	padding:10px 0 8px 0;
	margin:0 0 20px 0;
	border-bottom:1px solid #ccc;
	text-transform:uppercase;
}

/* BOOTSTRAP FORM ELEMENTS */
.setWrapper{position:relative;}
.row { margin-left:0; margin-right:0;}
.form-group{
	/*margin-right: -15px !important;
	margin-left: -15px !important;*/
	margin-bottom: 0.8rem;
}
/*.form-check-input{ top: -1px;margin-left: -1.35rem;}*/
.subquestion{ margin-top:-10px;}
.btn-info {
    color: #000;
    background-color: #eeece9;
    border-color: #d1d1d1;
}
.btn-primary {
    color: inherit;
    background-color: #2fa2bc;
    border: none;
}
.btn-primary:hover, .btn-primary:active, .btn-primary:focus-visible {
	color: inherit !important;
    background-color: #c9ca6e !important;
}
.btn-info:hover {
    color: #000!important;
    background-color: #d1d1d1 !important;
    border-color: #c1c1c1 !important;
	box-shadow: none !important;

}
.btn-info:focus, .btn-info:active {
    color: #000!important;;
    background-color: #d1d1d1 !important;
    border-color: #c1c1c1 !important;
	box-shadow: none !important;

}
.form-select{
	width: auto;
	padding-top: 9px !important;
	padding-bottom: 9px !important;
}

.form-label {
  margin-bottom: .4rem;
}
.form-control { 
	padding: 9px 9px;
}

.input-small {
	width: 100%;
    max-width: 150px;
}

/* Structure spéciale pour les champs input-small */
.field-with-small-input {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.field-with-small-input label {
    width: 100%;
    margin-bottom: 0.5rem;
    white-space: nowrap;
}

.field-with-small-input .input-container {
    display: flex;
    align-items: flex-start;
    width: 100%;
}

.field-with-small-input .input-group,
.field-with-small-input .form-control.input-small {
    flex-shrink: 0;
    max-width: 150px;
}

.field-with-small-input .error {
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
    word-wrap: break-word;
    line-height: 1.3;
}

.input-medium {
    width: 100%;
    max-width: 350px;
}
/*@media (max-width: 768px) {
  .input-small, .input-medium  {
    max-width: 100%;
  }
}*/

.view .hideforadmin{
    display: none !important;
}

/* SELECT2 */
.select-container {
	display: flex;
	flex-direction: column;
	width: 100%;
}
.tags-container {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	padding: 5px;
	border: 1px solid #ccc;
	background: #fff;
	border-radius: .375rem;
	margin-bottom: 10px;
}
.select-input {
	flex: 1;
	border: none !important;
	padding: 5px;
	outline: none;
}
.tag {
	display: inline-flex;
	align-items: center;
	background: #e0e0e0;
	border-radius: 12px;
	padding: 5px 10px;
	margin: 2px;
}
.tag .remove-tag {
	margin-left: 5px;
	cursor: pointer;
}
.select-dropdown {
	width: 100%;
	border: 1px solid #ccc;
	max-height: 350px;
	overflow-y: auto;
	background: #fff;
	z-index: 1000;
	border-radius: 4px;
}
.select-dropdown-option {
	padding: 2px;
	cursor: pointer;
}
.select-dropdown-option:hover, .select-dropdown-option.selected {
	background-color: #d0eaff;
}
.category {
	font-weight: bold;
	padding: 10px;
	background-color: #f5f5f5;
}
.child-option {
	padding-left: 20px;
}

/* INTRO */
/*.intro h5{ padding-bottom:15px; text-align:center;font-size: 1.2em;}
.intro .container{ max-width:950px !important;}
.contentBloc{
	padding:20px;
	border-radius:10px;
	margin: 1em 0.5em 0 0.5em;
}
#bloc1{
	margin: 20px auto 20px auto;
	background-color:#f5f5f5;
	padding:23px;
}
#bloc1 ul{
	padding: 0px 0 5px 15px;
	margin: 0;
}
#bloc1 li{
	padding: 0 0 4px 0;
}
#bloc2{
	padding-bottom:20px;
	text-align:justify;
	font-size: 0.9em;
}*/

/* LOGIN */
.loginCard {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
}
.login-box-container {
  top: auto !important;
  transform: none !important;
  position: relative;
  max-width: 400px;
  margin: 60px auto;
}

/* UPLOADER */
.pekecontainer .thumbnail{
	max-width: 300px;
}

/* Amélioration de l'affichage des uploaders en mode collaboration */
.candidat1-wrapper .pekecontainer,
.candidat2-wrapper .pekecontainer {
    max-width: 100%;
}

.candidat1-wrapper .fileContainer,
.candidat2-wrapper .fileContainer {
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Noms de fichiers longs en mode collaboration */
.candidat1-wrapper .fileContainer a,
.candidat2-wrapper .fileContainer a {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    text-decoration: none;
}

.candidat1-wrapper .fileContainer a:hover,
.candidat2-wrapper .fileContainer a:hover {
    text-decoration: underline;
}

/* Masquer les boutons de suppression en mode view */
body.view .removeFile {
    display: none !important;
}

/* VIEW */
/*.form-control-plaintext {
  display: inline-block !important;
  width: auto;
  margin-left: 0px;
  padding: 0;
  border: none !important;
}
.view .input-group:not(.noplain) {
  display: inline-block;
  width: calc(100% - 260px);
  margin-left: 0px;
  padding: 0;
}
.view .input-group-text:not(.noplain), 
.view small, 
.view #selectDropdown1, 
.view #selectDropdown2, 
.view .remove-tag, 
.view #searchInput1,
.view #searchInput2,
.view .removeFile {
    display: none;
}
.view .form-select:disabled {
  background-color: transparent;
}
.view .form-select:not(.noplain){
    background-image: none;
    padding-top: 0px !important;
    padding-bottom: 0px !important;
}
.view .form-select.is-valid:not(.noplain){
	background-image: none !important;
}
.view label:not(.noplain){
  margin-bottom: 0;
  width: 250px;
  font-weight: bold !important;
}
.view .mb-3 {
    margin-bottom: 6px !important;
}
.view .mt-2{
    margin-top: 0px !important;
}
.view .uploadDiv label{
    width: 100%;
}
.view .textareaDiv label, .view .textareaDiv textarea{
    width: 100%;
    margin: 0;
}
*/

/* GALERIES LIGHTBOX IMAGES */
.image-gallery .thumbnail {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-radius: 4px;
  overflow: hidden;
}

.image-gallery:hover .thumbnail {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.image-gallery {
  display: inline-block;
  text-decoration: none;
}

/* MODERN UPLOAD ZONES - Système d'upload amélioré */
/* Nouveau design des sections d'upload */
.upload-section {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.upload-section-header {
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 15px;
}

.upload-section-header h5 {
    color: #333;
    font-weight: 600;
    margin: 0;
}

.upload-section-content {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.upload-left {
    flex: 0 0 300px;
    min-width: 300px;
}

.upload-right {
    flex: 1;
    min-height: 200px;
}

.upload-zone {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.upload-zone:hover {
    border-color: #adb5bd;
}

.upload-zone.dragover {
    border-color: #007bff;
    background: #e7f3ff;
    border-style: solid;
}

.drop-zone {
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.drop-zone:hover {
    background: rgba(0, 123, 255, 0.05);
}

.drop-zone-content {
    text-align: center;
    color: #666;
    pointer-events: none;
}

.drop-zone-content i {
    opacity: 0.7;
    margin-bottom: 10px;
}

.drop-zone-content p {
    margin: 0;
    font-size: 14px;
}

.browse-btn {
    font-size: 12px;
    padding: 4px 8px;
    pointer-events: auto;
}

.upload-counter {
    margin-top: 15px;
    font-weight: 600;
    text-align: center;
    color: #555;
    padding: 10px;
    background: #e9ecef;
    border-radius: 6px;
}

.upload-counter span {
    color: #007bff;
}

.upload-progress {
    margin-top: 15px;
    max-height: 200px;
    overflow-y: auto;
}

.progress-bar-item {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 8px 12px;
    margin: 3px 0;
    font-size: 12px;
}

.progress-bar-item .progress {
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar-item .progress-bar {
    background: #007bff;
    height: 100%;
    transition: width 0.3s ease;
}

.progress-percent {
    font-weight: 600;
    color: #007bff;
}

/* Liste des fichiers uploadés - nouvelle structure */
.uploaded-files-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

.uploaded-file-row {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 10px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.uploaded-file-row:hover {
    background: #e9ecef;
    border-color: #007bff;
}

.uploaded-file-image {
    position: relative;
    flex: 0 0 80px;
    width: 80px;
    height: 80px;
}

.uploaded-file-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.file-remove {
    position: absolute;
    top: -5px;
    right: -5px;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.file-remove:hover {
    background: rgba(220, 53, 69, 1);
    transform: scale(1.1);
}

.uploaded-file-copyright {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* États du zone d'upload */
.upload-zone[data-type="creation"] .drop-zone-content i {
    color: #28a745;
}

.upload-zone.has-files .drop-zone {
    min-height: 80px;
}

.upload-zone.max-files .drop-zone {
    display: none;
}

/* Animation pour les nouveaux fichiers */
.uploaded-file-row.new-file {
    animation: fadeInSlide 0.3s ease;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .upload-section-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .upload-left {
        flex: none;
        min-width: auto;
        width: 100%;
    }
    
    .upload-right {
        width: 100%;
    }
    
    .uploaded-file-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }
    
    .uploaded-file-image {
        flex: none;
    }
    
    .uploaded-file-copyright {
        width: 100%;
    }
    
    .upload-zone {
        padding: 15px;
    }
    
    .drop-zone {
        min-height: 100px;
    }
    
    .drop-zone-content i {
        font-size: 2rem !important;
    }
}

/* Styles des champs copyright pour le nouveau design */
/*.copyright-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 5px;
    display: block;
}

.copyright-input {
    font-size: 0.875rem;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    width: 100%;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    background-color: #fff;
}

.copyright-input:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.copyright-input.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.copyright-input::placeholder {
    color: #6c757d;
    font-style: italic;
}

/* STYLES POUR LES ZONES D'UPLOAD MODERNES */
.upload-section {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    background-color: #fff;
}

.upload-section-header h5 {
    color: #495057;
    font-weight: 600;
}

.upload-section-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.upload-left {
    flex: 0 0 300px;
}

.upload-right {
    flex: 1;
    min-width: 0; /* Permet la flexibilité */
}

.uploaded-files-list {
    /* Supprimer toute limitation de hauteur et scroll */
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    
    /* Styles pour l'apparence */
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.uploaded-file-row {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background-color: #f8f9fa;
}

.uploaded-file-image {
    position: relative;
    flex: 0 0 80px;
}

.uploaded-file-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.file-remove {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
}

.file-remove:hover {
    background-color: #c82333;
}

.uploaded-file-copyright {
    flex: 1;
    min-width: 0;
}

.copyright-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #495057;
}

.drop-zone {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    transition: border-color 0.3s ease;
    background-color: #fafafa;
}

.drop-zone:hover {
    border-color: #007bff;
}

.drop-zone.dragover {
    border-color: #007bff;
    background-color: #e3f2fd;
}

.upload-counter {
    text-align: center;
    font-weight: 500;
}

/* STYLES POUR LES UPLOADEURS DE DOCUMENTS MODERNES */
.modern-file-upload {
    position: relative;
    margin: 10px 0;
}

.upload-zone {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    background-color: #fafafa;
    cursor: pointer;
}

.upload-zone:hover {
    border-color: #007bff;
    background-color: #f0f8ff;
}

.upload-zone.dragover {
    border-color: #007bff;
    background-color: #e3f2fd;
    border-style: solid;
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.upload-icon {
    font-size: 3rem;
    color: #6c757d;
    opacity: 0.7;
}

.upload-text {
    text-align: center;
}

.upload-main-text {
    font-size: 1.1rem;
    color: #495057;
    margin-bottom: 10px;
}

.upload-btn {
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: 4px;
}

/* Affichage des fichiers existants */
.existing-file-display {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    background-color: #f8f9fa;
}

.file-preview {
    display: flex;
    align-items: center;
    gap: 10px;
}

.file-icon {
    font-size: 2.5rem;
    color: #6c757d;
}

.file-name {
    font-weight: 500;
    color: #495057;
    word-break: break-all;
}

.image-preview img {
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.document-preview {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
}

.file-actions {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

/* Zone de progression */
.upload-progress {
    margin-top: 15px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

.upload-progress .progress {
    height: 6px;
    margin-bottom: 5px;
}

.progress-text {
    font-size: 0.875rem;
    color: #6c757d;
    text-align: center;
}

/* Messages d'erreur */
.upload-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 10px;
    padding: 8px 12px;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
}

/* Styles des icônes de fichiers */
.fas.fa-file-pdf { color: #dc3545; }
.fas.fa-file-word { color: #2b579a; }
.fas.fa-file-excel { color: #217346; }
.fas.fa-file-powerpoint { color: #d24726; }
.fas.fa-file-archive { color: #6c757d; }
.fas.fa-file-alt { color: #6c757d; }

@media (max-width: 768px) {
    .upload-section-content {
        flex-direction: column;
    }
    
    .upload-left {
        flex: none;
        width: 100%;
    }
    
    .existing-file-display {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .file-actions {
        margin-left: 0;
    }
    
    .upload-zone {
        padding: 20px 15px;
    }
    
    .upload-icon {
        font-size: 2rem;
    }
}



