/* =====================================================================
   prive.css : partie privée (Notes, Ressources, Annuaire, Bonus), chargée après les feuilles propres
   (style notes.css, annuaire.css) : menu interne en onglets, contenu sur toute la largeur,
   plus de décalages au pixel liés à l'ancienne colonne de gauche.
   ===================================================================== */
.contenu.prive { max-width:none; padding:18px 30px 6px; }

/* menu interne : remplacé par le menu déroulant du cadenas (entete.js y ajoute Déconnexion) */
#menugauche { display:none; }
.boutonperle { float:right; margin:6px 0 10px 20px; }
.boutonperle button.bajout { width:auto; height:32px; padding:0 16px; }

/* contenu : présentation des pages publiques (connexion, Ressources, Bonus) ;
   une fois connecté, Notes et Annuaire gardent leur présentation compacte (tableaux denses) */
.prive #principal { padding:0; background:none; font:15px/1.5 SourceSans, "Segoe UI", Verdana, sans-serif; text-align:left; }
.prive #principal.compact { font:11px/15px Verdana, Geneva, sans-serif; }
.prive .formconsult { max-width:560px; }	/* bloc de connexion : même place qu'avant par rapport au texte */
.prive #principal p { margin:0 0 9px; }
.prive #principal img { max-width:none; }
.prive #principal a.pop::after { content:none; }
.prive #principal a.pop { border-bottom:0; }
.prive #hautpage { clear:both; margin:24px 0 0; text-align:right; font:13px SourceSans, sans-serif; }

/* notes : le tableau ne passe plus sous la colonne de gauche (supprimée) */
.prive .tableaudenotes, .prive .legendecolles { margin-left:0; }
.prive .tetenotes { min-height:0; }
body.telordinateur.prive table.tableaudenotes, body.telordinateur table.tableaudenotes { width:100%; max-width:100%; }

@media (max-width:860px) { .contenu.prive { padding:12px 12px 0; } }

/* annuaire : son menu (ancienne colonne de gauche, en position absolue à 450 px du haut) devient une rangée
   d'onglets colorés, sous le menu interne ; chaque rubrique garde son repère de couleur */
#menuannuaire { position:static; display:flex; flex-wrap:wrap; align-items:stretch; gap:6px; margin:0 0 18px; font:bold 13px/1.2 SourceSans, "Segoe UI", Verdana, sans-serif; font-variant:normal; }
#menuannuaire .rectanglecouleur { display:none !important; }	/* anciens repères de couleur : abandonnés (style du nouveau site) */
#menuannuaire > div[id^="n"] a { display:block; width:auto; height:auto; margin:0; padding:6px 13px; border:1px solid var(--beige2); border-radius:15px; background:#fff !important; color:var(--gris) !important; text-decoration:none; }
#menuannuaire > div[id^="n"] a:hover { background:var(--beige) !important; color:var(--brique) !important; border-color:var(--beige3); }
#menuannuaire > div.actif a, #menuannuaire > div.actif a:hover { background:var(--brique) !important; border-color:var(--brique); color:#fff !important; }

/* blocs de connexion (Notes, Bonus, Annuaire) : plus grands, centrés, faciles à toucher sur téléphone
   (16 px dans les champs : l'iPhone ne zoome plus quand on tape) */
