@charset "utf-8";
/* ============================================================
   insta2026.css — Fusion de insta2026-1.css + insta-26.css
   Ordre : règles communes (ex insta2026-1) puis charte 2026
   (ex insta-26) qui surcharge en dernier.
   ============================================================ */

/* ============================================================
   IDENTITÉ VISUELLE — Typographie (adoptée le 2026-07-26)
   Police principale : Roboto (licence Apache 2.0), auto-hébergée
   dans assets/fonts/ (400 + 700). Pile complète :
     Roboto, "Segoe UI", Arial, Helvetica, sans-serif
   Appliquée notamment à .text14orange et .bleugras.
   ============================================================ */
@font-face { font-family:'Roboto'; font-style:normal; font-weight:400; font-display:swap; src:url('../assets/fonts/roboto-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family:'Roboto'; font-style:normal; font-weight:700; font-display:swap; src:url('../assets/fonts/roboto-latin-700-normal.woff2') format('woff2'); }

/* ####################  PARTIE 1 : insta2026-1.css  #################### */

/* ============================================================
   insta2026-1.css — styles communs aux pages de l'intranet
   Chargé via : <link href="insta2026-1.css" rel="stylesheet">
   Le JS du sticky est dans insta2026-1.js (calcule --menu-h).
   Intègre les classes héritées d'intranet.css / insta.css
   réellement utilisées, pour rendre ces deux fichiers inutiles.
   ============================================================ */

:root { --menu-h: 0px; }

/* ----- Classes héritées (ex intranet.css) ----- */
.Intranet {
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: normal;
  text-decoration: none;
  color: #3333FF;
}
a.Intranet:hover { text-decoration: none; color: #cc0000; }

.lien {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  color: #3366CC;
  cursor: pointer;
  font-weight: bold;
}
a.lien:hover { text-decoration: none; color: #FF0000; }

.bleugras {
  font-family: Roboto, "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #0033CC;
}
a.bleugras:hover { text-decoration: none; color: #cc0000; }

/* ----- Classes héritées (ex insta.css) ----- */
.text12orange {
  font-size: 12px;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: bold;
  color: #CD5604;
}
.text14orange {
  font-family: Roboto, "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: 14px !important;
  color: #CD5604;
  font-weight: bold;
}
.text16orange {
  font-size: 16px;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: bold;
  color: #CD5604;
}
.text14violet {
  font-size: 14px;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: bold;
  color: #84276E;
}

/* ----- Titre principal de page (hors cadre) ----- */
.titre-principal {
  text-align: center;
  font-family: Roboto, "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: 22px;
  font-weight: bold;
  color: #CD5604;
  margin: 8px 0;
}

/* ----- Encadré orange à coins arrondis (cartes d'info) — mutualisé ----- */
#rcorners,
.rcorners {
  border-radius: 25px;
  border: 2px solid orange;
  padding: 5px;
}

/* ----- En-têtes de tableau figés (sticky) ----- */
th {
  background: white;
  position: sticky;
  top: 0; /* requis pour la stickiness */
  box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.4);
}

/* ----- Conteneur de page : marge latérale (épargne le menu) ----- */
.page-wrap {
  margin-left: 12px;
  margin-right: 12px;
}

/* ============================================================
   Tableau de données : pleine largeur, bordures, en-tête figé
   sous le menu. Classe générique .data-table + alias existants
   (.suivi-table, .offres-table) pour compatibilité.
   ============================================================ */
table.data-table,
table.suivi-table,
table.offres-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-top: 1px solid #000;
  border-left: 1px solid #000;
}
table.data-table th,
table.data-table td,
table.suivi-table th,
table.suivi-table td,
table.offres-table th,
table.offres-table td {
  border-right: 1px solid #000;
  border-bottom: 1px solid #000;
  padding: 1px;
}
/* Police standard du corps des tableaux de données : Verdana (websafe, très
   lisible aux petites tailles), 12px noir. En-têtes : .bleugras (bleu gras 14px). */
table.data-table tbody td,
table.suivi-table tbody td,
table.offres-table tbody td {
  font-family: Verdana, Geneva, 'Segoe UI', sans-serif;
  font-size: 12px;
  color: #000;
}
/* Alignement vertical centré — .offres-table SEULEMENT (offres-alternance.php,
   seule page à porter cette classe au 20/08/2026). Volontairement hors de la
   liste partagée ci-dessus : .data-table et .suivi-table servent ailleurs et
   n'ont pas à changer d'aspect.
   Les lignes de la veille sont très inégales — une cellule tient sur une ligne
   quand la voisine en empile quatre (mots clés, dates, passages). Par défaut
   tout se colle en haut et la ligne se lit de travers. */
table.offres-table th,
table.offres-table td {
  vertical-align: middle;
}
table.data-table thead th,
table.suivi-table thead th,
table.offres-table thead th {
  position: sticky;
  top: var(--menu-h);
  z-index: 5;
  background: #ffffff;
  box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.4);
}

/* ----- Bloc d'en-tête arrondi (menu + filtres) ----- */
.bloc-arrondi {
  border: 1px solid #CD5700;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
}
.bloc-menu {
  text-align: center;
  padding: 6px 8px;
  border-bottom: 1px solid #CD5700;
}
.bloc-menu:last-child {
  border-bottom: none; /* dernier élément : pas de séparateur */
}
.bloc-filtres {
  padding: 6px 8px;
  padding-left: 14px;
}

/* ----- Couleurs de fond conditionnelles des cellules ----- */
.bg-ok       { background-color: #CCFFCC; } /* validé / OK */
.bg-nok      { background-color: #FAE3D8; } /* non validé */
.bg-consigne { background-color: #DBEEFD; } /* cas spécial consignes */
.cell-cm     { text-align: center; vertical-align: middle; }

/* ----- Feedback visuel temporaire des enregistrements AJAX -----
   Flash par contour interne (box-shadow) pour ne pas écraser la couleur
   de fond métier des cellules. La classe est retirée par JS après coup. */
.flash-ok { animation: flashOk 1.1s ease-out; }
.flash-ko { animation: flashKo 1.1s ease-out; }
@keyframes flashOk {
  0%   { box-shadow: inset 0 0 0 3px #28a745; }
  100% { box-shadow: inset 0 0 0 3px rgba(40,167,69,0); }
}
@keyframes flashKo {
  0%   { box-shadow: inset 0 0 0 3px #dc3545; }
  100% { box-shadow: inset 0 0 0 3px rgba(220,53,69,0); }
}

/* ----- Utilitaires de texte (remplacent <font>) ----- */
.fnt-sm    { font-size: smaller; }
.fnt-lg    { font-size: larger; }
.txt-red   { color: red; }
.txt-yellow{ color: yellow; }


/* ####################  PARTIE 2 : insta-26.css  #################### */

/* ============================================================
   insta-26.css — Charte graphique INSTA 2026
   Couleurs : orange #E8441A | violet #8B2D82
   ============================================================ */

:root {
    --insta-orange      : #E8441A;
    --insta-orange-dark : #B83210;
    --insta-violet      : #8B2D82;
}

/* ── Page ── */
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f1f3f5 !important; /* Gris léger pour faire ressortir les blocs blancs */
    padding-top: 20px;
    color: #334155;
}
.container {
    max-width: 800px;
}

/* ── En-tête titre ── */
.form-header {
    background: var(--insta-orange-dark);
    border-radius: 8px;
    padding: 16px 24px;
    margin-bottom: 24px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}
.form-header h1,
.form-header h2 {
    font-size: 20px;
    font-weight: 500;
    color: #fff;
    margin: 0;
}

/* ── Nom élève ── */
.eleve-nom, 
div.eleve-nom, 
p.eleve-nom {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: var(--insta-violet) !important; /* Restauration du violet de la charte */
    margin-top: 10px !important;
    margin-bottom: 24px !important;
    padding-left: 5px;
    display: block;
}

/* ── Fieldsets (Sections) ── */
fieldset {
    border: 1px solid var(--insta-orange) !important; /* Contour fin orange complet */
    border-left: 5px solid var(--insta-orange) !important; /* Accentuation sur le bord gauche */
    border-radius: 8px !important;
    padding: 24px 20px 16px 20px !important;
    margin-bottom: 24px;
    background: #ffffff !important; /* Fond blanc pur pour éviter tout problème avec la légende */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03); /* Relief */
    position: relative;
    height: auto !important;
    min-height: unset !important;
}

fieldset::before, fieldset::after {
    display: none !important;
}

fieldset legend {
    font-size: 12px;
    font-weight: 700;
    color: var(--insta-orange);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #ffffff !important; /* Écrase précisément la ligne orange supérieure */
    padding: 0 8px;
    width: auto;
    float: none; /* reset du float:left ajoute par Bootstrap (sinon la legende passe dans le cadre) */
    display: inline-block;
    margin-left: -4px; /* Alignement propre avec la barre d'accentuation */
}

/* ── Table layout (Pour les autres tableaux classiques de scolarité) ── */
table.form-table {
    width: 100%;
    border-collapse: collapse;
}
table.form-table td {
    padding: 8px 8px; 
    vertical-align: middle;
    font-size: 15px; 
}
table.form-table td.lbl {
    width: 35%;
    color: #475569;
    font-weight: 700;
}
table.form-table td.fld {
    width: 65%;
}
/* Lignes d'information sur toute la largeur (ex. détails dispositif) */
table.form-table td.info-bloc,
.info-bloc {
    background: #fdf4f1;
    border-left: 3px solid var(--insta-orange, #E8441A);
    border-radius: 4px;
    padding: 10px 14px;
    font-size: 13px;
    color: #444;
}
table.form-table td.info-bloc ul,
.info-bloc ul {
    margin: 0;
    padding-left: 18px;
}

/* Champ empilé pleine largeur (libellé au-dessus) — bloc Formation */
.field-stack {
    margin-bottom: 16px;
}
.field-stack > label {
    display: block;
    margin-bottom: 6px;
    color: #475569;
    font-size: 16px;
    font-weight: 700;
}
.field-stack > .form-control {
    width: 100%;
}

/* ── Rôle supplémentaire ── */
.role-title {
    font-size: 12px;
    font-weight: 500;
    color: #888;
    border-top: 0.5px solid #e0e0e0;
    padding-top: 8px;
    margin-top: 4px;
    display: block;
}

/* ── Inputs ── */
.form-control {
    font-size: 16px !important;       
    padding: 10px 14px !important;    
    border-radius: 8px !important;    
    border: 1px solid #cbd5e1 !important;
    background-color: #fff !important;
    line-height: 1.5 !important;      
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-select, select.form-control {
    font-size: 16px !important;
    padding: 10px 36px 10px 14px !important; 
    border-radius: 8px !important;
    border: 1px solid #cbd5e1 !important;
    background-color: #fff !important;
    line-height: 1.5 !important;             
    height: auto !important;                 
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control::placeholder {
    font-size: 15px !important;
    color: #94a3b8 !important;        
}

.form-control:focus, .form-select:focus, select.form-control:focus {
    border-color: var(--insta-orange) !important;
    box-shadow: 0 0 0 4px rgba(232, 68, 26, 0.15) !important;
    outline: none;
}

label,
.col-form-label {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #1e293b;
}
/* Le libellé d'un CHAMP (au-dessus ou à gauche de la saisie) en gras, pour
   mieux le détacher de la valeur (04/10/2026). Les libellés de cases à cocher
   et de boutons radio gardent la graisse 600 ci-dessus : ce sont souvent des
   phrases entières. */
.field-stack > label,
.col-form-label,
.form-label {
    font-weight: 700 !important;
}

/* ── Cases à cocher intégrées aux CELLULES d'un tableau de suivi ──────────────
   La règle « label » ci-dessus (style de formulaire : 15px, 600, ardoise) est en
   !important : un style inline ne peut donc pas la battre. Cette classe rétablit
   la typo dense des tableaux (Calibri 11pt, texte normal, coche verte).
     .case-tbl          -> base
     .case-tbl.encadre  -> variante avec le cadre des filtres (vert clair si cochée)
     .case-tbl.etoile   -> variante « * » : intérieur orange cochée, contour discret sinon
     .bloc-encadre      -> même cadre, pour un simple bloc de texte (ex. marquage)
     .cases-empilees    -> empilement à largeurs égales (align-items:stretch) */
label.case-tbl {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    cursor: pointer;
    white-space: nowrap;
    font-family: Calibri, 'Segoe UI', sans-serif !important;
    font-size: 11pt !important;
    font-weight: normal !important;
    color: #000 !important;
}
label.case-tbl input[type="checkbox"] {
    width: 14px;
    height: 14px;
    margin: 0;
    accent-color: #198754;   /* intérieur de la case en vert quand cochée */
    transition: none;
}
/* Cadre (style des filtres) : sur un label de case OU sur un simple bloc de texte. */
label.case-tbl.encadre,
.bloc-encadre {
    border: 1px solid #94a3b8;
    border-radius: 6px;
    padding: 2px 6px;
    background: #fff;
}
/* Bloc encadré coché -> fond vert très clair. */
label.case-tbl.encadre:has(input:checked) {
    background: #eaf7ee;
    border-color: #198754;
}
/* Variante « étoile » (case * de suivi) : intérieur orange une fois cochée,
   contour discret tant qu'elle ne l'est pas. */
label.case-tbl.etoile { gap: 3px; font-weight: bold !important; }
label.case-tbl.etoile input[type="checkbox"] {
    accent-color: #E8441A;
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid #cbd5e1;
    border-radius: 3px;
    background: #fff;
    position: relative;
}
label.case-tbl.etoile input[type="checkbox"]:checked {
    background: #E8441A;
    border-color: #E8441A;
}
label.case-tbl.etoile input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 3px;
    height: 7px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.cases-empilees {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
}

/* ── Checkbox ── */
.checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
}
.checkbox-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--insta-orange);
    flex-shrink: 0;
}
.checkbox-row label {
    font-size: 14px;
    color: #444;
    cursor: pointer;
    margin: 0;
}

/* ── Interrupteur (curseur) ── <input type="checkbox" class="insta-switch" role="switch">
   Dessiné ici, sans le .form-switch de Bootstrap : même aspect sur toutes les pages, fenêtres comprises. */
.insta-switch {
    -webkit-appearance: none;
    appearance: none;
    width: 2em;
    height: 1.1em;
    margin: 0;
    padding: 0;
    border: 1px solid #b8c0cc;
    border-radius: 1em;
    background: #fff url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23b8c0cc'/%3e%3c/svg%3e") left center / contain no-repeat;
    vertical-align: middle;
    flex-shrink: 0;
    cursor: pointer;
    transition: background-position .15s ease-in-out, background-color .15s ease-in-out;
}
.insta-switch:checked {
    background-color: var(--insta-orange);
    border-color: var(--insta-orange);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
    background-position: right center;
}
.insta-switch:focus-visible { outline: 2px solid var(--insta-orange); outline-offset: 2px; }

/* ── Radio ── */
.form-check-input {
    width: 16px;
    height: 16px;
}
.form-check-input:checked {
    accent-color: var(--insta-orange);
    background-color: var(--insta-orange);
    border-color: var(--insta-orange);
}
.form-check-label {
    font-size: 15px !important;
    padding-left: 4px;
}

/* ── Bouton Valider ── */
.valider,
button.btn-info {
    background: var(--insta-orange) !important;
    border: none !important;
    border-radius: 24px !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    color: #fff !important;
    padding: 12px 24px !important;
    transition: opacity 0.2s ease, transform 0.1s ease !important;
}
.valider:hover,
button.btn-info:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

/* ── Bouton d'ajout (bleu marine) ── */
.btn-ajout {
    border-radius: 6px;
    padding: 8px 22px;
    font-family: 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    background: #1a3a5c;
    color: #fff;
    border: 1px solid #1a3a5c;
    transition: all 0.2s ease;
}
.btn-ajout:hover {
    background: #112740;
    border-color: #112740;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* ── Transition slide fieldRespAdmin ── */
#fieldRespAdmin {
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.35s ease, padding 0.35s ease;
    max-height: 600px;
    opacity: 1;
}
#fieldRespAdmin.collapsed {
    max-height: 0;
    opacity: 0;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    border: none !important;
    margin: 0 !important;
}

/* ── Autocomplete code postal / ville ── */
.autocomplete-cp {
    position: relative;
}
.autocomplete-cp .dropdown {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: white;
    border: 0.5px solid #ced4da;
    border-top: none;
    border-radius: 0 0 6px 6px;
    z-index: 1000;
    max-height: 220px;
    overflow-y: auto;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.autocomplete-cp .dropdown div {
    padding: 10px 12px;
    cursor: pointer;
    font-size: 14px;
}
.autocomplete-cp .dropdown div:hover {
    background: #fdf4f1;
    color: var(--insta-orange);
}
.autocomplete-cp .dropdown div span.zip {
    font-weight: 700;
    color: var(--insta-violet);
    margin-right: 6px;
}

/* ── intl-tel-input (champ téléphone international) ── */
.iti { width: 100%; }
/* Réserve la place du drapeau + indicatif. Sélecteur plus spécifique +
   !important : l'emporte sur .form-control{padding !important} ET sur le style
   inline (non-important) posé par le plugin. Largeur mesurée en JS -> --tel-pad. */
.iti input.form-control { padding-left: var(--tel-pad, 92px) !important; }

/* ── Warning ── */
.warning {
    display: none;
    color: red;
    position: relative;
    justify-content: center;
    align-items: center;
    height: 50px;
}

/* ── Fix/Surcharges des classes Bootstrap sur fieldset ── */
fieldset.bg-light, fieldset.border-dark {
    background: #ffffff !important;
    border: 1px solid var(--insta-orange) !important;
    border-left: 5px solid var(--insta-orange) !important;
    min-height: unset !important;
}
fieldset.p-2 {
    padding: 24px 20px 16px 20px !important;
}
fieldset.mt-2 {
    margin-top: 0 !important;
}

/* ── Responsive Mobile ── */
@media (max-width: 576px) {
    table.form-table td {
        display: block;
        width: 100% !important;
    }
    table.form-table td.lbl {
        padding-bottom: 2px;
        color: #888;
    }
    .valider {
        width: 100% !important;
        left: 0 !important;
        transform: none !important;
    }

    /* Section scolarité : tableau -> cartes verticales */
    .scol-table thead { display: none; }
    .scol-table, .scol-table tbody, .scol-table tr, .scol-table td { display: block; width: 100%; }
    .scol-table tr {
        border: 1px solid #cbd5e1;
        border-radius: 8px;
        padding: 10px 12px;
        margin-bottom: 14px;
        background: #fff;
    }
    .scol-table td {
        border: none !important;
        padding: 6px 0;
    }
    .scol-table td::before {
        content: attr(data-label);
        display: block;
        font-size: 12px;
        color: #64748b;
        margin-bottom: 3px;
    }
}

/* ── Validation ── */
.was-validated .form-control:valid,
.was-validated .form-select:valid,
.was-validated .form-check-input:valid {
    border-color: #cbd5e1 !important;
    background-image: none !important;
    box-shadow: none !important;
}
.was-validated .form-check-input:valid ~ .form-check-label,
.was-validated .form-check-input:valid ~ label {
    color: inherit !important;
}
.was-validated .form-control:invalid,
.was-validated .form-select:invalid {
    border: 1px solid #dc3545 !important;
}
.was-validated .form-check-input:invalid {
    outline: 2px solid #dc3545;
    outline-offset: 2px;
}


/* ============================================================
   En-tête de popup réutilisable (titre noir/blanc pleine largeur)
   Usage :
   <div class="popup-header">
       <h5 class="popup-title">Titre…</h5>
       <svg class="popup-close" onclick="window.close()" …>…</svg>
   </div>
   Le body de la popup doit retirer ses marges :
   <body class="popup-body">
   ============================================================ */
.popup-body {
    margin: 0 !important;
    padding: 0 !important;
}
.popup-header {
    position: relative;
    width: 100%;
    background-color: #212529;
    color: #fff;
    padding: 14px 48px 14px 20px; /* place à droite pour la croix */
    margin: 0;
    box-sizing: border-box;
}
.popup-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* Bouton de fermeture : cercle rouge plein, croix blanche */
.popup-close {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #dc3545;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.popup-close svg { display: block; }
.popup-close:hover { background: #b02a37; }


/* ============================================================
   Conteneur de formulaire de popup + modal de confirmation
   (centralisé pour toutes les pages *_form_pop)
   ============================================================ */
.popup-container {
    max-width: 920px;
    margin: 0 auto;
    padding: 16px;
    box-sizing: border-box;
}

/* Modal de confirmation de succès (style INSTA : bordure + bouton orange)
   Repris de Pre-Inscription_Insta : voile gris, boîte blanche, titre orange. */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    align-items: center;
    justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal-box {
    width: 90%;
    max-width: 440px;
    padding: 32px 24px;
    border: 2px solid var(--insta-orange);
    border-radius: 16px;
    background: #fff;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: popmodal 0.18s ease-out;
}
@keyframes popmodal {
    from { transform: scale(0.92); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}
.modal-box h4 {
    color: var(--insta-orange-dark);
    font-weight: 600;
    margin: 0 0 24px;
}
.modal-actions { display: flex; gap: 10px; justify-content: center; }
.modal-actions .btn-modal {
    background: var(--insta-orange);
    color: #fff;
    border: none;
    border-radius: 24px;
    padding: 8px 32px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
}
.modal-actions .btn-modal:hover { opacity: 0.9; }
/* Second bouton des modals à CHOIX (« Annuler ») : neutre, pour que l'action
   principale reste seule en orange et que le choix ne soit pas ambigu. */
.modal-actions .btn-modal-neutre {
    background: #fff;
    color: #334155;
    border: 1px solid #cbd5e1;
}
.modal-actions .btn-modal-neutre:hover { background: #f1f5f9; opacity: 1; }
/* Texte explicatif sous le titre d'un modal (conséquence de l'action). */
.modal-box .modal-texte {
    margin: -14px 0 24px;
    color: #334155;
    font-size: 14px;
}
.modal-box .modal-texte:empty { display: none; }
/* ── Section scolarité (desktop) ── */
.scol-table { width: 100%; }
.scol-table select.form-control { width: 100%; }


/* ============================================================
   Tableau encadré réutilisable — .table-container
   Enveloppe une <table> pour lui donner une bordure arrondie
   propre. Le conteneur porte le cadre externe + overflow:hidden ;
   la table ne dessine QUE ses séparateurs internes. Cela contourne
   le bug border-radius + border-collapse (où les coins arrondis
   sont ignorés par les bordures fusionnées de la table).
   En-tête : orange foncé INSTA. Compatible Bootstrap (.table,
   .table-striped, .table-hover) ; les !important neutralisent les
   bordures natives de Bootstrap, plus spécifiques.
   Usage : <div class="table-container"><table class="table ...">…</table></div>
   ============================================================ */
.table-container {
    border: 1px solid #9aa0a6;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
    background: #fff;
}
.table-container > table {
    width: 100%;
    margin: 0;
    border: none;
    border-collapse: collapse;
    --bs-table-striped-bg: #f5f1ef;
    --bs-table-hover-bg: #fdeee9;
}
.table-container thead th {
    background: var(--insta-orange-dark) !important;
    color: #fff !important;
    font-weight: 600;
    font-size: 13px;
    padding: 10px 8px;
    text-align: center;
    border: none !important;
    border-right: 1px solid #9aa0a6 !important; /* séparateurs internes verticaux */
    box-shadow: none !important;
}
.table-container td {
    font-size: 14px;
    color: #334155;
    text-align: center;
    vertical-align: middle;
    border-bottom: 1px solid #9aa0a6 !important;
    border-right: 1px solid #9aa0a6 !important;
}
/* Bordures qui toucheraient le cadre externe : retirées pour ne pas doubler */
.table-container th:last-child,
.table-container td:last-child { border-right: none !important; }
.table-container tbody tr:last-child td { border-bottom: none !important; }
.table-container td.txt-left { text-align: left; }

/* ----- Ligne enregistrée par son ✓ (contrat-echeancier, tableau de bord, Intranet_Config) -----
   La page pose .modifiee sur la ligne tant qu'elle diffère de l'enregistré : le ✓ passe du vert à l'orange. */
.ligne-ok { background: none; border: 0; padding: 2px; color: #198754; cursor: pointer; line-height: 0; }
.ligne-ok:hover { color: #0f5132; }
.ligne-ok[disabled] { opacity: .5; cursor: default; }
table tr.modifiee > td { background: #fffaf3; }
tr.modifiee .ligne-ok { color: #E8441A; }

/* ----- Case « Alerte » d'un contrat (tableau de bord, onglet Gestion ; contrats-initiale, Suivi paiement) : cochée = rouge ----- */
input.alerte-g { width: 17px; height: 17px; cursor: pointer; accent-color: #dc2626; vertical-align: middle; }
/* ----- Filtre Promotion à choix multiple (contrats-initiale, Suivi paiement ; tableau de bord, onglet Gestion) : menu déroulant Bootstrap, des cases ----- */
.choix-promos .dropdown-menu { max-height: 340px; overflow-y: auto; font-size: 13px; padding: 6px 10px; }
.choix-promos .dropdown-menu label { display: flex; gap: 6px; align-items: center; padding: 2px 0; cursor: pointer; white-space: nowrap; }
/* ----- Curseur à trois crans des filtres (includes/curseur3.js ; contrats-initiale, Suivi paiement ; tableau de bord, Suivi contrats) :
   oui à gauche, tous au milieu, non à droite, sans texte. Le bouton prend la couleur du filtre sur « oui » (c3-rouge, c3-vert),
   gris au milieu, gris foncé sur « non ». ----- */
.curseur3-boite { height: 31px; display: flex; align-items: center; }
input.curseur3 { -webkit-appearance: none; appearance: none; width: 60px; height: 22px; margin: 0; padding: 1px;
                 border: 1px solid #ced4da; border-radius: 11px; background: #e9ecef; cursor: pointer; }
input.curseur3:focus-visible { outline: 2px solid #86b7fe; outline-offset: 1px; }
input.curseur3::-webkit-slider-runnable-track { height: 18px; background: transparent; border: 0; }
input.curseur3::-moz-range-track { height: 18px; background: transparent; border: 0; }
input.curseur3::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; border: 0;
                                       border-radius: 50%; background: var(--c3, #adb5bd); }
input.curseur3::-moz-range-thumb { width: 18px; height: 18px; border: 0; border-radius: 50%; background: var(--c3, #adb5bd); }
input.curseur3.pos-2 { --c3: #495057; }
input.curseur3.c3-rouge.pos-0 { --c3: #dc2626; }
input.curseur3.c3-vert.pos-0 { --c3: #198754; }
