/* ===================================================== */
/*  Cartes d'accueil - Bibliotheque IMTG  (v2)           */
/* ===================================================== */
.imtg-cards{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:22px;
  margin:10px 0 46px;
}
@media (max-width:800px){
  .imtg-cards{ grid-template-columns:1fr; }
}
.imtg-card{
  display:block;
  background:#ffffff;
  border:1px solid #E1E6F2;
  border-top:4px solid #2B3A78;
  border-radius:14px;
  padding:26px 24px 22px;
  text-decoration:none;


  box-shadow:0 1px 2px rgba(30,42,84,.05), 0 10px 24px rgba(30,42,84,.06);
  transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.imtg-card:hover{
  transform:translateY(-4px);
  box-shadow:0 6px 14px rgba(30,42,84,.10), 0 18px 40px rgba(30,42,84,.12);
  border-top-color:#1E2A54;
}
.imtg-card::before{
  content:"";
  display:block;
  width:48px; height:48px;
  margin-bottom:16px;
  border-radius:12px;
  background:#EEF2FB no-repeat center / 26px 26px;
}
.imtg-card--filiere::before{ background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232B3A78' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 21V7l8-4 8 4v14'/%3E%3Cpath d='M4 21h16'/%3E%3Cpath d='M9 21v-6h6v6'/%3E%3C/svg%3E"); }
.imtg-card--depot::before{   background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232B3A78' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 17v2a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1v-2'/%3E%3Cpath d='M12 3v12'/%3E%3Cpath d='m8 7 4-4 4 4'/%3E%3C/svg%3E"); }
.imtg-card--nouveau::before{ background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232B3A78' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }
.imtg-card .imtg-card-t{
  display:block;
  font-size:19px;
  font-weight:600;
  line-height:1.25;
  color:#1E2A54;
  margin-bottom:8px;
}
.imtg-card .imtg-card-d{
  display:block;
  font-size:15px;
  line-height:1.5;
  color:#5C6479;
  margin-bottom:16px;
}
.imtg-card .imtg-card-go{
  display:inline-block;
  font-size:14px;
  font-weight:600;
  color:#2B3A78;
  border-bottom:2px solid transparent;
}
.imtg-card:hover .imtg-card-go{
  border-bottom-color:#2B3A78;
}
 

/* Masquer le titre "Accueil" uniquement sur la page d'accueil */
.site-page-accueil .block-pageTitle {
  display: none;
}


/* ===================================================== */
/*  Page "La bibliotheque" : presentation + sidebar     */
/* ===================================================== */
.imtg-biblio{
  display:grid;
  grid-template-columns:1fr 320px;
  gap:40px;
  align-items:start;
  margin:8px 0 40px;
}
@media (max-width:820px){ .imtg-biblio{ grid-template-columns:1fr; } }
.imtg-biblio-main h2{ color:#1E2A54; font-size:24px; margin:0 0 14px; line-height:1.25; }
.imtg-biblio-main p{ color:#3A4358; font-size:16px; line-height:1.7; margin:0 0 16px; }
.imtg-biblio-side{
  background:#F4F6FB;
  border:1px solid #E1E6F2;
  border-top:4px solid #2B3A78;
  border-radius:14px;
  padding:22px 22px 6px;
}
.imtg-biblio-side .imtg-side-h{
  display:block;
  font-size:15px;
  font-weight:700;
  color:#1E2A54;
  margin:0 0 9px;
}
.imtg-biblio-side .imtg-side-list{ margin:0 0 20px; }
.imtg-biblio-side .imtg-side-list p{ margin:0 0 7px; font-size:15px; color:#3A4358; line-height:1.45; }
.imtg-biblio-side a{ color:#2B3A78; text-decoration:none; font-weight:500; }
.imtg-biblio-side a:hover{ text-decoration:underline; }


/* ---- Réparation du formulaire de dépôt (thème Freedom) ---- */
.contribute .main-form,
fieldset.contribute-resource {
  display: block;         /* annule le flex horizontal */
}
.contribute .property {
  display: block;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid #E1E6F2;
}
.contribute .property > h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #1E2A54;
  margin: 0 0 8px;
}
.contribute .property .values,
.contribute .property .inputs {
  display: block;
}
.contribute .property input[type="text"],
.contribute .property textarea {
  width: 100%;
}
 
/* Espacer les boutons "Ajouter une valeur / URI" */
.contribute .property .inputs {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: flex-start;
}
.contribute .property .inputs .value {
  width: 100%;
}
/* Boutons "Ajouter une valeur / URI" : chacun sur sa ligne */
.contribute .property .inputs a,
.contribute .property .inputs button,
.contribute .property .add-value,
.contribute .property .add-uri {
  display: inline-block;
  margin: 0 20px 10px 0;
  vertical-align: top;
  max-width: 45%;
}

/* Bouton "Déposer maintenant" */
.imtg-btn-depot {
  display: inline-block;
  background: #2B3A78;
  color: #fff !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  padding: 13px 26px;
  border-radius: 10px;
  border-top: 3px solid #A87B1E;
  margin-top: 10px;
}
.imtg-btn-depot:hover {
  background: #22305f;
}

/* Masquer les boutons avancés dans le dépôt étudiant */
.contribute .property .inputs {
  display: none;
}