.prive .formconsult { max-width:none; margin:22px 0 10px; text-align:center; line-height:normal; }
.prive .boitelogin { display:inline-block; padding:22px 26px 16px; background:var(--beige); border-radius:10px; text-align:right; }
.prive .boitelogin table.tablogin td { padding:0 0 10px 0; }
.prive .boitelogin table.tablogin td.et { padding-right:10px; }
.prive .boitelogin label { font-size:16px; color:var(--gris); }
.prive .boitelogin input[type=text], .prive .boitelogin input[type=password] { width:230px !important; height:40px !important; padding:4px 10px !important; font-size:16px; border-radius:6px; background:#fff; }
.prive .boitelogin input.entrer { width:230px; height:42px; border:0; border-radius:6px; background:var(--brique); font-size:16px; }
.prive .boitelogin input.entrer:hover { background:#A8382B; }
.prive .lienoubli { margin-top:10px; padding-top:10px; font-size:14px; line-height:18px; border-top-color:var(--beige2); }
@media (max-width:500px) {
  .prive .boitelogin { display:block; padding:18px 16px 12px; text-align:left; }
  .prive .boitelogin table.tablogin, .prive .boitelogin table.tablogin tbody, .prive .boitelogin table.tablogin tr, .prive .boitelogin table.tablogin td { display:block; width:100%; }
  .prive .boitelogin table.tablogin td.et { padding:0 0 4px; text-align:left; }
  .prive .boitelogin input[type=text], .prive .boitelogin input[type=password], .prive .boitelogin input.entrer { width:100% !important; }
  .prive .lienoubli { text-align:right; }
}

/* annuaire connecté : tableaux à la largeur de leur contenu (et non plus de toute la page) */
.prive #tabannuaire, .prive #tabannuaire table, .prive table.tabvisites, .prive .tabstat, .prive .tabstat table { width:auto !important; max-width:100%; }
.prive .tabstat tr:not(.titretableau) td:first-child { width:auto; }
.prive #tabannuaire td, .prive table.tabvisites td { padding-left:8px; padding-right:8px; }

/* annuaire : fiche en carte (includeafficherfiche.php) */
.prive #cadrefichechoisie.fiche2 { position:static; width:auto; max-width:900px; height:auto; margin:26px 0 10px; padding:0; border:1px solid var(--beige2); border-radius:12px; background:#fff; background-image:none; overflow:hidden; font:15px/1.5 SourceSans, "Segoe UI", Verdana, sans-serif; color:var(--gris); text-align:left; }
.fiche2 .ftete { display:flex; gap:22px; align-items:center; padding:20px 24px; background:var(--beige); }
.fiche2 #cadrephoto { position:static; flex:0 0 auto; width:auto; text-align:center; }
.fiche2 #cadrephoto img { display:block; max-width:120px; max-height:150px; width:auto; height:auto; border-radius:8px; }
.fiche2 #cadrephoto img.zoomable { cursor:zoom-in; }	/* photo agrandie au clic (entete.js) */
.photogrande { position:fixed; top:0; right:0; bottom:0; left:0; z-index:2000; display:flex; align-items:center; justify-content:center; background:rgba(30,26,22,.82); cursor:zoom-out; }
.photogrande img { display:block; width:auto; height:auto; border-radius:8px; box-shadow:0 10px 40px rgba(0,0,0,.5); }
.fiche2 #cadrephoto .photomasquee { padding:24px 12px; border:1px dashed #A4A4BE; border-radius:8px; background:#F4F4F8; color:#6E6E86; font-size:12px; text-align:center; }
.fiche2 #cadrephoto .photomasquee span { font-size:11px; }
.fiche2 h4 { height:auto !important; min-height:0 !important; margin:0 0 6px !important; padding:0 !important; border:0 !important; font:700 26px/1.2 SourceSerif, Georgia, serif !important; color:var(--gris) !important; text-transform:none !important; letter-spacing:0 !important; }
.fiche2 h4::before { display:none !important; }	/* hauteur fixe de l'ancien titre (.boite h4 : 49 px) supprimée : un nom long sur 2 ou 3 lignes ne chevauche plus l'année */
.fiche2 h2, .fiche2 h3, .fiche2 h4 { background-image:none !important; }	/* l'ancien fond de titre de l'annuaire (cadresup.gif) faisait une bande grise derrière le nom */
.fiche2 .promos { display:flex; flex-wrap:wrap; gap:6px; }
.fiche2 .promos span { padding:2px 10px; border-radius:12px; background:#fff; font-size:14px; }
.fiche2 .promos .ecole { background:#E3EAF3; color:#2F5385; font-weight:700; }
.fiche2 .surnom { margin-top:6px; font-size:14px; color:var(--doux); }
.fiche2 .fcorps { display:grid; grid-template-columns:270px minmax(0,1fr); }
.fiche2 .fcorps.sansgauche, .fiche2 .fcorps.sansdroite { grid-template-columns:1fr; }
.fiche2 .fcol1 { padding:18px 22px; border-right:1px solid var(--beige2); background:#FCFAF7; font-size:14.5px; overflow-wrap:anywhere; }
.fiche2 .fcorps.sansdroite .fcol1 { border-right:0; }
.fiche2 .fcol2 { padding:18px 26px; }
.fiche2 h5 { margin:0 0 6px; font:700 13px/1.3 SourceSans, sans-serif; letter-spacing:.8px; text-transform:uppercase; color:#94600F; }
.fiche2 section + section { margin-top:18px; }
.fiche2 dl { margin:0; }
.fiche2 dt { font-size:13px; color:var(--doux); }
.fiche2 dd { margin:0 0 6px; font-weight:600; }
.fiche2 .fcol2 b { display:block; margin:10px 0 2px; font-size:14px; font-weight:600; color:var(--doux); }
.fiche2 .fcol2 h5 + b { margin-top:0; }
.fiche2 .affichetextarea { display:block; margin:0; padding:0; font:inherit; color:inherit; white-space:normal; }
.fiche2 .remarque { margin:6px 0 0; font-size:13px; color:var(--doux); }
.fiche2 .fpied { padding:8px 24px; border-top:1px solid var(--beige2); font-size:12.5px; color:var(--doux); text-align:right; }
@media (max-width:700px) { .fiche2 .fcorps { grid-template-columns:1fr; } .fiche2 .fcol1 { border-right:0; border-bottom:1px solid var(--beige2); } .fiche2 .ftete { padding:16px; gap:14px; } .fiche2 h4 { font-size:21px !important; } }
/* cadre défilant des listes de l'annuaire : à la largeur du tableau (barre de défilement le long du tableau) */
.prive #tabannuaire, .prive .tabstat { width:fit-content !important; max-width:100%; }

/* notes (ordinateur) : boutons des matières plus modernes — coins de 6 px, fond clair, matière choisie en gris foncé (barre de menu) */
.prive input.boutonon, .prive input.boutonoff, .prive input.boutonoffsommeil, .prive input.boutonon1, .prive input.boutonoff1 {
  border-radius:6px !important; border:1px solid #D9CFC2; background:#F5F0E9; color:var(--gris);
  font-family:SourceSans, "Segoe UI", sans-serif; font-size:13px; font-weight:600;
  box-shadow:0 1px 2px rgba(60,40,20,.08); transition:background-color .12s, border-color .12s, color .12s;
}
.prive input.boutonon, .prive input.boutonoff, .prive input.boutonoffsommeil { height:26px; line-height:24px; }
.prive .boutonvide { height:26px; }
.prive input.boutonoff:hover, .prive input.boutonoff1:hover { background:#ECE5DC; border-color:#B9AC9C; color:#2E2A27; }
.prive input.boutonon, .prive input.boutonon1 { background:#4A4541; border-color:#4A4541; color:#FFFFFF; box-shadow:none; }
.prive input.boutonoffsommeil { background:#F5F2EE; border-color:#E6DED4; color:#A39A90; box-shadow:none; }
.prive input.boutonon1, .prive input.boutonoff1 { height:22px; padding:0 10px; font-size:12px; }
.prive table.grillemat tr.autreclasse input.boutonoff { background:#FFFFFF; font-weight:400; }	/* autre classe : plus discrète */
.prive table.grillemat td.sep ~ td input.boutonoff { background:#FFFFFF; }

/* annuaire (écran large) : liste à gauche, fiche choisie à droite (Les promotions, Liste complète) */
@media (min-width:1100px) {
  .prive #principal:has(> #tabannuaire ~ #cadrefichechoisie) { display:grid; grid-template-columns:auto minmax(0,1fr); column-gap:28px; align-items:start; }
  .prive #principal:has(> #tabannuaire ~ #cadrefichechoisie) > * { grid-column:1 / -1; }
  .prive #principal:has(> #tabannuaire ~ #cadrefichechoisie) > #tabannuaire { grid-column:1; grid-row:span 3; max-height:calc(100vh - 140px); position:sticky; top:70px; }
  .prive #principal:has(> #tabannuaire ~ #cadrefichechoisie) > #btab { display:none; }
  .prive #principal:has(> #tabannuaire ~ #cadrefichechoisie) > #cadrefichechoisie { grid-column:2; margin-top:0; max-width:none; }
  .prive #principal:has(> #tabannuaire ~ #cadrefichechoisie) .fiche2 .fcorps { grid-template-columns:1fr; }
  .prive #principal:has(> #tabannuaire ~ #cadrefichechoisie) .fiche2 .fcol1 { border-right:0; border-bottom:1px solid var(--beige2); }
  .prive #principal:has(> #tabannuaire ~ #cadrefichechoisie) > #hautpage { grid-column:1 / -1; }
}
/* notes : boutons des matières un peu plus grands (en accord avec le tableau agrandi) */
.prive input.boutonon, .prive input.boutonoff, .prive input.boutonoffsommeil { font-size:14.5px; height:30px !important; line-height:28px; }
.prive .boutonvide { height:30px; }
.prive .tetenotes table.grillemat input.boutonon, .prive .tetenotes table.grillemat input.boutonoff { font-size:14.5px; height:30px; }
/* bulles de la partie privée (bull.js : écoles des Sup/Spé, lycées…) : affichées par bull.js, que refonte.css ne doit pas masquer */
.pp { display:block; }

/* annuaire : « Modifier ma fiche » et « Login et mot de passe » à la nouvelle largeur — cartes plus larges,
   champs sur toute la largeur de la carte, texte plus grand */
.prive .zonelegend { margin:30px 0 8px; padding:0; font:700 13px/1.3 SourceSans, "Segoe UI", sans-serif; font-variant:normal; text-transform:uppercase; letter-spacing:.8px; color:#94600F; }
.prive .zoneformulaire { box-sizing:border-box; width:auto; max-width:860px; padding:18px 22px 12px; border-radius:10px; font:14px/1.4 SourceSans, "Segoe UI", sans-serif; }
.prive .zoneformulaire .lablabel { font:14px/1.4 SourceSans, "Segoe UI", sans-serif; color:var(--doux); }
.prive .zoneformulaire input.zonetext { box-sizing:border-box; width:100%; max-width:560px; height:36px; padding:6px 10px; margin:2px 0 10px; border-radius:6px; font:15px SourceSans, "Segoe UI", sans-serif; }
.prive .zoneformulaire textarea.zonetextarea { box-sizing:border-box; width:100% !important; min-height:90px; padding:8px 10px; margin:2px 0 10px; border-radius:6px; font:15px/1.45 SourceSans, "Segoe UI", sans-serif; }
.prive .zoneformulaire select { font-size:14px; }
.prive .barreenreg { box-sizing:border-box; width:auto; max-width:860px; }
.prive #principal p.zonelegend { margin:30px 0 8px; }
.prive div[style*="#FDECEA"] { box-sizing:border-box; max-width:860px; border-radius:8px; }	/* avertissement du mot de passe */
/* annuaire sur téléphone (page de 800 px) : listes « Les promotions » et « Liste complète » sur toute la largeur, texte plus grand */
@media (max-width:860px) {
  .prive #tabannuaire { width:100% !important; max-height:70vh; }
  .prive #tabannuaire table { width:100% !important; }
  .prive #tabannuaire tr:first-child *, .prive #tabannuaire .titretableau * { font-size:14px !important; }
  .prive #tabannuaire td, .prive #tabannuaire th { font-size:16px !important; line-height:1.35 !important; padding-top:6px !important; padding-bottom:6px !important; }
}
/* Ressources : lien discret vers les mises à jour du site */
.prive p.lienmaj { margin:30px 0 0; text-align:right; font-size:13px; }
.prive p.lienmaj a { color:var(--doux); }
/* annuaire, page de connexion : aperçu d'une fiche masqué sur téléphone (il dépassait de l'écran) */
@media (max-width:600px) { .prive img[src$="images/fiche.jpg"] { display:none; } .prive p:has(> img[src$="images/fiche.jpg"]) { display:none; } }

/* listes de choix de la partie privée (annuaire : promotions, tri, période) : même style que les menus des promotions
   des pages publiques (choixpromo.php), bouton « Voir » / « Trier » en contour brique */
.prive #principal select.menusupspe, .prive #principal select.menuperiode { -webkit-appearance:none; appearance:none; width:auto; min-width:0; height:30px; padding:0 26px 0 10px; border:1px solid var(--beige2); border-radius:6px; font-family:SourceSans, Verdana, sans-serif; font-size:15px; color:var(--texte);
  background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%238E2A1F' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 9px center; vertical-align:middle; cursor:pointer; }
.prive #principal select.menusupspe:hover, .prive #principal select.menuperiode:hover, .prive #principal select.menusupspe:focus, .prive #principal select.menuperiode:focus { border-color:var(--brique); outline:none; }
.prive #principal input.boutonsupspe { -webkit-appearance:none; appearance:none; width:auto; height:30px; line-height:28px; margin:0 0 0 4px; padding:0 14px; border:1px solid var(--brique); border-radius:6px; background:#fff; color:var(--brique); font-family:SourceSans, Verdana, sans-serif; font-size:15px; font-weight:600; vertical-align:middle; cursor:pointer; box-shadow:none; }
.prive #principal input.boutonsupspe:hover { background:var(--brique); color:#fff; }
.prive #principal .conteneurchoix label { font-family:SourceSans, Verdana, sans-serif; font-size:15px; color:var(--gris); }
/* champs de connexion : bord beige (comme les menus), brique quand on y tape */
.prive .boitelogin input[type=text], .prive .boitelogin input[type=password] { border:1px solid var(--beige2) !important; box-shadow:none; }
.prive .boitelogin input[type=text]:focus, .prive .boitelogin input[type=password]:focus { border-color:var(--brique) !important; outline:none; }
.prive #principal #divsup, .prive #principal #divspe { width:auto; }
.prive #principal .conteneurchoix form { display:flex; flex-wrap:wrap; align-items:center; gap:6px 8px; }
.prive #principal .conteneurchoix form input.boutonsupspe { margin:0; }
.prive #principal .conteneurchoix { width:auto; max-width:100%; }
.prive #principal #divspe { float:left; margin:0 0 15px 40px; }
.prive #principal .choixpromo, .prive #principal .choixpromo label { font-family:SourceSans, Verdana, sans-serif; font-size:15px; color:var(--texte); }

/* annuaire : titres de colonnes cliquables pour trier (entete.js) */
#tabannuaire tr.titretableau td.triable { cursor:pointer; user-select:none; white-space:nowrap; }
#tabannuaire tr.titretableau td.triable:hover { text-decoration:underline; }
#tabannuaire tr.titretableau td.triable::after { content:""; }
#tabannuaire tr.titretableau td.tri-monte::after { content:" \25B2"; opacity:1; }
#tabannuaire tr.titretableau td.tri-descend::after { content:" \25BC"; opacity:1; }
@media (pointer:coarse) { .prive #tabannuaire tr.titretableau td.triable { padding-top:14px !important; padding-bottom:14px !important; } }	/* doigt : titres plus hauts, plus faciles à toucher */
svg.sansphoto { display:inline-block; vertical-align:-1px; margin-left:3px; color:#A39D96; }	/* fiche sans photo : appareil photo barré (entete.js) */
.prive p.legendesansphoto { margin:4px 0 0; font-size:12px; color:#8A847D; text-align:left; }
/* colonnes Rich. et Màj : étroites (ensemble, pas plus larges que l'ancienne colonne Richesse) */
#tabannuaire tr > td:nth-last-child(-n+2) { white-space:nowrap; padding-left:3px !important; padding-right:3px !important; }
#tabannuaire td.maj { color:#6F6760; }
#tabannuaire img[src*="iconephoto"] { display:none; }	/* ancienne icône photo : masquée dès l'affichage (entete.js la retire ensuite), plus d'apparition fugitive */
