/* =========================================================
   GPU : règles propres aux documents d'urbanisme
   La structure commune et les Actualités sont dans site2.css
   ========================================================= */
:root {
  --gpu-bleu: #233c6e;
  --gpu-bleu-moyen: #405a86;
  --gpu-bleu-clair: #eef3fa;
  --gpu-vert: #4f772d;
  --gpu-vert-clair: #edf5e5;
  --gpu-jaune: #f4c542;
  --gpu-texte: #263238;
  --gpu-texte-clair: #64748b;
  --gpu-bordure: #dce3ec;
  --gpu-blanc: #fff;
}

#visuel { background: var(--gpu-blanc) !important; color: var(--gpu-texte) !important; }
#visuel > .w3-border:first-of-type { border-radius: 12px; background: linear-gradient(135deg,#fff,var(--gpu-bleu-clair)); }
#visuel > .w3-border:first-of-type p { margin: 0; line-height: 1.65; }
#visuel > .w3-border:first-of-type a { color: var(--gpu-bleu); font-weight: bold; text-decoration: none; }
#visuel > .w3-border:first-of-type a:hover { text-decoration: underline; }

#visuel3 {
  display: flex !important; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 10px;
  border-radius: 13px; background: var(--gpu-bleu-clair) !important;
  box-shadow: inset 0 0 0 1px var(--gpu-bordure);
}
#visuel3 .tablink {
  float: none !important; flex: 1 1 230px; min-height: 49px;
  border: 1px solid transparent !important; border-radius: 9px;
  background: var(--gpu-blanc) !important; color: var(--gpu-bleu) !important;
  font-weight: bold; line-height: 1.3; box-shadow: 0 3px 10px rgba(41,62,99,.07);
  transition: transform .2s ease, background-color .2s ease, color .2s ease;
}
#visuel3 .tablink:hover, #visuel3 .tablink.w3-yellow { background: var(--gpu-jaune) !important; color: #17213a !important; transform: translateY(-2px); }

