/* public/css/style.css */
body {
    font-family: Arial, sans-serif;
    line-height: 1.4;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #2e3e44;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    /*min-height: calc(100vh - 160px);  Ajuster selon hauteur header/footer */
}

@media(max-width: 992px) {
	.container {
    padding: 4%;
    width: 92%;
    margin-top: 0px !important;
	}
}

/* Header */
.site-header {
    background: #2e3e44;
    color: #fff;
    padding: 1rem 0;
    /*border-bottom: #2baad8 4px solid;*/
}

.site-header nav {
    width: 90%;
    max-width: 1100px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-header .site-title {
    color: #fff;
    text-decoration: none;
    font-size: 1.6rem;
    font-weight: bold;
}

.site-header .nav-menu {
    padding: 0;
    list-style: none;
    margin: 0;
}

.site-header .nav-menu .menu-item {
    display: inline;
    margin-left: 20px;
}
.site-header .nav-menu .menu-item a {
    color: #fff;
    text-decoration: none;
}
.site-header .nav-menu .menu-item a:hover {
    color: #2baad8;
}
.site-header .nav-menu .menu-item.no-link span {
    color: #ccc;
}
h1 {
    text-align: center;
}
.fa-fw {
    width: auto !important;
}
/* Footer */
.site-footer {
    text-align: center;
    padding: 20px;
    background: #2e3e44;
    color: #fff;
    margin-top: 30px;
}

/* Messages (flash, erreurs, succès) */
.message-container { margin-bottom: 15px; }
.message {
    padding: 15px;
    border-radius: 5px;
    color: #fff;
    margin: 10px 0;
}
.message.error, .error-message { background: #d9534f; }
.message.success, .success-message { background: #5cb85c; }
.message.info, .info-message { background: #5bc0de; }

p#flash-message {
    position: fixed !important;
	z-index: 999999999 !important;
    width: fit-content !important;
    bottom: 20px !important;
    /*left: 20px !important;*/
    animation: disparition 5s forwards !important;
	margin-right: 15px;
}
@keyframes disparition {
  0% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}

/* Formulaires (styles de base) */
form fieldset { margin-bottom: 20px; padding: 15px; border: 1px solid #ddd; border-radius: 4px; }
form legend { font-weight: bold; padding: 0 5px; margin-left:10px; font-size: 1.1em; }
form label { display: block; margin-bottom: 5px; font-weight: bold; }
form input[type="text"],
form input[type="email"],
form input[type="password"],
form input[type="date"],
form select,
form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
	font-family: Arial, sans-serif;
	font-size: 14px;
	background-color: #2baad81f;
}
form textarea { min-height: 100px; }
form small { display: block; font-size: 0.9em; color: #666; margin-top: -5px; margin-bottom: 25px; }

.form-group label, dl.details-list dt, .admin-list-section h4 {
    margin-bottom: 0px !important;
    /*font-weight: 400 !important;*/
    font-size: 0.85em !important;
    /*text-transform: uppercase !important;*/
    /*color: #8b8b8b !important;*/
}
.big-radio-content {
    font-weight: 400;
}
.form-check-group-inline label {
    font-weight: 400 !important;
	margin-bottom: 30px;
}
.form-group {
    margin-bottom: 5px !important;
}

fieldset#gc-cedant-info h4  {
    background-color: #2e3e44;
    color: #ffffff;
    padding: 5px 10px;
    border-radius: 5px;
}

/* Boutons */
.button, button {
    display: inline-block;
    background: #2baad8;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.9rem;
    text-align: center;
	font-family: "Montserrat", sans-serif;
	font-optical-sizing: auto;
	font-weight: <weight>;
	font-style: normal;
}
button:hover, .button:hover { background: #0056b3; }
.button.button-secondary { background: #2baad8; }
.button.button-secondary:hover { background: #0056b3; }
.button-danger { background-color: #d9534f; }
.button-danger:hover { background-color: #c9302c; }
.button-small { padding: 6px 12px; font-size: 0.9em; }

/* Ajout pour une bordure entre les lignes du tableau des contrats */
/*#contrats-table tbody td { border-bottom: 1px solid #ddd; padding: 5px !important; }*/
table {width:100%;border-spacing: 0px;}
thead th { text-align: left; }
th#th-contrat-autorisation-cedant, th#th-contrat-actions, td.actions-cell { text-align: center; }
.actions-column, .actions-cell {max-width:80px;}
section#contrats-filters-section-wrapper { margin-bottom: 20px; }

/* OEIL MOT DE PASSE */
/*#togglePasswordIcon, #toggleCurrentPasswordIcon, #toggleNewPasswordIcon, #toggleConfirmNewPasswordIcon {    position: sticky;
    float: right;
    margin-top: -36px;
    margin-right: 10px;}*/

.button-small span {
    display: inline block;
}

a.button.button-small.sort-button {
    display: flex
;
    align-items: center;
}


/* PAGE ENTITE */
.inline-form {
    display: inline-block; /* ou flex pour plus de contrôle */
    margin: 0;
}
.inline-form select, .inline-form button {
    margin-left: 5px;
    vertical-align: middle;
}
.button-small {
    padding: 3px 8px;
    font-size: 0.9em;
}

/* PAGES GENERER CONTRAT */
h3.form-subtitle, h4.form-minortitle {
    margin-bottom: 5px;
    margin-top: 20px;
}
.readonly-text-block p {
    font-size: 14px !important;
    margin-top: 0px !important;
}
p.cessionnaire-nom {
    font-size: 17px !important;
}
div#gc-step1-form-actions, div#gc-step2-form-actions { display: flex ; justify-content: space-between; margin-top: 50px; }
a#gc-step1-cancel-link { padding: 8px 20px; }
details#contract-text-preview-accordion { margin-bottom: 30px; }


@media(max-width: 992px) {
	fieldset#gc-cessionnaire-info .cessionnaire-nom strong, fieldset#gc-cessionnaire-info .cessionnaire-adresse strong { display: none !important; }
	fieldset#gc-cessionnaire-info .cessionnaire-siret { margin-top: 20px !important; }
	.readonly-text-block p { margin-bottom: 8px !important;}
}



/* Styles pour l'indicateur de progression du tunnel */
.progress-indicator {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin: 20px 0 40px;
    position: relative;
}

.progress-indicator::before {
    content: '';
    position: absolute;
    top: 15px; /* Aligner verticalement avec le centre des numéros */
    left: 15%;
    right: 15%;
    height: 2px;
    background-color: #e0e0e0;
    z-index: -1;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 20%;
    color: #999;
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #e0e0e0;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
    z-index: 1; /* Pour être au-dessus de la ligne */
}

.step-label {
    margin-top: 8px;
    font-size: 0.9em;
    font-weight: 500;
}

/* Style pour l'étape active */
.step.active .step-number {
    background-color: #2baad8; /* Couleur principale de votre thème */
    border-color: #2baad8;
}

.step.active .step-label {
    color: #2baad8;
    font-weight: bold;
}

/* Style pour les étapes complétées (nous l'utiliserons plus tard) */
.step.completed .step-number {
    background-color: #28a745; /* Vert succès */
    border-color: #28a745;
}

.step.completed .step-label {
    color: #28a745;
}

/* Checkboxes en ligne */
.form-check-group-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
	margin: 10px 0px;
}
.form-check-inline {
    display: flex;
    align-items: center;
	margin-bottom: 20px;
}
.form-check-inline .form-check-input {
    margin-right: 5px;
}
.form-check .form-check-label {
    font-weight: 400 !important;
    font-size: 0.9em;
}
.form-check .form-check-input {
    float: left;
	margin-right: 5px;
}
/* Gros boutons radio */
.big-radio-buttons-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 10px;
}
.big-radio-button {
    cursor: pointer;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 15px 25px;
    text-align: center;
    transition: all 0.2s ease-in-out;
}
.big-radio-button:hover {
    border-color: #2baad8;
    background-color: #f8f9fa;
}
.big-radio-button input[type="radio"] {
    display: none; /* Cache le bouton radio natif */
}
.big-radio-button .big-radio-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #6c757d;
}
.big-radio-button .big-radio-content .fa-check-circle { color: green; }
.big-radio-button .big-radio-content .fa-times-circle { color: red; }
.big-radio-button input[type="radio"]:checked + .big-radio-content {
    /*color: #2baad8;*/
    /*font-weight: bold;*/
	
}
.big-radio-button input[type="radio"]:checked + .big-radio-content i {
    transform: scale(1.25);
}
label.big-radio-button:has(input:checked) {
    border-color: #2baad8;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.25);
	/*font-weight: 400 !important;*/
	background: #2baad8;

}

label.big-radio-button:has(input:disabled):hover {
    border: 2px solid #ddd;
}
#gc-cedant-info label.big-radio-button:has(input:checked) .big-radio-content {
    color: #ffffff;
}
label.big-radio-button:has(input:checked[value="0"]) {
  background: #ff00002b !important;
  border-color: red;
}
label.big-radio-button:has(input:checked[value="1"]) {
  background: #00800026 !important;
  border-color: green;
}

/* Style pour l'accordéon */
.section-legend-summary {
    cursor: pointer;
    font-size: 1em;
    padding: 10px;
    background-color: #2baad8;
	color: #fff;
    border-radius: 5px;
    display: list-item; /* Pour afficher la flèche */
}
details[open] > summary {
    border-bottom: 1px solid #ddd;
}
details .readonly-text-block {
    padding: 15px;
}

/* Styles pour la nouvelle interface d'upload de photos */
.photo-upload-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}
.photo-upload-box {
    width: 200px;
    height: 200px;
    border: 2px dashed #ccc;
    border-radius: 8px;
    position: relative;
    transition: all 0.2s ease-in-out;
}
.photo-upload-box:hover {
    border-color: #2baad8;
    background-color: #f8f9fa;
}
.photo-upload-box label {
    width: 100%;
    height: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.photo-upload-box .preview-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    text-align: center;
    padding: 10px;
}
.photo-upload-box .preview-container i {
    font-size: 40px;
    margin-bottom: 10px;
}
.photo-upload-box .preview-container span {
    font-weight: bold;
}
.photo-upload-box .preview-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    border-radius: 6px;
}
.form-control-file-hidden {
    display: none;
}

/* Styles pour la modale */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.modal-content {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.modal-actions {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

@media (max-width: 992px) {
	.dashboard-grid { margin-bottom: 10px !important; }
	.button-small {
    font-size: 0.9em;
}
.button-small span {
    display: none;
}
	.dashboard-button span {
    font-size: 0.9rem !important;
}
	.dashboard-button {
    padding: 15px 5px !important;
}
	.button2 span {
        font-size: 0.75rem !important;
    }
	.pagination-settings, .page-info {
    font-size: 0.75rem !important;
	}
}

@media (max-width: 470px) {
	#gc-cedant-info .big-radio-button {
    padding: 15px 5px;
    
	}
	
	.form-check-group-inline {
    gap: 10px;
	}
	
	
}