/* FICHIER : /www/design/documents.css */
/* Version : 2026-02-19 */
/* Rôle : Styles de documents.php (reprend le design sobre original, compatible CSP) */

body{margin:0;font-family:system-ui,Segoe UI,Roboto,Arial,sans-serif;background:#f8f8f8;color:#111;}

/* HEADER (conservé) */
header{background:#0d0d0d;color:#fff;}
.headerbar{
  max-width:1100px;margin:0 auto;
  display:flex;align-items:center;gap:16px;
  padding:16px;
}
.avatar{
  width:64px;height:64px;border-radius:50%;
  overflow:hidden;flex:0 0 64px;
  border:2px solid #fff;box-shadow:0 2px 8px rgba(0,0,0,.35);
}
.avatar img{width:100%;height:100%;object-fit:cover;display:block}
.titleline{display:flex;flex-wrap:wrap;align-items:baseline;gap:10px}
.titleline h1{margin:0;font-size:1.6rem;font-weight:700}
.titleline small{opacity:.9}

.headerbar-right{margin-left:auto;display:flex;align-items:center;gap:14px}
.logo-pec{
  width:46px;height:46px;border-radius:8px;overflow:hidden;
  background:#111;display:flex;align-items:center;justify-content:center;
  box-shadow:0 2px 10px rgba(0,0,0,.25);
}
.logo-pec img{width:100%;height:100%;object-fit:contain;display:block}

.banner{
  max-width:1100px;margin:0 auto;
  background:#fff;color:#111;border-radius:10px;
  display:flex;flex-wrap:wrap;gap:10px;
  align-items:center;justify-content:space-between;
  padding:10px 14px;
  box-shadow:0 6px 16px rgba(0,0,0,.12);
  transform:translateY(10px);
}
.banner strong{letter-spacing:.3px}
.contact{opacity:.9}
.contact a{color:#1565c0;text-decoration:none;font-weight:700}
.contact a:hover{text-decoration:underline}

@media (max-width:720px){
  .headerbar{flex-wrap:wrap}
  .headerbar-right{margin-left:0;width:100%;justify-content:flex-end}
  .banner{justify-content:center}
  .contact{margin-left:0;width:100%;text-align:left}
}

/* CONTENU */
main{max-width:1100px;margin:0 auto;padding:28px 16px 32px;}
.panel{
  background:#fff;border:1px solid #ddd;border-radius:14px;
  padding:18px 18px 22px;
  box-shadow:0 8px 20px rgba(0,0,0,.08);
}
.panel h2{margin:0 0 6px 0;font-size:1.2rem;text-align:left;}
.note{margin:0 0 16px 0;color:#444;text-align:left;}

.error{
  background:#fff3f3;
  border:1px solid #ffbcbc;
  color:#7a0000;
  padding:10px 12px;
  border-radius:10px;
  margin:0 0 12px 0;
  font-weight:700;
}

/* MENU "ligne" (anti-gadget) */
.menu{margin:0;padding:0;list-style:none;}
.menu li{margin:10px 0 0 0;}

.line{
  display:block;
  text-decoration:none;
  color:#111;
  font-weight:900;
  padding:2px 0 2px 14px;
  position:relative;
}
/* petite barre verticale à gauche (sobre) */
.line::before{
  content:"";
  position:absolute;
  left:0; top:4px;
  width:3px; height:1.25em;
  background:#111;
  border-radius:2px;
  opacity:.8;
}
/* état actif : surlignage léger (pas de "bouton") */
.line.active{
  background:linear-gradient(to right, rgba(0,0,0,.06), rgba(0,0,0,0));
  border-radius:6px;
}
.line:hover{
  text-decoration:underline;
}

/* Bloc déplié */
.filesbox{
  margin:8px 0 0 14px;
  padding:8px 12px 10px 12px;
  border-left:2px solid rgba(0,0,0,.15);
}

.filelist{list-style:none;margin:0;padding:0;}
.filelist li{margin:6px 0;}
.filelist a{color:#111;text-decoration:none;font-weight:700;}
.filelist a:hover{text-decoration:underline;}
.meta{color:#444;font-weight:500;font-size:.93rem;margin-left:8px;}
.hint{margin:10px 0 0 0;color:#555;font-size:.92rem;font-style:italic;}

/* Pièces complémentaires + autres */
.divider{height:1px;background:#ddd;margin:16px 0;}
.extrasTitle{margin:0;font-weight:900;}
.empty{color:#666;font-style:italic;margin:6px 0 0 14px;}

.back{
  display:inline-block;
  margin-top:18px;
  font-weight:900;
  text-decoration:none;
  color:#111;
}
.back:hover{text-decoration:underline;}

/* FOOTER (conservé) */
footer{background:#111;color:#fff;}
footer .wrap{max-width:1100px;margin:0 auto;padding:18px 16px;display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between}
footer small{opacity:.85}

/* === FIN DU FICHIER : /www/design/documents.css === */