.city {
  width: 100% !important; max-width: none !important; overflow: visible;
  padding: 18px !important; border: 1px solid var(--gpu-bordure) !important;
  border-radius: 14px; background: var(--gpu-blanc);
}
.city > .two.row {
  display: grid !important; grid-template-columns: minmax(280px,.9fr) minmax(0,1.5fr) !important;
  align-items: start; gap: 20px; width: 100% !important;
}
.city > .two.row > .col { float: none !important; width: auto !important; min-width: 0 !important; max-width: none !important; padding: 0 !important; }
.city > .two.row > .col:first-child {
  display: grid; grid-template-columns: repeat(auto-fit,minmax(190px,1fr)); align-content: start;
  gap: 12px; text-align: center !important;
}
.city > .two.row > .col:first-child > br { display: none; }
.city .tablink2 {
  float: none !important; width: 100%; min-width: 0; padding: 0 !important; overflow: hidden;
  border: 1px solid var(--gpu-bordure) !important; border-radius: 12px;
  background: var(--gpu-blanc) !important; color: var(--gpu-bleu) !important;
  box-shadow: 0 4px 13px rgba(41,62,99,.08);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.city .tablink2:hover, .city .tablink2.w3-yellow {
  border-color: #aac45d !important; background: var(--gpu-vert-clair) !important;
  transform: translateY(-3px); box-shadow: 0 9px 18px rgba(41,62,99,.14);
}
.city .tablink2 p {
  display: flex !important; width: 100% !important; min-height: 135px !important; height: auto !important;
  align-items: flex-end; justify-content: center; margin: 0 !important; padding: 76px 12px 14px !important;
  background-position: center 18px !important; background-repeat: no-repeat !important; background-size: 55px auto !important;
}
.city .tablink2 p span {
  display: block; width: 100%; padding: 8px; border-radius: 7px;
  background: rgba(35,60,110,.94); color: #fff; font-size: 13px; font-weight: bold; line-height: 1.35;
}

.DU {
  overflow: hidden; padding: 20px !important; border: 1px solid var(--gpu-bordure) !important;
  border-radius: 13px; background: #fff; box-shadow: 0 5px 15px rgba(41,62,99,.08);
}
.DU > b:first-child {
  display: block; margin: -20px -20px 16px; padding: 17px 20px;
  background: linear-gradient(135deg,var(--gpu-bleu),var(--gpu-bleu-moyen)); color: #fff; font-size: 20px;
}
.DU ol, .DU ul { margin: 10px 0; padding-left: 25px; }
.DU li { margin: 6px 0; line-height: 1.4; overflow-wrap: anywhere; }
.DU li::marker { color: var(--gpu-bleu-moyen); font-weight: bold; }
.DU li a { color: var(--gpu-bleu); text-decoration: none; border-bottom: 1px dotted #aebbd0; }
.DU li a:hover { color: var(--gpu-vert); border-bottom-style: solid; }
.DU > a > p {
  display: flex !important; width: min(100%,280px) !important; height: 130px !important;
  align-items: flex-end; justify-content: center; margin: 12px 0 0 !important; padding: 12px !important;
  border: 1px solid var(--gpu-bordure); border-radius: 12px; background-color: var(--gpu-bleu-clair);
  background-position: center 14px !important; background-repeat: no-repeat !important; background-size: 60px auto !important;
  box-shadow: 0 4px 12px rgba(41,62,99,.08);
}
.DU > a > p span { width: 100%; padding: 7px; border-radius: 7px; background: var(--gpu-bleu); color: #fff; text-align: center; font-size: 13px; font-weight: bold; }

#RNU .two { width: 100% !important; }
#RNU .two_3 {
  display: grid !important; grid-template-columns: repeat(auto-fit,minmax(190px,1fr));
  gap: 12px; width: 100% !important; text-align: center;
}
#RNU .two_3 > a { text-decoration: none; }
#RNU .two_3 > a > p {
  display: flex !important; width: 100% !important; min-height: 140px !important; height: auto !important;
  align-items: flex-end; justify-content: center; margin: 0 !important; padding: 76px 12px 14px !important;
  border: 1px solid var(--gpu-bordure); border-radius: 12px; background-color: #fff;
  background-position: center 18px !important; background-repeat: no-repeat !important; background-size: 55px auto !important;
  box-shadow: 0 4px 13px rgba(41,62,99,.08); transition: transform .2s ease, box-shadow .2s ease;
}
#RNU .two_3 > a > p:hover { transform: translateY(-3px); box-shadow: 0 9px 18px rgba(41,62,99,.14); }
#RNU .two_3 p span { width: 100%; padding: 8px; border-radius: 7px; background: var(--gpu-bleu); color: #fff; text-align: center; font-weight: bold; }

#ff {
  width: 100% !important; margin-top: 22px; padding: 20px !important;
  border: 1px solid var(--gpu-bordure) !important; border-radius: 14px; background: #fff;
}
#ff h3 { margin-top: 0; color: var(--gpu-bleu); }
#ff .gloss {
  display: grid !important; grid-template-columns: minmax(90px,140px) 1fr; align-items: center; gap: 10px;
  margin: 7px 0; padding: 10px 12px; border: 1px solid var(--gpu-bordure); border-radius: 9px; background: #f8fafc;
}
#ff .gloss b { color: var(--gpu-bleu); }
#ff .gloss img { display: none; }


