body { position: relative; }

.etiquette { 
    border-radius: 7px;
    padding: 7px;
}

.barre-navigation {
    width: 101%;
    background: #eef2f5;
    padding: 10px;
    z-index: 10;
}

body > .container {
    min-height: 73vh;
    margin-top: 80px;
}

body > .login-container {
    min-height: 80vh;
}

h3.title {
    margin: 1em 0;
    text-align: center;
}

h3.title-table {
    margin-bottom: 1.2em;
    text-align: center;
}

#logoHeader { 
    height: 100px; 
    width: auto !important;
}

header {
    padding: 0 !important;
    margin: 0 !important;
}

pr-3 { padding-right: 1rem !important; }
pl-3 { padding-left: 1rem !important; }

.mt-6 { margin-top: 4em; }

.m-0 {
    margin: 0;
}

.mb-10 {
    margin-bottom: 10px;
}

.p-15 {
    padding: 15px;
}

.minimize-btn {
    float: right;
    width: 30px;
    height: 30px;
    
    text-align: center;
    background: #003a56;
    color: white;
    margin-top: 5px;
    cursor: pointer;
}

.minimize-btn i { line-height: 30px; }

.text-right { text-align: right; }
.text-left { text-align: left; }

.display-none { display: none; }

.modificationBlock { display: none; }

.text-secondary {
    color: grey;
}

.group-modif-master, .group-refus { display: none; }


.font-help { font-size: 1.2em; }
.v-align-middle { vertical-align: middle; }
.float-right { float: right; }
.role-subtitle {
    color: #a94442;
    font-style: italic;
}


.loading-box .small-message {
    position: absolute;
    bottom: 10px;
    width: 100%;
    text-align: center;
    line-height: 10px;
}

.loading-box {
    width: 400px;
    height: 100px;
    position: relative;
    top: 50%;
    left: calc(50% - 200px);
    background-color: #ccc;
    border: 2px solid #5e5e5e;
    font-size: 2em;
    text-align: center;
    line-height: 100px;
    z-index: 1002;
}

.backdrop {
    height: 100%;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgb(0 0 0 / 50%);
    z-index: 10000;
}

.badge-success {
    color: #fff;
    background-color: #5cb85c;
    border-color: #4cae4c;
}

.badge-warning {
    color: #fff;
    background-color: #d58512;
    border-color: #985f0d;
}

.badge-danger {
    color: #fff;
    background-color: #ac2925;
    border-color: #761c19;
}

.btn-primary  {
    background-color: #003A56 !important;
    border-color: #003A56 !important;
}

.profile-image{
    border-radius: 10px;
    border: 2px solid #003a56;
}

.card-btn:active { border: none; }

.inline-block { display: inline-block; }

.dropdown-item:focus, .dropdown-item:hover {
    background-color: auto !important;
    opacity: 0.6;
}

.dropdown-menu {
    border: 2px solid #646464;
    border-radius: 0;
}

#titreSite {
    max-width: initial;
}

#bandeau-type-jury {
    height: 100vh;
    width: 20px;
   
    position: fixed;
    top: 0;

    text-align: center;
    text-transform: uppercase;
    writing-mode: vertical-lr;
    font-weight: bold;
    line-height: 20px;
   
    background-color: #003A56;
    color: white;
    z-index: -1;
}

#bandeau-type-jury.admission, .bg-admission, .bg-admission:hover, .bg-admission:focus, .bg-admission:active  { 
    background-color: #d52b1e !important; 
}
#bandeau-type-jury.admissibilite, .bg-admissibilite, .bg-admissibilite:hover, .bg-admissibilite:focus, .bg-admissibilite:active  { 
    background-color: #687E51 !important; 
}

