@font-face {
    font-family: "Inter";
    src: url("/fonts/InterDisplay-Regular.woff2");
    font-display: swap;
}

@font-face {
    font-family: "Inter semibold";
    src: url("/fonts/InterDisplay-SemiBold.woff2");
    font-display: swap;
}

@font-face {
    font-family: "Inter bold";
    src: url("/fonts/InterDisplay-Bold.woff2");
    font-display: swap;
}

.systemMessageConfirm {
    position: relative;
    background-color: #198754;
    border-radius: 10px;
    color: #c9d6e8;
    padding: 15px;
    width:70%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1em;
}

.systemMessageError {
    position: relative;
    background-color: #dc3545;
    border-radius: 10px;
    color: #ffffff;
    padding: 15px;
    width:70%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1em;
}

.notification-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    border: none;
    background: rgba(0, 0, 0, 0.08);
    color: #c9d6e8;
    border-radius: 50%;
    font-size: 18px;
    line-height: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.notification-close:hover {
    background: rgba(0, 0, 0, 0.18);
    transform: scale(1.05);
}

body {
    padding-top: 50px;
    font-family: "Inter";
}

.page-title {
    color: #11366c;
}

.page-title-mobile {
    font-weight: bold;
    color: #11366c;
    text-align: center;
}

.page-heading {
    display: flex;
    justify-content: center;
    margin-bottom: 22px;
    padding-bottom: 6px;
    font-size: 1.45rem;
    font-weight: 700;
    color: #11366c;
    border-bottom: 3px solid #11366c;
}

.page-heading span {
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #6b7280;
}

.page-heading h1 {
    margin: 2px 0 0;
    font-weight: 700;
    color: #11366c;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
}

/* Bouton burger */
#menuToggle {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1001;
    font-size: 24px;
    background: none;
    border: none;
}

/* Sidebar */
#sidebar {
    position: fixed;
    top: 0;
    left: 0;
    /* caché */
    width: 200px;
    height: 100%;
    background: #ffffff;
    padding: 20px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1002;
    display: flex;
    flex-direction: column;
    gap: 15px;
    box-shadow:  0 0 30px rgba(0, 0, 0, 0.2);
}

#sidebar.active {
    transform: translateX(0);
}

#sidebar button {
    background: #11366c;
    color: white;
    border: none;
    padding: 10px;
    text-align: left;
    border-radius: 5px;
    align-items: center; /* aligne verticalement */
    gap: 10px;           /* espace icône / texte */
    display: flex;
}

/* Overlay */
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: none;
    z-index: 1000;
}

#overlay.active {
    display: block;
}

/* Dashboard */
.btnBox-resp {
    display: flex;
    gap:10px;
}

.agences-list-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    margin-bottom: 15px;
    border-radius: 15px;
    max-height:80vh;
    overflow-y: scroll;
}

.agence-card {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
    width: 75%;
    margin: 10px 0 10px 0;
}

.agence-card-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin: 0 0 1rem 0;
    font-size: 0.8rem;
}

.pendingRapportsBox {
    margin-bottom: 1em;
    border: #11366c solid 1px;
    padding:10px;
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
}

.pendingRapport {
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
    padding:10px;
    border-radius: 15px;
    margin-bottom: 10px;
}

.visitBtn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
}

.visitBtn {
    background-color: #11366c;
    color:#d6e6ff;
    display: flex;
    align-items: center;
    gap: 5px;
    border-radius: 5px;
    border: none;
    padding: 10px;
}

/* Page des rappels */

.rappel-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.rappel-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px;
    background: white;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.rappel-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
}

.rappel-text {
    font-size: 0.95rem;
    line-height: 1.4;
    color: #374151;
    word-break: break-word;
}

.btnDelete {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 10px;
    background: #ef4444;
    cursor: pointer;
    transition: 0.2s;
    margin-top: 5px;
}

.btnDelete:active {
    transform: scale(0.95);
}

.empty-state {
    padding: 18px;
    text-align: center;
    color: #6b7280;
    background: #f9fafb;
    border-radius: 12px;
}

.reminderCard {
    box-shadow:  0 0 30px rgba(0, 0, 0, 0.2);
    padding: 5px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.card-header {
    color: #11366c;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.form-row > div {
    padding: 10px;
}

.form-row input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-top: 5px;
}

.form-action {
    display: flex;
    justify-content: flex-end;
    padding: 10px;
}

.btn {
    background-color: #11366c;
    color:#d6e6ff;
    border-radius: 5px;
    border: none;
    padding: 10px;
    cursor: pointer;
    text-decoration: none;
}