@media screen and (max-width: 785px) {
  #visuel3 { display: grid !important; grid-template-columns: 1fr; }
  #visuel3 .tablink { width: 100%; }
  .city { padding: 12px !important; }
  .city > .two.row { display: block !important; }
  .city > .two.row > .col:first-child { grid-template-columns: repeat(2,minmax(0,1fr)); margin-bottom: 18px; }
  .DU { padding: 15px !important; }
  .DU > b:first-child { margin: -15px -15px 14px; }
}
@media screen and (max-width: 520px) {
  .city > .two.row > .col:first-child, #RNU .two_3 { grid-template-columns: 1fr; }
  #ff .gloss { grid-template-columns: 1fr; }
}
/* Recherche globale des documents d'urbanisme */
.gpu-recherche { display:flex; align-items:center; gap:10px; margin:0 0 18px; }
.gpu-recherche-champ { position:relative; flex:1 1 auto; }
.gpu-recherche-champ > i { position:absolute; top:50%; left:16px; color:#405a86; transform:translateY(-50%); pointer-events:none; }
.gpu-recherche input { width:100%; min-height:48px; padding:10px 45px 10px 46px; border:1px solid #dce3ec; border-radius:12px; outline:none; font:inherit; }
.gpu-recherche input:focus { border-color:#405a86; box-shadow:0 0 0 4px rgba(64,90,134,.14); }
.gpu-recherche-effacer { position:absolute; top:50%; right:8px; width:34px; height:34px; border:0; border-radius:8px; background:transparent; color:#64748b; cursor:pointer; transform:translateY(-50%); }
.gpu-recherche-effacer:hover { background:#eef3fa; color:#293e63; }
.gpu-recherche-compteur { flex:0 0 auto; min-width:110px; padding:10px 14px; border:1px solid #d9e4ce; border-radius:12px; background:#edf5e5; color:#4f772d; text-align:center; font-weight:bold; }
.gpu-resultats { margin-bottom:20px; }
.gpu-resultat-commune { margin-bottom:16px; overflow:hidden; border:1px solid #dce3ec; border-radius:13px; background:#fff; box-shadow:0 5px 16px rgba(41,62,99,.09); }
.gpu-resultat-entete { position:relative; padding:14px 120px 12px 16px; background:linear-gradient(135deg,#eef3fa,#fff); }
.gpu-resultat-entete span { color:#4f772d; font-size:11px; font-weight:bold; letter-spacing:.6px; text-transform:uppercase; }
.gpu-resultat-entete h3 { margin:3px 0 0; color:#293e63; font-size:18px; }
.gpu-resultat-entete small { position:absolute; top:50%; right:16px; color:#64748b; transform:translateY(-50%); }
.gpu-resultat-commune ul { display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:0; margin:0; padding:0; list-style:none; }
.gpu-resultat-commune li { min-width:0; border-top:1px solid #edf1f5; }
.gpu-resultat-commune li:nth-child(even) { border-left:1px solid #edf1f5; }
.gpu-resultat-commune a { display:flex; min-height:48px; align-items:center; gap:10px; padding:10px 14px; color:#293e63; text-decoration:none; overflow-wrap:anywhere; }
.gpu-resultat-commune a:hover { background:#edf5e5; color:#4f772d; }
.gpu-resultat-commune a i { flex:0 0 20px; color:#59709e; text-align:center; }
.gpu-aucun-resultat { padding:40px 20px; border:1px dashed #cbd5e1; border-radius:12px; color:#64748b; text-align:center; }
@media screen and (max-width:785px) { .gpu-recherche { display:block; } .gpu-recherche-compteur { display:inline-block; margin-top:10px; } .gpu-resultat-commune ul { grid-template-columns:1fr; } .gpu-resultat-commune li:nth-child(even) { border-left:0; } }
@media screen and (max-width:520px) { .gpu-resultat-entete { padding-right:16px; } .gpu-resultat-entete small { position:static; display:block; margin-top:5px; transform:none; } }



/* Complément V2 : ZIP, résultat unique, groupes compacts et glossaire */
.gpu-document-zip a { font-weight:800; background:#fff8e8; }
.gpu-document-zip a i { color:#a56800; }
.gpu-resultat-unique .gpu-resultat-entete h3 { font-size:22px; font-weight:800; }
.gpu-resultat-unique .gpu-resultat-entete span { font-weight:800; }
.gpu-resultat-compact { overflow:hidden; }
.gpu-resultat-compact summary { display:grid; grid-template-columns:110px minmax(0,1fr) auto 20px; align-items:center; gap:12px; padding:13px 16px; cursor:pointer; list-style:none; background:#fff; }
.gpu-resultat-compact summary::-webkit-details-marker { display:none; }
.gpu-resultat-compact summary:hover { background:#eef3fa; }
.gpu-resultat-compact summary strong { color:#293e63; font-size:16px; }
.gpu-resultat-compact summary small { color:#64748b; white-space:nowrap; }
.gpu-resultat-compact summary > i { color:#59709e; transition:transform .2s ease; }
.gpu-resultat-compact[open] summary > i { transform:rotate(180deg); }
.gpu-resultat-type { color:#4f772d; font-size:11px; font-weight:800; letter-spacing:.6px; text-transform:uppercase; }
.gpu-resultat-glossaire { margin-top:18px; overflow:hidden; border:1px solid #dce3ec; border-radius:13px; background:#fff; box-shadow:0 5px 16px rgba(41,62,99,.09); }
.gpu-resultat-glossaire dl { margin:0; }
.gpu-resultat-glossaire dl > div { display:grid; grid-template-columns:minmax(100px,180px) 1fr; gap:14px; padding:12px 16px; border-top:1px solid #edf1f5; }
.gpu-resultat-glossaire dt { color:#293e63; font-weight:800; }
.gpu-resultat-glossaire dd { margin:0; color:#64748b; }
@media screen and (max-width:620px) { .gpu-resultat-compact summary { grid-template-columns:1fr auto 18px; } .gpu-resultat-type { grid-column:1/-1; } .gpu-resultat-glossaire dl > div { grid-template-columns:1fr; gap:4px; } }


/* Complément V3 : plusieurs communes affichées directement et présentation allégée */
.gpu-resultat-multiple {
  margin-bottom: 7px;
  border-radius: 9px;
  box-shadow: 0 2px 7px rgba(41,62,99,.07);
}
.gpu-resultat-ligne {
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding: 8px 12px 6px;
  border-bottom: 1px solid #edf1f5;
  background: #f8fafc;
}
.gpu-resultat-ligne .gpu-resultat-type {
  flex: 0 0 auto;
}
.gpu-resultat-ligne strong {
  min-width: 0;
  color: #293e63;
  font-size: 14px;
  line-height: 1.25;
}
.gpu-resultat-ligne small {
  flex: 0 0 auto;
  margin-left: auto;
  color: #64748b;
  font-size: 12px;
  white-space: nowrap;
}
.gpu-resultat-multiple ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.gpu-resultat-multiple li {
  flex: 1 1 280px;
  margin: 0;
  border-top: 0;
  border-right: 1px solid #edf1f5;
  border-bottom: 1px solid #edf1f5;
}
.gpu-resultat-multiple li:last-child {
  border-bottom: 0;
}
.gpu-resultat-multiple a {
  min-height: 40px;
  padding: 7px 11px;
  font-size: 13px;
}
.gpu-resultat-multiple .gpu-document-zip a {
  font-weight: 800;
}

/* Les anciennes règles compactes à base de details ne sont plus utilisées */
.gpu-resultat-compact { display: none; }

@media screen and (max-width: 620px) {
  .gpu-resultat-ligne {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3px 8px;
  }
  .gpu-resultat-ligne .gpu-resultat-type {
    grid-column: 1 / -1;
  }
  .gpu-resultat-ligne small {
    margin-left: 0;
  }
  .gpu-resultat-multiple li {
    flex-basis: 100%;
    border-right: 0;
  }
}
/* =========================================================
   RECHERCHE GPU V4 : documents a gauche, commune a droite
   ========================================================= */
.gpu-resultat-multiple {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(245px, 335px);
  align-items: stretch;
  margin-bottom: 5px;
  overflow: hidden;
  border: 1px solid #dce3ec;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(41,62,99,.06);
}

.gpu-resultat-multiple .gpu-resultat-documents {
  min-width: 0;
}

.gpu-resultat-multiple .gpu-resultat-documents > ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gpu-resultat-multiple .gpu-resultat-documents li {
  min-width: 0;
  margin: 0;
  border: 0;
  border-right: 1px solid #e6ebf2;
  border-bottom: 1px solid #e6ebf2;
}

.gpu-resultat-multiple .gpu-resultat-documents li:nth-child(3n) {
  border-right: 0;
}

.gpu-resultat-multiple .gpu-resultat-documents a {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  overflow: hidden;
  color: #405a86;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
}

.gpu-resultat-multiple .gpu-resultat-documents a:hover {
  background: #edf5e5;
  color: #4f772d;
}

.gpu-resultat-multiple .gpu-resultat-documents a i {
  flex: 0 0 17px;
  color: #7890b8;
  text-align: center;
}

.gpu-resultat-multiple .gpu-resultat-documents a span:not(.sr-only) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gpu-resultat-multiple .gpu-document-zip a {
  background: #fff8e8;
  font-weight: 800;
}

.gpu-resultat-multiple .gpu-resultat-ligne {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: 3px 8px;
  min-width: 0;
  padding: 9px 12px;
  border: 0;
  border-left: 1px solid #dce3ec;
  background: #f8fafc;
}

.gpu-resultat-multiple .gpu-resultat-type {
  grid-column: 1;
  grid-row: 1;
  color: #4f772d;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.gpu-resultat-multiple .gpu-resultat-ligne strong {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  overflow: hidden;
  color: #293e63;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gpu-resultat-multiple .gpu-resultat-ligne small {
  grid-column: 1 / -1;
  grid-row: 2;
  justify-self: end;
  margin: 0;
  color: #7a879b;
  font-size: 11px;
  white-space: nowrap;
}

@media screen and (max-width: 1150px) {
  .gpu-resultat-multiple .gpu-resultat-documents > ul {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
  .gpu-resultat-multiple .gpu-resultat-documents li:nth-child(3n) { border-right: 1px solid #e6ebf2; }
  .gpu-resultat-multiple .gpu-resultat-documents li:nth-child(2n) { border-right: 0; }
}

@media screen and (max-width: 785px) {
  .gpu-resultat-multiple {
    grid-template-columns: 1fr;
  }
  .gpu-resultat-multiple .gpu-resultat-ligne {
    grid-row: 1;
    border-left: 0;
    border-bottom: 1px solid #dce3ec;
  }
  .gpu-resultat-multiple .gpu-resultat-documents {
    grid-row: 2;
  }
}

@media screen and (max-width: 520px) {
  .gpu-resultat-multiple .gpu-resultat-documents > ul {
    grid-template-columns: 1fr;
  }
  .gpu-resultat-multiple .gpu-resultat-documents li,
  .gpu-resultat-multiple .gpu-resultat-documents li:nth-child(2n),
  .gpu-resultat-multiple .gpu-resultat-documents li:nth-child(3n) {
    border-right: 0;
  }
}
/* =========================================================
   GPU V5 - Résultats multiples réellement responsives
   À placer TOUT À LA FIN de GPU_modernise.css
   ========================================================= */

/* Chaque commune : documents à gauche, identité à droite */
.gpu-resultat-commune.gpu-resultat-multiple {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) clamp(210px, 24vw, 300px) !important;
  align-items: stretch !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 0 6px !important;
  overflow: hidden !important;
  border: 1px solid #dce3ec !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: 0 2px 6px rgba(41,62,99,.07) !important;
}

/* Zone contenant les PDF */
.gpu-resultat-multiple .gpu-resultat-documents {
  min-width: 0 !important;
  overflow: hidden !important;
}

/* Colonnes souples : le navigateur choisit 1, 2, 3... colonnes */
.gpu-resultat-multiple .gpu-resultat-documents > ul {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)) !important;
  align-content: stretch !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

/* Une cellule par document */
.gpu-resultat-multiple .gpu-resultat-documents li {
  min-width: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-right: 1px solid #e6ebf2 !important;
  border-bottom: 1px solid #e6ebf2 !important;
}

.gpu-resultat-multiple .gpu-resultat-documents a {
  display: flex !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 42px !important;
  align-items: center !important;
  gap: 9px !important;
  padding: 8px 11px !important;
  overflow: hidden !important;
  color: #405a86 !important;
  font-size: 12.5px !important;
  line-height: 1.25 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}

.gpu-resultat-multiple .gpu-resultat-documents a:hover {
  background: #edf5e5 !important;
  color: #4f772d !important;
}

.gpu-resultat-multiple .gpu-resultat-documents a i {
  flex: 0 0 17px !important;
  color: #7890b8 !important;
  text-align: center !important;
}

/* Ellipse seulement sur le nom, pas sur toute la cellule */
.gpu-resultat-multiple .gpu-resultat-documents a span {
  display: block !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

/* ZIP en évidence */
.gpu-resultat-multiple .gpu-document-zip a {
  background: #fff8e8 !important;
  font-weight: 800 !important;
}

.gpu-resultat-multiple .gpu-document-zip a i {
  color: #a56800 !important;
}

/* Bloc commune à droite */
.gpu-resultat-multiple .gpu-resultat-ligne {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
  grid-template-rows: 1fr auto !important;
  align-items: center !important;
  gap: 3px 7px !important;
  min-width: 0 !important;
  padding: 9px 11px !important;
  border: 0 !important;
  border-left: 1px solid #dce3ec !important;
  background: #f8fafc !important;
}

.gpu-resultat-multiple .gpu-resultat-type {
  grid-column: 1 !important;
  grid-row: 1 !important;
  color: #4f772d !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: .5px !important;
  text-transform: uppercase !important;
}

.gpu-resultat-multiple .gpu-resultat-ligne strong {
  grid-column: 2 !important;
  grid-row: 1 !important;
  min-width: 0 !important;
  overflow: hidden !important;
  color: #293e63 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.gpu-resultat-multiple .gpu-resultat-ligne small {
  grid-column: 1 / -1 !important;
  grid-row: 2 !important;
  justify-self: end !important;
  margin: 0 !important;
  color: #7a879b !important;
  font-size: 10.5px !important;
  white-space: nowrap !important;
}

/* Écran moyen : la commune passe au-dessus, documents dessous */
@media screen and (max-width: 1050px) {
  .gpu-resultat-commune.gpu-resultat-multiple {
    grid-template-columns: 1fr !important;
  }

  .gpu-resultat-multiple .gpu-resultat-ligne {
    grid-row: 1 !important;
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    grid-template-rows: auto !important;
    border-left: 0 !important;
    border-bottom: 1px solid #dce3ec !important;
  }

  .gpu-resultat-multiple .gpu-resultat-type {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }

  .gpu-resultat-multiple .gpu-resultat-ligne strong {
    grid-column: 2 !important;
    grid-row: 1 !important;
  }

  .gpu-resultat-multiple .gpu-resultat-ligne small {
    grid-column: 3 !important;
    grid-row: 1 !important;
  }

  .gpu-resultat-multiple .gpu-resultat-documents {
    grid-row: 2 !important;
  }
}

/* Tablette : deux colonnes si possible */
@media screen and (max-width: 785px) {
  .gpu-resultat-multiple .gpu-resultat-documents > ul {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)) !important;
  }
}

/* Téléphone : une seule colonne et en-tête sur deux lignes */
@media screen and (max-width: 520px) {
  .gpu-resultat-multiple .gpu-resultat-ligne {
    grid-template-columns: auto minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
  }

  .gpu-resultat-multiple .gpu-resultat-ligne small {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    justify-self: start !important;
  }

  .gpu-resultat-multiple .gpu-resultat-documents > ul {
    grid-template-columns: 1fr !important;
  }

  .gpu-resultat-multiple .gpu-resultat-documents li {
    border-right: 0 !important;
  }

  .gpu-resultat-multiple .gpu-resultat-documents a {
    font-size: 12px !important;
    white-space: normal !important;
  }

  .gpu-resultat-multiple .gpu-resultat-documents a span {
    overflow-wrap: anywhere !important;
    text-overflow: clip !important;
    white-space: normal !important;
  }
}
