/* ========== COULEURS DE BASE NEOSIT ========== */
:root {
  --neosit-blue-dark: #00037e;
  --neosit-gradient: linear-gradient(to right, rgba(0,3,126,1), rgba(0,236,245,1) 100%);
}

/* ========== RESET & BASE ========== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html, body {
  width: 100%;
  font-family: "Segoe UI", Roboto, sans-serif;
  background: #f4f8fb;
  color: #2c3e50;
  line-height: 1.6;
}

/* ========== STRUCTURE GLOBALE ========== */
#center.column.center {
  display: flex;
  justify-content: center;
  padding: 2rem 1rem;
}
#center .inner {
  width: 100%;
  max-width: 1200px;
}
#content .inner.clearfix {
  padding: 2rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

/* ========== TITRES / HEADERS ========== */
#phoca-dl-category-box .ph-subheader {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--neosit-blue-dark);
  margin-bottom: 2rem;
  border-bottom: 3px solid rgba(0,236,245,1);
  padding-bottom: 0.5rem;
}

/* ========== BOUTON RETOUR ========== */
.ph-top a.btn-primary {
  display: inline-block;
  background: var(--neosit-gradient);
  color: #fff;
  font-weight: bold;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  margin-bottom: 1.5rem;
}
.ph-top a.btn-primary:hover {
  opacity: 0.9;
}

/* ========== GRILLE ========== */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -0.75rem;
}
.col-sm-6, .col-md-6 {
  width: 100%;
  max-width: 50%;
  padding: 0 0.75rem;
  margin-bottom: 1.5rem;
}

/* ========== FICHE DOCUMENT ========== */
.pd-filenamebox-bt {
  background: #f9fbfc;
  border: 1px solid #e1e8ed;
  border-radius: 10px;
  padding: 1.2rem 1.5rem;
  transition: box-shadow 0.2s ease;
}
.pd-filenamebox-bt:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}
.pd-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--neosit-blue-dark);
  margin-bottom: 0.5rem;
}
.pd-filename a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(0,3,126,1);
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.2s ease-in-out;
}
.pd-filename a:hover {
  color: rgba(0,3,126,0.8);
  text-decoration: underline;
  transform: translateX(4px);
}
.pd-document16 {
  padding-left: 28px;
  background-size: 20px;
  background-repeat: no-repeat;
  background-position: 0 center;
}
.pd-float {
  display: inline-block;
}

/* ========== BOUTONS ========== */
.pd-button-box-bt {
  margin-bottom: 0.5rem;
}
.pd-button-box-bt a.btn-success,
.pd-button-box-bt a.btn-info {
  display: inline-block;
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 102, 255, 0.2);
}
.pd-button-box-bt a.btn-success {
  background: var(--neosit-gradient);
  color: #fff;
}
.pd-button-box-bt a.btn-success:hover {
  opacity: 0.9;
}
.pd-button-box-bt a.btn-info {
  background: var(--neosit-gradient);
  color: #fff;
}
.pd-button-box-bt a.btn-info:hover {
  opacity: 0.5;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .col-sm-6, .col-md-6 {
    max-width: 100%;
    padding: 0;
  }
  #center .inner {
    padding: 0 1rem;
  }
  #content .inner.clearfix {
    padding: 1.5rem;
  }
}

/* ========== PAGINATION + SELECTS ========== */
.pagination {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
select.form-select {
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  border: 1px solid #ccc;
}

/* ========== MODALES ========== */
.modal-content {
  border-radius: 10px;
}
.modal-header {
  background: #f1f1f1;
  border-bottom: 1px solid #ddd;
}
.modal-footer {
  background: #f9f9f9;
  border-top: 1px solid #ddd;
}
.pd-tooltip-box {
  background-color: rgba(30, 30, 30, 0.95); 
  border: none;
  border-radius: 12px;
  padding: 1rem;
  color: white;
  max-width: 320px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease-in-out;
}

.pd-tooltip-box {
  transition: all 0.2s ease-in-out;
}

/* Style du titre dans les tooltips (popup "Details") */
.tooltip .pd-tooltip-box .pd-title {
  color: rgba(30, 30, 30, 0.95) !important;
  font-weight: bold;
}

.tooltip .pd-tooltip-box .pd-title {
  color: rgba(0,236,245,1) !important;
  font-weight: bold;
  transition: color 0.3s ease;
}