.btnBox {
    display: flex;
    gap: 10px;
}

/*Page rapport*/
.card {
    border: none;
    box-shadow:  0 0 30px rgba(0, 0, 0, 0.2);
    padding: 5px;
    width: 45%;
    height: 3.5em;
    display:flex;
    align-items: flex-start;
    gap: 10px;
    border-radius: 5px;
}

.svgBox {
    background-color: #d6e6ff;
    width:fit-content;
    padding: 5px;
}

.rappel-content {
    display:flex;
    flex-direction: column;
    overflow-y: scroll;
    height: 3.5em;
}

.rappel-titre {
    font-weight : 600;
    margin-bottom: 5px;;
}

.rappel-item {
    padding-left: 5px;
}

.card-wrapper {
    display: flex;
    margin-bottom: 10px;
    gap: 1em;
}

.rapport-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
}

.rapport-table thead th {
    background: linear-gradient(
        to top,
        #d6e6ff 0%,
        #f7fbff 100%
    );

    color: #1f3a5f;
    font-weight: 600;
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #c9d6e8;
}

.rapport-table tbody tr:nth-child(odd) {
    background-color: #ffffff;
}

.rapport-table tbody tr:nth-child(even) {
    background-color: #e9eef5;
}

.badge-warning {
    background-color: #ff4d00;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 5px;
    font-size: .8rem;
    font-weight: 500;
}

