.intervenant-presence-page{
    width: 100%;
    margin-left: 350px;
}
.intervenant-presence-page.large{ 
    margin-left: 140px !important;
    max-width: calc(100% - 140px);
}

.presence-head{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
}

.left-arrow{
    transform: rotate(180deg);
}

.title-container{
    display: flex;
    align-items: center;
    gap: 20px;
}

.title-container span{
    padding: 6px 8px;
    background: rgba(238, 250, 251, 1);
    border-radius: 6px;
}

.presence-head p.title{
    font-size: 34px;
    font-weight: 500;
}

.subtitle{
    font-size: 26px;
    font-weight: 500;
}

.presence-head  .switcher{
    display: flex;
    align-items: center;
    background: rgba(52, 73, 94, 0.07);
    padding: 6px;
    border-radius: 100px;
    gap: 6px;
    opacity: 0.7;
}

.presence-head  .switcher a{
    font-weight: 500;
    color: rgba(52, 73, 94, .7);
    padding: 6px;
    cursor: pointer;
}

.presence-head  .switcher a.active{
    color: rgba(52, 73, 94, 1);
    padding-right: 10px;
    padding-left: 10px;
    border-radius: 100px;
    border-width: 2px;
    background-color: #FFF;
    border: 2px solid rgba(255, 255, 255, 1);
    box-shadow: 0px 4px 12px 0px rgba(0, 0, 0, 0.02) inset;
    opacity: 1;
}

.presence-content{
    display: flex;
    margin-bottom: 40px;
    overflow-x: scroll;
}

.seance-metrics{
    display: flex;
    flex: 0 0 38%;
    flex-direction: column;
    gap: 24px;
    margin-right: 20px;
}

.metrics-container{
    display: flex;
    gap: 40px;
}

.seance-metrics .metrics{
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0px 30px 180px 10px #0000001A;
    gap: 0;
}

.seance-metrics .metrics p{ margin: 0; }
.seance-metrics .metrics .value{
    margin-bottom: 20px;
    font-family: Fraunces;
    font-weight: 400;
    font-size: 44px;
    line-height: 100%;
    color: #F3B51B;
}
.seance-metrics .metrics .bold{ font-weight: 500; }