/* Backgrounds */
.bg-polytechnique { background-color: #003a56 !important; }
.bg-teal { background-color: #20c997 !important; }
.bg-red { background-color: #dc3545 !important; }
.bg-purple { background-color: #6f42c1 !important; }
.bg-polytechnique { background-color: #003a56 !important; }
.bg-orange { background-color: #fd7e14 !important; }
.bg-lightgrey {background-color: #ececec !important; }
table.table.dataTable.table-striped > tbody > tr:nth-of-type(2n+1) > * { box-shadow: none; }
.table-striped > tbody > tr:nth-of-type(2n+1) > * { --bs-table-bg-type: #003a5624; }

/* Couleurs texte */
.text-red { color: #dc3545; }

/* Visionneuse */
.lg-sub-html h4 {
    background-color: #00000087 !important;
    padding: 10px 0 !important;
}

/* Accueil */
.dashboard-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    display: block;
    text-decoration: none;
    color: initial;
  }
    
  /* ===== TOP BAR GRADIENT ===== */
  .card-top-bar {
    height: 50px;
    width: 100%;
    position: relative;
    overflow: hidden;
  }

  .card-top-bar::after {
    content: "";
    position: absolute;
    bottom: -20px;
    left: 100px;
    width: 120%;
    height: 40px;
    border-radius: 50%;
  }

  .bar-green, .bg-green { background: linear-gradient(135deg, #10b981, #34d399); }
  .bar-green::after, .bg-green::after { background: linear-gradient(120deg, #10b98161, #ffffff69); }

  .bar-yellow, .bg-yellow { background: linear-gradient(135deg, #facc15, #f59e0b); }
  .bar-yellow::after, .bg-yellow::after { background: linear-gradient(120deg, #facc1561, #ffffff69); }
  
  .bar-teal, .bg-teal { background: linear-gradient(135deg, #14b8a6, #06b6d4); }
  .bar-teal::after, .bg-teal::after { background: linear-gradient(120deg, #14b8a661, #ffffff69); }
  
  .bar-red, .bg-red { background: linear-gradient(135deg, #ef4444, #b32b2b); }
  .bar-red::after, .bg-red::after { background: linear-gradient(120deg, #ef444461, #ffffff69); }
  
  .bar-orange, .bg-orange { background: linear-gradient(135deg, #f97316, #fd7e14); }
  .bar-orange::after, .bg-orange::after { background: linear-gradient(120deg, #f9731661, #ffffff69); }

  .bar-secondary { background: linear-gradient(135deg, #dadada, #434343); }
  .bar-secondary::after { background: linear-gradient(120deg, #dadada61, #ffffff69); }
  
  /* ===== CARD BODY ===== */
  .dashboard-card .card-body {
    padding: 20px 24px 24px;
  }
  
  .dashboard-card .card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 16px;
  }
  
  /* ===== ICON ===== */
  
  .card-icon img {
    width: 64px;
    height: 64px;
    object-fit: contain;
  }
  
  /* ===== BADGES ===== */
  .badge-status {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #ffffff;
  }
  
  .badge-orange {
    background-color: #f97316;
  }
  
  .badge-red {
    background-color: #ef4444;
  }

/* Grilles d'évaluation */
.grille-eval-categorie-titre {
  padding: 0.5rem 0.75rem;
  text-align: center;
  font-weight: 600;
  color: #1a1a1a;
  background-color: #c8e6c9 !important;
  border: 1px solid #a5d6a7 !important;
  border-radius: 0.25rem 0.25rem 0 0;
}

.table-grilles th { background: transparent !important; }
/* .table-grilles th:not(:first-child) { width: 20%; } */
.table-grilles th { width: 25%; }
.table-grilles td input, .table-grilles td select { max-width: 200px; }

.table-grilles .has-error {
  border-color: #dc3545 !important;
  background-color: #fff5f5;
}

.nav-link.grilles-tab {
    color: var(--bs-nav-tabs-link-active-color) !important;
    background-color: var(--bs-nav-tabs-link-active-bg) !important;
    border-color: var(--bs-nav-tabs-link-active-border-color) !important;
}

.nav-link.grilles-tab.active {
    color: #ffffff !important;
    background-color: #003a56 !important;
    border-color: #003a56 !important;
}

.nav-link.grilles-tab .grille-statut-terminee {
    color: #198754;
}

.nav-link.grilles-tab .grille-statut-non-terminee {
    color: #c35a00;
}

.nav-link.grilles-tab.active .grille-statut-terminee {
    color: #75d39a;
}

.nav-link.grilles-tab.active .grille-statut-non-terminee {
    color: #ffc107;
}

/* Modern */

.modif-page-modern {
    --modif-radius: 12px;
    --modif-border: 1px solid #e6e8ec;
    --modif-surface: #fff;
    --modif-muted: #5c6570;
    --modif-accent: #1e4d8c;
    font-size: 0.9375rem;
    color: #1a1d21;
}
.modif-page-modern .modif-sections.row { align-items: stretch; }
.modif-page-modern .modif-hero {
    background: var(--modif-surface);
    border: var(--modif-border);
    border-radius: var(--modif-radius);
    padding: 0.65rem 1rem;
    margin-bottom: 0.75rem;
    box-shadow: 0px 10px 24px 6px rgba(0,0,0,0.1);
}
.modif-page-modern .modif-hero__top {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    align-items: flex-start;
    justify-content: space-between;
}
.modif-page-modern .modif-hero__meta { flex: 1 1 280px; min-width: 0; }
.modif-page-modern .modif-hero__formation {
    font-size: 0.98rem;
    font-weight: 600;
    margin: 0 0 0.2rem;
    color: #111827;
}
.modif-page-modern .modif-hero__role, .modif-hero__preference { 
    margin: 0; 
    color: var(--modif-muted); 
    font-size: 0.9rem; 
}

.modif-page-modern .modif-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
    margin-top: 0.35rem;
}
.modif-page-modern .modif-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
    align-items: center;
    flex: 1 1 220px;
}
.modif-page-modern .modif-toolbar .btn { border-radius: 8px; font-weight: 500; }
.modif-page-modern .modif-card {
    background: var(--modif-surface);
    border: var(--modif-border);
    border-radius: var(--modif-radius);
    box-shadow: 0px 10px 24px 6px rgba(0,0,0,0.1);
    overflow: hidden;
}
.modif-page-modern .modif-card--docs .modif-card__head { flex-shrink: 0; }
.modif-page-modern .modif-card__body--docs { min-height: 0; }
.modif-page-modern .modif-card__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #eef0f3;
    background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
}
.modif-page-modern .modif-card__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}
.modif-page-modern .modif-card__actions { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.modif-page-modern .modif-card__body { padding: 1rem; }
.modif-page-modern .modif-card__body--identity { padding: 0.75rem 0.9rem; }
.modif-page-modern .modif-card__body--docs { padding: 0.65rem 0.85rem 0.75rem; }
.modif-page-modern .docs-grid-scroll-wrap {
    max-height: calc((var(--doc-icon-rem, 2) * 1rem + 4.15rem) * 2 + 0.5rem);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-gutter: stable;
    padding-right: 2px;
}
.modif-page-modern .docs-grid-scroll-wrap--empty {
    max-height: none;
    overflow: visible;
    padding-right: 0;
}
.modif-page-modern .docs-grid-modern {
    display: grid;
    gap: 0.5rem;
    align-content: start;
}
.modif-page-modern .docs-grid-modern--empty { display: none; }
.modif-page-modern .doc-tile-modern {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: inherit;
    border: 1px solid #e8eaed;
    border-radius: 10px;
    padding: 0.45rem 0.3rem 0.4rem;
    background: #fafbfc;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    min-height: 0;
}
.modif-page-modern .doc-tile-modern:hover {
    border-color: #c5cad3;
    background: #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    color: inherit;
}
.modif-page-modern .doc-tile-modern__icon {
    color: var(--modif-accent);
    line-height: 1;
    margin-bottom: 0.35rem;
    font-size: calc(var(--doc-icon-rem, 2) * 1rem);
}
.modif-page-modern .doc-tile-modern__label {
    font-size: 0.7rem;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}
.modif-page-modern .doc-tile-modern__ext {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: #8892a0;
    margin-top: 0.2rem;
    letter-spacing: 0.04em;
}
.modif-page-modern .modif-identity { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.modif-page-modern .modif-identity__photo { flex: 0 0 72px; }
.modif-page-modern .modif-identity__img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e8eaed;
}
.modif-page-modern .modif-identity__main { flex: 1 1 200px; min-width: 0; }
.modif-page-modern .modif-identity__name {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.35rem;
    line-height: 1.25;
}
.modif-page-modern .modif-identity__age { font-weight: 500; color: var(--modif-muted); }
.modif-page-modern .modif-dl { margin: 0; }
.modif-page-modern .modif-dl__row {
    display: grid;
    grid-template-columns: 6.75rem 1fr;
    gap: 0.2rem 0.5rem;
    font-size: 0.8rem;
    margin-bottom: 0.15rem;
}
.modif-page-modern .modif-dl__row dt { margin: 0; color: #8892a0; font-weight: 500; }
.modif-page-modern .modif-dl__row dd { margin: 0; min-width: 0; word-break: break-word; }
.modif-page-modern .modif-identity__footer {
    margin-top: 0.65rem;
    padding-top: 0.55rem;
    border-top: 1px solid #eef0f3;
}
.modif-page-modern .modif-muted-line { margin: 0 0 0.35rem; font-size: 0.82rem; line-height: 1.4; }
.modif-page-modern .modif-muted-line:last-child { margin-bottom: 0; }
.modif-page-modern .modif-muted-line__k { color: #8892a0; font-weight: 500; margin-right: 0.35rem; }
.modif-page-modern .modif-ipp-row { margin-top: 0.5rem; }
.modif-page-modern .modif-sections .border.rounded.bg-lightgrey {
    border-color: #e6e8ec !important;
    background: #fafbfc !important;
    border-radius: var(--modif-radius) !important;
}
.modif-page-modern .modif-sections h3 { font-size: 1rem; font-weight: 600; }
.modif-page-modern .minimize-btn { opacity: 0.65; }
.modif-page-modern .modif-grilles-main-title { font-size: 1.05rem; font-weight: 600; }
.modif-page-modern .modif-grilles-phase-bar {
    background: linear-gradient(90deg, #e8f5e9 0%, #f1f8f4 100%);
    border: 1px solid #c8e6c9;
    border-radius: 8px;
    padding: 0.4rem 0.75rem;
    margin-bottom: 0.75rem;
}
.modif-page-modern .modif-grilles-phase-label { font-weight: 600; font-size: 0.9rem; color: #1b5e20; }
.modif-page-modern .modif-grilles-nav .nav-link {
    font-size: 0.85rem;
    padding: 0.45rem 0.7rem;
    border-radius: 8px 8px 0 0;
}
.modif-page-modern .modif-grilles-tab-content {
    border: 1px solid #dee2e6;
    border-top: 0;
    border-radius: 0 0 8px 8px;
    padding: 0.75rem !important;
    background: #fff;
}

/* Modal réinitialisation admin */
.reinit-modal {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
    text-align: left !important;
}
.reinit-modal .modal-header {
    border-bottom: 1px solid #eef0f3;
    background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
    padding: 0.85rem 1.1rem;
}
.reinit-modal .modal-title { font-weight: 600; letter-spacing: -0.01em; }
.reinit-modal .modal-body { padding: 1rem 1.1rem 0.35rem; }
.reinit-modal .modal-footer {
    border-top: 1px solid #eef0f3;
    background: #fafbfc;
    gap: 0.5rem;
    padding: 0.75rem 1.1rem;
}
.reinit-modal__alert {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin: 0;
    padding: 0.65rem 0.8rem;
    border-radius: 8px;
    font-size: 0.85rem;
    line-height: 1.4;
    text-align: left !important;
}
.reinit-modal__alert .fa { margin-top: 0.15rem; flex-shrink: 0; }
.reinit-modal__group {
    border: 1px solid #e8eaed;
    border-radius: 10px;
    background: #fafbfc;
    padding: 0.65rem 0.75rem;
    margin-bottom: 0.65rem;
    text-align: left !important;
}
.reinit-modal__group--last { margin-bottom: 0.85rem; }
.reinit-modal__group-title {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: #5c6570;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 0.35rem;
    text-align: left !important;
}
.reinit-modal__row {
    display: block !important;
    width: 100% !important;
    clear: both;
    margin: 0;
}
.reinit-modal__option {
    display: flex !important;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start !important;
    align-items: center;
    gap: 0.5rem;
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 0.35rem 0.3rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.3;
    color: #1a1d21;
    font-weight: 400;
    text-align: left !important;
    transition: background 0.12s ease;
}
.reinit-modal__option:hover { background: #fff; }
.reinit-modal__check {
    -webkit-appearance: none;
    appearance: none;
    float: none !important;
    position: static !important;
    display: inline-block;
    box-sizing: border-box;
    width: 1.05rem !important;
    height: 1.05rem !important;
    min-width: 1.05rem;
    margin: 0 !important;
    padding: 0 !important;
    flex: 0 0 1.05rem;
    border: 1.5px solid #9aa3af;
    border-radius: 4px;
    background: #fff;
    vertical-align: middle;
    cursor: pointer;
    accent-color: #c0392b;
}
.reinit-modal__check:checked {
    border-color: #c0392b;
    background-color: #c0392b;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E");
    background-size: 0.75rem;
    background-position: center;
    background-repeat: no-repeat;
}
.reinit-modal__check:focus {
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(192, 57, 43, 0.2);
    border-color: #c0392b;
}
.reinit-modal__label {
    display: inline-block;
    flex: 0 1 auto;
    width: auto !important;
    max-width: calc(100% - 1.55rem);
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    text-align: left !important;
    white-space: normal;
}
.reinit-modal__hint {
    display: block;
    margin: 0.2rem 0 0;
    padding: 0 0.3rem 0.1rem 1.55rem;
    font-size: 0.78rem;
    line-height: 1.35;
    color: #8892a0;
    text-align: left !important;
}

/* Couleurs pastilles rôles */
.badge-approbateur { background-color: #F26076; }
.badge-president { background-color: #FF9760; }
.badge-jury { background-color: #FFD150; }
.badge-scolarite { background-color: #5654c0; }
.badge-ri { background-color: #458B73; }
.badge-securite { background-color: #003A56; }


.table-dri-institution td { 
    width: 25%;;
}

.bg-header-bareme, .bg-header-bareme th { background-color: #d4d4d4 !important; }