.info-card {
    background: white;
    border-radius: 14px;
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow:  0 0 30px rgba(0, 0, 0, 0.2);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-item svg {
    display: block;
    flex-shrink: 0;
}

.info-header {
    width: 100%;
    padding: 16px;
    border: none;
    background: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-body {
    display: none;
    padding: 0 16px 16px;
}

.info-card.open .info-body {
    display: block;
}

.badge {
    background: #11366c;
    color: white;
    border-radius: 20px;
    padding: 4px 10px;
    font-size: .8rem;
}

.thematique-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.thematique-header span:first-child {
    margin-right: 12px;
}

.info-left {
    display: flex;
    align-items : center;
    gap:8px;
}

.statut-radio-group {
    min-width: 100px;
}

.infoBox {
    width: 90%;
    background-color: #e9eef5;
    color: #666;
    border-radius: 15px;
    padding: 10px;
    font-size: small;
    margin: 10px auto;
}

.iconWrapper {
    display: flex;
    justify-content: center;
}

@media (max-width: 768px) {
    .thematique-title {
        font-size: 1.3rem;
        color: #1f3a5f;
        font-weight: bold;
        padding-left: 10px;
    }
    
    .item-title {
        font-size: 1.1rem;
        font-weight: 500;
        color: #1f3a5f;
    }
    
    .item-detail {
        font-size: 0.9rem;
        color: #666;
    }

    .statut-radio-group > label {
        color: #1f3a5f;
    }

    .rapport-table thead {
        display: none; 
    }

    .rapport-table,
    .rapport-table tbody,
    .rapport-table tr,
    .rapport-table td {
        display: block;
        width: 100%;
        margin: 0 auto;
    }

    .rapport-table tr {
        margin-bottom: 15px;
        background: #fff;
        border-radius: 10px;
        box-shadow:  0 0 30px rgba(0, 0, 0, 0.2);
        padding: 10px;
        width: 90%;
    }

    .rapport-table td {
        padding: 8px 5px;
        border: none;
        display: block;
        justify-content: space-between;
        align-items: center;
        width: 95%;
    }

    .rapport-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #1f3a5f;
        margin-right: 10px;
        display: block;
        margin-bottom: 10px;
    }

    td.thematique-title::before,
    td.item-title::before,
    td.item-detail::before {
        display: none;
    }
}

/*Page synthèse*/
.hidden {
        display: none !important;
}

.card-synthese {
    border: none;
    border-radius: 5px;
    box-shadow:  0 0 30px rgba(0, 0, 0, 0.2);
    padding: 5px;
}

.synthese-table {
    width: 100%;
    border-collapse: collapse;
}

.synthese-table thead th {
    background: linear-gradient(to top, #d6e6ff, #f7fbff);
    color: #1f3a5f;
    padding: 12px;
    text-align: left;
}

.synthese-table tbody tr:nth-child(even) td {
    background-color: #f5f7fa;
}

.synthese-table td {
    padding: 10px;
    vertical-align: top;
}

.is_disabled {
    opacity: 0.5;
    pointer-events: none;
    filter: grayscale(40%);
    cursor: not-allowed;
}

.edit-mode { 
    display: none; 
}

.editing .edit-mode {
    display: block; 
}

.view-mode {
    display: block; 
}

.editing .view-mode {
    display: none; 
}

.cancelBtn {
    background-color: #dc2626;
    color: #ffffff;
    padding: 10px;
    border: none;
    border-radius: 5px;
}

@media (max-width: 768px) {

    /* on cache le header */
    .synthese-table thead {
        display: none;
    }

    /* table devient bloc */
    .synthese-table,
    .synthese-table tbody,
    .synthese-table tr,
    .synthese-table td {
        display: block;
    }

    /* chaque ligne = card */
    .synthese-table tr {
        display: block;
        background: #fff;
        margin-bottom: 12px;
        border-radius: 10px;
        box-shadow:  0 0 30px rgba(0, 0, 0, 0.2);
        padding: 10px 0;
    }

    /* cellules empilées proprement */
    .synthese-table td {
        padding: 6px 5px;
        border: none;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: flex-start;
    }

     .synthese-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #1f3a5f;
    }

    .syntheseBtnWrapper {
        display: flex;
        justify-content: center;
    }

    .commentaire_general_header {
        display: flex;
        justify-content: center;
    }

    .commentaire_general_wrapper {
        display:flex;
        justify-content: center;
        margin-bottom: 10px;
    }

    .commentaire-general {
        width: 80%;
    }
}

/* Page archive */

.archive-table {
    width: 100%;
    border-collapse: collapse;
}

.archive-table thead th {
    background: linear-gradient(to top, #d6e6ff, #f7fbff);
    color: #1f3a5f;
    padding: 12px;
    text-align: left;
}

.archive-table tbody tr:nth-child(even) td {
    background-color: #e6ecff;
}

.archive-table td {
    padding: 15px;
    vertical-align: top;
}

.archive-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.archive-card {
    background: #fff;
    border-radius: 12px;
    padding: 12px;
    box-shadow:  0 0 30px rgba(0, 0, 0, 0.2);
}

.archive-card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.archive-card-body {
    font-size: 14px;
    margin-bottom: 10px;
}

.archive-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* mobile → cards visibles */
.archive-table {
    display: none;
}

.archive-cards {
    display: flex;
}

/* desktop → table visible */
@media screen and (min-width: 1024px) {
    .archive-table {
        display: table;
    }

    .archive-cards {
        display: none;
    }
}

/*Page consultation */
.rapport-card {
    border: none;
    border-radius: 5px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
    padding: 5px;
}

.rapport-line {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px solid #f1f1f1;
}

.rapport-line:last-child {
    border-bottom: none;
}

.label {
    font-weight: 600;
    color: #555;
    min-width: 140px;
}

.value {
    text-align: right;
    color: #111;
    word-break: break-word;
}

.rapport-line.column {
    flex-direction: column;
    align-items: flex-start;
}

.rapport-line.column .value {
    text-align: left;
    margin-top: 4px;
}

.items-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.item-card {
    background: #fff;
    border-radius: 10px;
    box-shadow:  0 0 30px rgba(0, 0, 0, 0.2);
    padding: 12px;
}

.item-thematique {
    font-weight: 700;
    margin-bottom: 8px;
    color: #11366c;
    font-size: 14px;
    border-left: 3px solid #11366c;
    padding-left: 8px;
}

.item-line {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    gap: 10px;
}

.item-line .label {
    font-weight: 600;
    color: #666;
}

.item-line .value {
    text-align: right;
    color: #111;
    word-break: break-word;
}

.item-line.column {
    flex-direction: column;
    align-items: flex-start;
}

.item-line.column .value {
    text-align: left;
    margin-top: 4px;
}

/*Page password forgotten */

.passwordContainer {
    max-width: 600px;
    margin: 0 auto;
    border-radius: 10px;
}

.passwordCard-wrapper {
    box-shadow:  0 0 30px rgba(0, 0, 0, 0.2);
    padding: 10px;
    border-radius: 10px;
}

.btnBox {
    display: flex;
    justify-content: flex-end;
}

.passwordForgottenFormBtn {
    margin-top: 10px;
}

/*Page reinit password */

.passwordCardReinit-wrapper {
    display: flex;
    flex-direction: column;
    box-shadow:  0 0 30px rgba(0, 0, 0, 0.2);
    padding: 10px;
    border-radius: 10px;
}

.confirm {
    margin-top: 10px;
}