.form-container{
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.seance-metrics .form-row{
    display: flex;
    flex-direction: column;
}

.seance-metrics .form-row input, .seance-metrics .form-row textarea{ 
    border-radius: 8px;
    padding: 8px 16px;
    background: #FFF;
    box-shadow: 0px 30px 180px 10px #0000001A;
    border: 1px solid #E2E2E2
}
.seance-metrics .form-row textarea{ min-height: 100px; }

.seance-container{ 
    flex: 0 0 100%; 
    margin-right: 20px;
} 
.seance-container.large{ flex: 0 0 100% !important; } 

.seance-container form{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.seance-container table{
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 4px;
    background-color: #FFF;
    padding: 0 20px 0 0;
}

.seance-container table, 
.seance-container table thead,
.seance-container table th, 
.seance-container table td{ 
    border: none; 
    color: #34495E;
    font-family: Rubik;
    font-weight: 500;
    font-size: 16px;
    line-height: 100%;
    text-align: center;
    text-transform: uppercase;
}
.seance-container table thead, 
.seance-container table thead th{ background-color: transparent; }
.seance-container table thead th.left,
.seance-container table tbody td.left{ text-align: left; }
.seance-container table thead td.activeSeance{ color: #FF5C00; }

.seance-container table thead td.activeSeance,
.responsive-date-row.activeSeance{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px
}

.seance-container table thead td.activeSeance p,
.responsive-date-row.activeSeance p{
    margin: 0; 
}

.seance-container table thead td.activeSeance a,
.responsive-date-row.activeSeance a{
    width: 40px;
    height: 40px;
    padding: 10px;
    border-radius: 100%;
    background-color: #FFFFFF;
    box-shadow: 0px 20px 40px 5px #00000012;
    cursor: pointer;
}

.seance-container table thead td.activeSeance a:first-child img,
.responsive-date-row.activeSeance a:first-child img{
    transform: rotate(180deg);
}

.seance-btn-container{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.seance-btn-container p{ 
    font-weight: 400;
    margin: 5px 0; 
}
.seance-btn-container p.bold{ font-weight: 500; } 

.seance-container table tbody tr{
    box-shadow: 0px 10px 20px -5px #0000000A;
    border-radius: 10px;
    background-color: #FFF;
}
.seance-container table tbody td{  padding: 10px 14px !important; }

.seance-containertable img{
    max-width: 28px;
    max-height: 28px;
    border-radius: 5px;
}
.seance-container table tbody td.yellow{  color: #F3B51B; }
.seance-container table tbody td.red{ color: #FB1057; }
.seance-container table tbody td.green{ color: #3CC469; }
.seance-container table tbody td.blue{ color: #3CBAC4; }

/* Footer */
.presence-footer{
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.presence-footer .subtitle{
    font-size: 18px;
    font-weight: 500;
}   

.presence-legends{
    display: flex; 
    gap: 20px;
}

.presence-legends div{
    display: flex;
    align-items: center;
    gap: 10px;
}

.presence-legends div p{
    margin: 0;
}

.step{
    width: 28px;
    height: 28px;
    margin-bottom: 0;
}

.step input[type="checkbox"] {
    display: none;
    align-items: center;
}

.step-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-block;
    border: 1px solid rgba(52, 73, 94, 0.6);
    box-sizing: border-box;
    position: relative;
    transition: all 0.2s ease;
}

/* état transparent (juste le contour) */
.step--empty .step-circle {
    background: transparent;
    border-color: rgba(0,0,0,0.2);
}

/* état orange */
.step--orange .step-circle {
    background: #FF5C00;
    border-color: #FF5C00;
}

.step--orange .step-circle::after {
    content: "";
    position: absolute;
    top: 6px;
    left: 10px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

/* état grise */
.step--grey .step-circle {
    background: rgba(52, 73, 94, 0.6);
    border-color: transparent;
}

.step--grey .step-circle::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 6px;
    right: 6px;
    height: 3px;
    background: white;
    transform: translateY(-50%);
    border-radius: 2px;
}

.presence-buttons{
    display: flex;
    align-items: center;
    gap: 20px;
}

.presence-footer button{
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #34495E12;
    color: #34495E;
    font-size: 18px;
    font-weight: 500;
    padding-right: 18px;
    padding-left: 18px;
    gap: 10px;
    border-radius: 100px;
    border: none;
}

.presence-footer button.save{ 
    background-color: #FF5C00;
    color: #FFF;
}

.intervenant-presence-page:not(.large) .cursor-inactive-cell,
.intervenant-presence-page:not(.large) .unactiveSeance{
    display: none !important;
}

.intervenant-presence-page .cursor-inactive-cell{
    cursor: auto !important;
}

.seance-metrics.unactiveMetrics{
    display: none !important;
}
.intervenant-presence-page .responsive{ display: none; }


@media (min-width: 1260px) and (max-width: 1500px) {
    .intervenant-presence-page{
        margin-left: 300px !important;
    }

    .presence-content{
        overflow-y: scroll !important;
    }
}

@media (max-width: 1260px) {
    .intervenant-presence-page .return-button{
        width: 113px;
        height: 52px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: auto 16px;
        border-radius: 100px;
        background-color: #34495E12;
        gap: 10px;
        font-weight: 500;
    }

    .seance-container form{
        flex-direction: column !important;
    }

    .responsive{ display: block !important; }
    .hide-responsive{ display: none !important; }

    .intervenant-presence-page{ margin-left: 0; }
    .presence-head{ 
        flex-direction: column; 
        margin-bottom: 20px;
    }
    .presence-head p.title{ font-size: 20px; }
    .intervenant-presence-page .presence-head .switcher{  display: none;  }

    .presence-content{  flex-direction: column; }
    .seance-container{  margin-right: 0; }

    .seance-container table, 
    .seance-container table thead,
    .seance-container table th, 
    .seance-container table tbody td{ 
        font-size: 14px;
        padding: 5px !important;
    }

    .seance-container table td{ font-weight: 400; }

    .presence-buttons{
        width: 100%;
        justify-content: center;
    }

    .seance-metrics{
        margin-top: 40px;
    }

    .seance-metrics .subtitle{ font-size: 18px; }
    .seance-metrics p{ font-size: 14px; }

    .responsive-date-row.activeSeance a{ display: flex; }
    .intervenant-presence-page .responsive-date-row{
        width: 100%;
        display: flex !important;
        align-items: center;
        justify-content: center;
        margin-top: 20px;
        padding: 10px 20px;
        background-color: #F8F8F8 !important;
        border-radius: 15px;
        color: #34495E !important;
    }
}   

