.icon-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 60px;
    height: 100vh;
    background-color: #2c3e50;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px;
    z-index: 1000;
}

.icon-menu .menu-title {
    color: #fff;
    font-weight: bold;
    font-size: 14px;
    text-align: center;
    margin-bottom: 20px;
    white-space: nowrap;
}

.icon-menu a {
    color: white;
    text-decoration: none;
    margin: 15px 0;
    width: 100%;
    text-align: center;
    position: relative;
}

.icon-menu i {
    font-size: 20px;
}

.icon-menu span {
    position: absolute;
    left: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: #34495e;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.icon-menu a:hover span {
    opacity: 1;
}

.logout-btn {
	position: absolute !important;
	bottom : 0px;
	background-color: #e74c3c; /* rouge pour indiquer la déconnexion */
	height: 50px;
	display: flex;
	align-items: center;/* centre verticalement */
	justify-content: center;
}

.logout-btn:hover {
	background-color: #c0392b;
}

section{
	margin-left: 80px;
}

.icon-select input[type="radio"]:checked + i {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}
.icon-select i {
    font-size: 24px;
    padding: 10px;
    border: 2px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
}
.icon-select i.selected {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

body {  font-family: Calibri, Candara, Segoe, Segoe UI, Optima, Arial, sans-serif; font-size: 14px; margin: 20px; }
h2 { font-size: 24px; }
table { width: 100%; border-collapse: collapse; margin-top: 10px; }
th, td { border: 1px solid #ccc; padding: 10px; text-align: left; }
th { background-color: #f4f4f4; }
.btn { padding: 6px 12px; text-decoration: none; border-radius: 4px; }
.btn-edit { background-color: #ffc107; color: #000; }
.btn-add { background-color: #28a745; color: #fff; margin-bottom: 20px; display: inline-block; }
.chantier-header {
    background-color: #e9ecef;
    padding: 10px;
    margin-top: 30px;
    font-size: 1.2em;
    font-weight: bold;
    border-left: 5px solid #007bff;
}
form { max-width: 600px; }
label { display: block; margin-top: 10px; }
input, select, textarea {
    width: 100%; padding: 8px; margin-top: 5px;
}
/*
select[multiple] {
    height: auto;
    min-height: 100px;
    width: 100%;
}
*/
button { margin-top: 15px; padding: 10px 20px; }

p{
	font-size: 12px;
}


.chantier-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.chantier-card {
    display: block;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    text-decoration: none;
    color: #333;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chantier-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.chantier-card h4 {
    margin-top: 0;
    color: #007bff;
}

.chantier-card .description {
    font-style: italic;
    font-size: 10px;
    color: #666;
}

.fc-multimonth-month {
    height: 500px !important;
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.popup-content {
    background: #fff;
    padding: 20px 30px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
}
.popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
}

/************** GANTT **************/
:root {
    --day-width: 20px;
    --dayTeams-width: 35px;
    --week-width: calc(var(--day-width) * 7);
    --weekTeams-width: calc(var(--dayTeams-width) * 7);
}

.gantt-wrapper {
    overflow-x: auto;
    
    position: relative;
}

.gantt-header {
    display: flex;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 10;
    border: 1px solid #ccc;
}

.gantt-label {
    width: 200px;
    min-width: 200px;
    background: #fff;
    border-right: 1px solid #ccc;
    border-left: 1px solid #ccc;
    padding: 8px;
    box-sizing: border-box;
    z-index: 2;
    min-height: 50px;
}

.sticky-col {
    position: sticky;
    left: 0;
    background: #fff;
    z-index: 5;
}

.gantt-timeline {
    display: flex;
    flex: 1;
    position: relative;
}

.week-cell {
    width: var(--week-width);
    text-align: center;
    border-right: 1px solid #ccc;
    padding: 4px;
    box-sizing: border-box;
    background: #f9f9f9;
}
.weekTeams-cell {
    width: var(--weekTeams-width);
    text-align: center;
    border-right: 1px solid #ccc;
    padding: 4px;
    box-sizing: border-box;
    background: #f9f9f9;
}

.current-week {
    /*background-color: #e0f7fa;*/
    background-color: rgba(255, 215, 0, 0.3); /* jaune pâle */
}

.gantt-body {
    display: flex;
    flex-direction: column;
}

.gantt-row {
    display: flex;
    position: relative;
    border-bottom: 1px solid #ccc;
}

.gantt-grid {
    display: flex;
    height: 100%;
    position: relative;
}

.gantt-day-cell {
    flex: 0 0 var(--day-width);
    border-left: 1px solid #eee;
    height: 100%;
    box-sizing: border-box;
}
.gantt-day-cellTeams {
    flex: 0 0 var(--dayTeams-width);
    border-left: 1px solid #eee;
    height: 100%;
    box-sizing: border-box;
}

.weekend {
    background-color: #f5f5f5;
}
.second-weekend-day {
    border-right: 1px solid #ccc;
}

.current-day {
    /*background-color: #e0f7fa;*/
    background-color: rgba(255, 215, 0, 0.3); /* jaune pâle */
}

.task-bar {
    position: absolute;
    height: 50px;
    line-height: 51px;
    color: #fff;
    font-size: 12px;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.task-bar > span {
    padding: 0 8px;
}
.current-week {
    background-color: rgba(255, 215, 0, 0.3); /* jaune pâle */
    /*border: 2px solid #f0c000;*/
    font-weight: bold;
}
.btn-planifier {
    margin-top: 5px;
    font-size: 12px;
    padding: 3px 6px;
}
.gantt-footer{
    margin-top: 10px;
}
/************** GANTT **************/
.calendar-view{
    margin-top: 10px;
}

.logo-svg {
    height: auto; /* ajuste selon ton design */
    width: 50px;
    display: block;
    margin: 0 auto;
}
