/* ============================================================
   INFO-PROJET — CSS amélioré
   Compatible Drupal 10 / Bootstrap 5 / sakyran_bootstrap5
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --blue:          #1a4fb3;
  --blue-hover:    #153e9a;
  --blue-light:    #e8effe;
  --dark:          #051040;
  --grey-mid:      #f6f6f7;
  --grey-light:    #f6f6f7;
  --grey-bg:       #f6f6f7;
  --ev-white:      #ffffff;
  --ev-red:        #d64545;
  --orange-bg:     #ed753d;
  --bleu-clair-bg: #56B7B9;

  --badge-i-bg:    #e8effe;
  --badge-i-txt:   #1a4fb3;
  --badge-ao-bg:   #fff3e8;
  --badge-ao-txt:  #c45a0a;

  --radius-sm:     6px;
  --radius-md:     8px;
  --radius-lg:     12px;
  --shadow-sm:     0 2px 8px rgba(5, 16, 64, 0.07);
  --shadow-md:     0 4px 16px rgba(5, 16, 64, 0.10);
  --transition:    0.2s ease;
}

/* ── Fond de page ───────────────────────────────────────────── */
.page-node-type-projet body,
.path-projects body {
  background-color: var(--grey-bg);
}

/* ── Titres de page ─────────────────────────────────────────── */
.block-page-title-block h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

/* ============================================================
   FORMULAIRE DE FILTRES (#views-exposed-form-projects-page-1)
   ============================================================ */
#views-exposed-form-projects-page-1 {
  background-color: var(--ev-white);
  padding: 1.25rem 1.5rem;
 
  border: 1px solid rgba(26, 79, 179, 0.12);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}

#views-exposed-form-projects-page-1 .form--inline {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
}

/* Labels */
#views-exposed-form-projects-page-1 label {
  display: block;
  margin-bottom: 5px;
  font-size: 11px;
  font-weight: 500;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Items */
#views-exposed-form-projects-page-1 .form-item {
  flex: 1;
  min-width: 160px;
  margin-bottom: 0;
}

/* Champs texte et date */
#views-exposed-form-projects-page-1 .form-autocomplete,
#views-exposed-form-projects-page-1 .form-text,
#views-exposed-form-projects-page-1 .form-date,
#views-exposed-form-projects-page-1 .form-control {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid rgba(26, 79, 179, 0.2);
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--dark);
  background: var(--grey-bg);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  outline: none;
}

#views-exposed-form-projects-page-1 .form-autocomplete:focus,
#views-exposed-form-projects-page-1 .form-text:focus,
#views-exposed-form-projects-page-1 .form-date:focus,
#views-exposed-form-projects-page-1 .form-control:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26, 79, 179, 0.12);
  background: var(--ev-white);
}

#views-exposed-form-projects-page-1 .form-autocomplete::placeholder,
#views-exposed-form-projects-page-1 .form-text::placeholder,
#views-exposed-form-projects-page-1 .form-control::placeholder {
  color: #aab4cc;
}

/* Fieldset Date */
#views-exposed-form-projects-page-1 fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

#views-exposed-form-projects-page-1 fieldset legend {
  font-size: 11px;
  font-weight: 500;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 5px;
  padding: 0;
}

#views-exposed-form-projects-page-1 fieldset .fieldset-wrapper {
  display: flex;
  gap: 8px;
  align-items: center;
}

#views-exposed-form-projects-page-1 fieldset .form-item {
  min-width: unset;
}

#views-exposed-form-projects-page-1 fieldset label {
  display: none; /* Min / Max masqués — position suffit */
}

/* Bouton Apply */
#views-exposed-form-projects-page-1 .form-actions {
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}

#views-exposed-form-projects-page-1 .form-submit,
#views-exposed-form-projects-page-1 .btn-secondary {
  background-color: var(--blue) !important;
  color: var(--ev-white) !important;
  border: none !important;
  padding: 9px 22px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color var(--transition), transform 0.15s;
  line-height: 1.5;
  white-space: nowrap;
}

#views-exposed-form-projects-page-1 .form-submit:hover,
#views-exposed-form-projects-page-1 .btn-secondary:hover {
  background-color: var(--blue-hover) !important;
  transform: translateY(-1px);
}

#views-exposed-form-projects-page-1 .form-submit:active {
  transform: scale(0.98);
}

/* ============================================================
   TABLEAU INFO-PROJET
   ============================================================ */

/* Conteneur global */
.info-projet .view-content {
  background: var(--ev-white);
 
  overflow: hidden;
  border: 1px solid rgba(26, 79, 179, 0.1);
  box-shadow: var(--shadow-sm);
}

/* Tableau */
.info-projet .views-table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  background-color: var(--ev-white);
  box-shadow: none;
  border-radius: 0;
}

/* En-tête */
.info-projet .views-table thead th {
  background-color: var(--blue);
  color: var(--ev-white);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
  padding: 13px 14px;
  border: none;
  white-space: nowrap;
}

.info-projet .views-table thead th:first-child { text-align: left; }
.info-projet .views-table thead th:nth-child(4) { text-align: left; }
.info-projet .views-table thead th:last-child  { text-align: right; }

/* Lignes corps */
.info-projet .views-table tbody tr {
  transition: background var(--transition);
  border-bottom: 1px solid rgba(26, 79, 179, 0.07);
}

.info-projet .views-table tbody tr:last-child {
  border-bottom: none;
}

/* Zèbre léger */
.info-projet .table-striped > tbody > tr:nth-of-type(odd) > * {
  --bs-table-color-type: none;
  --bs-table-bg-type: none;
}

.info-projet .views-table tbody tr:nth-child(even) {
  background-color: rgba(26, 79, 179, 0.025);
}

/* Hover ligne entière */
.info-projet .views-table tbody tr:hover {
  background-color: var(--blue) !important;
}

.info-projet .views-table tbody tr:hover td,
.info-projet .views-table tbody tr:hover .views-field,
.info-projet .views-table tbody tr:hover a {
  color: var(--ev-white) !important;
  background: transparent !important;
  font-weight: 500;
}

.info-projet .views-table tbody tr:hover a {
  text-decoration: underline;
}

/* Cellules */
.info-projet .views-table tbody td {
  padding: 11px 14px;
  vertical-align: middle;
  font-size: 14px;
  color: var(--dark);
  border: none;
  transition: color var(--transition), background var(--transition);
}

/* Colonne Pays */
.info-projet .views-field-field-pays {
  color: var(--grey-mid);
  font-size: 12.5px;
  min-width: 80px;
}

/* Colonne Aéroport */
.info-projet .views-field-field-aeroport {
  font-weight: 500;
  font-size: 13px;
  color: #2a3f6e;
  min-width: 180px;
}

/* Colonne Titre */
.info-projet .views-field-title a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 400;
  line-height: 1.45;
  transition: color var(--transition);
}

.info-projet .views-field-title a:hover {
  text-decoration: underline;
}

/* Colonne Date */
.info-projet .views-field-created {
  text-align: right;
  white-space: nowrap;
  font-size: 12px;
  color: var(--grey-light);
}

/* ── Badges Type ────────────────────────────────────────────── */
.view_type_info_projet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--badge-i-bg);
  color: var(--badge-i-txt);
  font-size: 11px;
  font-weight: 600;
  transition: background var(--transition), color var(--transition);
}

.view_type_ao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border-radius: 0px;
  background: var(--badge-ao-bg);
  color: var(--badge-ao-txt);
  font-size: 10px;
  font-weight: 600;
  transition: background var(--transition), color var(--transition);
}

/* Badges sur fond hover bleu */
.info-projet .views-table tbody tr:hover .view_type_info_projet,
.info-projet .views-table tbody tr:hover .view_type_ao {
  background: rgba(255, 255, 255, 0.2) !important;
  color: var(--ev-white) !important;
}

/* ── Colonne Type centrée ───────────────────────────────────── */
.info-projet .views-field-field-type-d-info-projet-1 {
  text-align: center;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.info-projet .pager,
.view-projects .pager {
  padding: 1.25rem 0 0.5rem;
}

.info-projet .pagination .page-link,
.view-projects .pagination .page-link {
  color: var(--blue);
  border: 1.5px solid rgba(26, 79, 179, 0.2);
  border-radius: var(--radius-md) !important;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition);
}

.info-projet .pagination .page-link:hover,
.view-projects .pagination .page-link:hover {
  background-color: var(--blue);
  color: var(--ev-white);
  border-color: var(--blue);
}

.info-projet .pagination .page-item.active .page-link,
.view-projects .pagination .page-item.active .page-link {
  background-color: var(--blue);
  border-color: var(--blue);
  color: var(--ev-white);
  font-weight: 600;
}

/* ============================================================
   AUTOCOMPLÉTION (jQuery UI)
   ============================================================ */
.ui-autocomplete {
  background-color: var(--ev-white);
  border: 1.5px solid rgba(26, 79, 179, 0.25);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 6px 0;
  max-height: 300px;
  overflow-y: auto;
  font-size: 13px;
  z-index: 1050;
  min-width: 240px;
}

.ui-menu { list-style: none; padding: 0; margin: 0; }
.ui-menu-item { padding: 0; margin: 0; }

.ui-menu-item-wrapper {
  display: block;
  padding: 8px 14px;
  color: var(--dark);
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.ui-menu-item-wrapper:hover,
.ui-menu-item-wrapper.ui-state-focus {
  background-color: var(--blue-light);
  color: var(--blue);
}

.ui-state-focus { border: none; outline: none; }

.ui-autocomplete::-webkit-scrollbar { width: 5px; }
.ui-autocomplete::-webkit-scrollbar-track { background: rgba(0,0,0,0.04); border-radius: 0px; }
.ui-autocomplete::-webkit-scrollbar-thumb { background: rgba(26,79,179,0.25); border-radius: 0px; }
.ui-autocomplete::-webkit-scrollbar-thumb:hover { background: rgba(26,79,179,0.45); }

/* ============================================================
   PAGE CALENDRIER (couleur --dark, inchangée)
   ============================================================ */
.page-calendrier .views-table tbody tr { transition: background var(--transition); }
.page-calendrier .views-table tbody tr:hover { background-color: var(--dark) !important; }
.page-calendrier .views-table tbody tr:hover td,
.page-calendrier .views-table tbody tr:hover a,
.page-calendrier .views-table tbody tr:hover .views-field {
  color: var(--ev-white) !important;
  font-weight: 500 !important;
  background: var(--dark);
}
.page-calendrier .table-striped > tbody > tr:nth-of-type(odd) > * {
  --bs-table-color-type: none;
  --bs-table-bg-type: none;
}
.page-calendrier .views-table tbody tr:hover a { text-decoration: underline; }
.page-calendrier .views-table thead th {
  background-color: var(--dark);
  color: var(--ev-white);
  font-weight: 600;
  text-align: center;
  padding: 12px 15px;
  border: none;
}

/* ============================================================
   TABLEAU INDÉPENDANT .projects-table
   ============================================================ */
.projects-table { width: 100%; border-collapse: collapse; }
.projects-table tbody tr { transition: background var(--transition); }
.projects-table tbody tr:hover { background-color: var(--blue) !important; }
.projects-table tbody tr:hover td,
.projects-table tbody tr:hover a,
.projects-table tbody tr:hover .views-field {
  color: var(--ev-white) !important;
  font-weight: 500 !important;
}
.projects-table tbody tr:hover a { text-decoration: underline; }
.projects-table thead th {
  background-color: var(--blue);
  color: var(--ev-white);
  font-weight: 600;
  text-align: center;
  padding: 12px 15px;
  border: none;
}
.projects-table tbody td {
  padding: 11px 14px;
  border-bottom: 1px solid rgba(26, 79, 179, 0.08);
  vertical-align: middle;
}
.projects-table .views-field-title a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 500;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {

  #views-exposed-form-projects-page-1 .form--inline {
    flex-direction: column;
    align-items: stretch;
  }

  #views-exposed-form-projects-page-1 .form-item {
    min-width: unset;
    width: 100%;
  }

  #views-exposed-form-projects-page-1 fieldset .fieldset-wrapper {
    flex-direction: column;
    align-items: stretch;
  }

  #views-exposed-form-projects-page-1 .form-actions {
    width: 100%;
  }

  #views-exposed-form-projects-page-1 .form-submit {
    width: 100%;
    text-align: center;
  }

  /* Tableau → cards empilées */
  .info-projet .views-table,
  .projects-table {
    display: block;
    overflow-x: auto;
  }

  .info-projet .views-table thead,
  .projects-table thead {
    display: none;
  }

  .info-projet .views-table tbody tr,
  .projects-table tbody tr {
    display: block;
    margin-bottom: 1rem;
    border: 1px solid rgba(26, 79, 179, 0.12);
   
    background: var(--ev-white);
  }

  .info-projet .views-table tbody td,
  .projects-table tbody td {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(26, 79, 179, 0.07);
    font-size: 13px;
  }

  .info-projet .views-table tbody td::before,
  .projects-table tbody td::before {
    content: attr(data-label);
    font-size: 11px;
    font-weight: 500;
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-right: 12px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .info-projet .views-table tbody td:last-child,
  .projects-table tbody td:last-child {
    border-bottom: none;
  }
}


/* ============================================================
   PAGE CONTACTS UTILES — CSS COMPLET CORRIGÉ v3
   ============================================================ */

/* ── Reset TOTAL des anciens styles contacts-utiles ── */
.page-route-view-contacts-utiles-page-1 .views-element-container .view-contacts-utiles {
  max-width: unset !important;
  padding: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.page-route-view-contacts-utiles-page-1 .views-exposed-form {
  background: transparent !important;
  padding: 0 !important;
  margin-bottom: 0 !important;
  gap: 0 !important;
  display: block !important;
}

/* ── Formulaire conteneur ── */
#views-exposed-form-contacts-utiles-page-1 {
  background-color: #ffffff !important;
  padding: 1.25rem 1.5rem !important;
  border-radius: 0px;
  border: 1px solid rgba(237, 117, 61, 0.18) !important;
  box-shadow: 0 2px 8px rgba(5, 16, 64, 0.07) !important;
  margin-bottom: 1.5rem !important;
      margin-bottom: 50px;
}

/* ── RESET CLEARFIX BOOTSTRAP — C'est ici le cœur du problème ── */
#views-exposed-form-contacts-utiles-page-1 .form--inline::before,
#views-exposed-form-contacts-utiles-page-1 .form--inline::after {
  display: none !important;
  content: none !important;
}

#views-exposed-form-contacts-utiles-page-1 .clearfix::before,
#views-exposed-form-contacts-utiles-page-1 .clearfix::after {
  display: none !important;
  content: none !important;
}

/* ── Ligne de filtres ── */
#views-exposed-form-contacts-utiles-page-1 .form--inline {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: flex-end !important;
  gap: 12px !important;
  float: none !important;
  clear: none !important;
  width: 100% !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

/* ── Chaque champ ── */
#views-exposed-form-contacts-utiles-page-1 .form-item {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  float: none !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  box-sizing: border-box !important;
}

/* ── Labels — tronqués si trop longs ── */
#views-exposed-form-contacts-utiles-page-1 .form-item label {
  display: block !important;
  margin-bottom: 5px !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  color: #ed753d !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 100% !important;
}

/* ── Inputs ── */
#views-exposed-form-contacts-utiles-page-1 .form-autocomplete,
#views-exposed-form-contacts-utiles-page-1 .form-text,
#views-exposed-form-contacts-utiles-page-1 .form-control {
  width: 100% !important;
  padding: 9px 12px !important;
  border: 1.5px solid rgba(237, 117, 61, 0.25) !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  color: #051040 !important;
  background: #f4f6fb !important;
  outline: none !important;
  box-sizing: border-box !important;
  height: 38px !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
  float: none !important;
  margin: 0 !important;
}

#views-exposed-form-contacts-utiles-page-1 .form-autocomplete:focus,
#views-exposed-form-contacts-utiles-page-1 .form-text:focus,
#views-exposed-form-contacts-utiles-page-1 .form-control:focus {
  border-color: #ed753d !important;
  box-shadow: 0 0 0 3px rgba(237, 117, 61, 0.12) !important;
  background: #ffffff !important;
}

#views-exposed-form-contacts-utiles-page-1 .form-autocomplete::placeholder,
#views-exposed-form-contacts-utiles-page-1 .form-text::placeholder {
  color: #aab4cc !important;
  font-size: 12px !important;
}

/* ── Bouton Apply — même hauteur que les inputs ── */
#views-exposed-form-contacts-utiles-page-1 .form-actions {
  flex: 0 0 auto !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: flex-end !important;
  float: none !important;
  position: static !important;
  top: auto !important;
}

#views-exposed-form-contacts-utiles-page-1 .form-submit {
  background-color: #ed753d !important;
  color: #ffffff !important;
  border: none !important;
  padding: 0 22px !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  height: 38px !important;
  line-height: 38px !important;
  position: static !important;
  top: auto !important;
  display: block !important;
  transition: background-color 0.2s ease, transform 0.15s !important;
}

#views-exposed-form-contacts-utiles-page-1 .form-submit:hover {
  background-color: #d4622e !important;
  transform: translateY(-1px) !important;
}

/* ============================================================
   TABLEAU CONTACTS UTILES
   ============================================================ */

.view-contacts-utiles .view-content {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(237, 117, 61, 0.12);
  box-shadow: 0 2px 8px rgba(5, 16, 64, 0.07);
}

/* Reset Bootstrap striped */
.view-contacts-utiles .table-striped > tbody > tr:nth-of-type(odd) > * {
  --bs-table-color-type: none;
  --bs-table-bg-type: none;
}

/* Header orange */
.view-contacts-utiles .views-table thead th {
  background-color: #ed753d;
  color: #ffffff;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 13px 16px;
  border: none;
  white-space: nowrap;
}

/* Tableau */
.view-contacts-utiles .views-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 0;
}

.view-contacts-utiles .views-table tbody tr {
  border-bottom: 1px solid rgba(237, 117, 61, 0.08);
  transition: background 0.2s ease;
}

.view-contacts-utiles .views-table tbody tr:last-child {
  border-bottom: none;
}

.view-contacts-utiles .views-table tbody tr:nth-child(even) {
  background-color: rgba(237, 117, 61, 0.025);
}

/* Hover */
.view-contacts-utiles .views-table tbody tr:hover {
  background-color: #ed753d !important;
}

.view-contacts-utiles .views-table tbody tr:hover td,
.view-contacts-utiles .views-table tbody tr:hover .views-field,
.view-contacts-utiles .views-table tbody tr:hover a {
  color: #ffffff !important;
  background: transparent !important;
}

.view-contacts-utiles .views-table tbody tr:hover a {
  text-decoration: underline;
}

/* Cellules */
.view-contacts-utiles .views-table tbody td {
  padding: 12px 16px;
  vertical-align: middle;
  font-size: 13px;
  color: #051040;
  border: none;
}

/* Colonne Pays */
.view-contacts-utiles .views-field-field-experience-pays {
  font-size: 12px;
  color: #6b7fa3;
  min-width: 80px;
}

/* Colonne Organisme */
.view-contacts-utiles .views-field-field-organisme a {
  color: #ed753d;
  text-decoration: none;
  font-weight: 500;
}

.view-contacts-utiles .views-field-field-organisme a:hover {
  text-decoration: underline;
}

/* Nom / Prénom */
.view-contacts-utiles .views-field-title a,
.view-contacts-utiles .views-field-field-prenom a {
  color: #051040;
  text-decoration: none;
  font-weight: 400;
}

/* Fonction */
.view-contacts-utiles .views-field-field-fonction {
  font-size: 12px;
  color: #6b7fa3;
}

/* ============================================================
   PAGINATION
   ============================================================ */

.view-contacts-utiles .pager {
  padding: 1.25rem 0 0.5rem;
}

.view-contacts-utiles .pagination .page-link {
  color: #ed753d;
  border: 1.5px solid rgba(237, 117, 61, 0.25);
  border-radius: 8px !important;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.view-contacts-utiles .pagination .page-link:hover {
  background-color: #ed753d;
  color: #ffffff;
  border-color: #ed753d;
}

.view-contacts-utiles .pagination .page-item.active .page-link {
  background-color: #ed753d;
  border-color: #ed753d;
  color: #ffffff;
  font-weight: 600;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 992px) {
  #views-exposed-form-contacts-utiles-page-1 .form--inline {
    flex-wrap: wrap !important;
  }

  #views-exposed-form-contacts-utiles-page-1 .form-item {
    flex: 1 1 calc(50% - 6px) !important;
  }
}

@media (max-width: 576px) {
  #views-exposed-form-contacts-utiles-page-1 .form--inline {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  #views-exposed-form-contacts-utiles-page-1 .form-item,
  #views-exposed-form-contacts-utiles-page-1 .form-actions {
    width: 100% !important;
    flex: none !important;
  }

  #views-exposed-form-contacts-utiles-page-1 .form-submit {
    width: 100% !important;
    text-align: center !important;
  }

  .view-contacts-utiles .views-table {
    display: block;
    overflow-x: auto;
  }

  .view-contacts-utiles .views-table thead {
    display: none;
  }

  .view-contacts-utiles .views-table tbody tr {
    display: block;
    margin-bottom: 1rem;
    border: 1px solid rgba(237, 117, 61, 0.15);
    border-radius: 8px;
    background: #ffffff;
  }

  .view-contacts-utiles .views-table tbody td {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(237, 117, 61, 0.07);
    font-size: 13px;
  }

  .view-contacts-utiles .views-table tbody td:last-child {
    border-bottom: none;
  }
}

/* ============================================================
   PAGE DOCUMENTS — CSS
   Inspiré du style Projects, couleur turquoise
   ============================================================ */

:root {
  --teal:          #5abcb5;
  --teal-hover:    #157a6b;
  --teal-light:    #e6f5f3;
  --dark:          #051040;
  --grey-mid:      #6b7fa3;
  --grey-light:    #8898bb;
  --grey-bg:       #f4f6fb;
  --ev-white:      #ffffff;
  --radius-sm:     0px;
  --radius-md:     0px;
  --radius-lg:     0px;
  --shadow-sm:     0 2px 8px rgba(5, 16, 64, 0.07);
  --shadow-md:     0 4px 16px rgba(5, 16, 64, 0.10);
  --transition:    0.2s ease;
}

/* ============================================================
   FORMULAIRE DE FILTRES
   ============================================================ */
.path-esapce-membres .file--mime-application-pdf a{
  margin-bottom: 0px!important;
}
#views-exposed-form-documents-page-1 {
  background-color: var(--ev-white);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(26, 138, 122, 0.18);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}

#views-exposed-form-documents-page-1 .form--inline {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
}

/* Labels */
#views-exposed-form-documents-page-1 label {
  display: block;
  margin-bottom: 5px;
  font-size: 11px;
  font-weight: 500;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Items */
#views-exposed-form-documents-page-1 .form-item {
  flex: 1;
  min-width: 160px;
  margin-bottom: 0;
}

/* Select, inputs date */
#views-exposed-form-documents-page-1 .form-select,
#views-exposed-form-documents-page-1 .form-date,
#views-exposed-form-documents-page-1 .form-control {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid rgba(26, 138, 122, 0.25);
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--dark);
  background: var(--grey-bg);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  outline: none;
  appearance: auto;
}

#views-exposed-form-documents-page-1 .form-select:focus,
#views-exposed-form-documents-page-1 .form-date:focus,
#views-exposed-form-documents-page-1 .form-control:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(26, 138, 122, 0.12);
  background: var(--ev-white);
}

/* Fieldset Date */
#views-exposed-form-documents-page-1 fieldset {
  border: none;
  padding: 0;
  margin: 0;
  flex: 1;
  min-width: 200px;
}

#views-exposed-form-documents-page-1 fieldset legend {
  font-size: 11px;
  font-weight: 500;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 5px;
  padding: 0;
}

#views-exposed-form-documents-page-1 fieldset .fieldset-wrapper {
  display: flex;
  gap: 8px;
  align-items: center;
      margin-top: -17px;
}

#views-exposed-form-documents-page-1 fieldset .form-item {
  min-width: unset;
}

/* Masque les labels Min/Max */
#views-exposed-form-documents-page-1 fieldset label {
  display: none;
}

/* Bouton Apply */
#views-exposed-form-documents-page-1 .form-actions {
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}

#views-exposed-form-documents-page-1 .form-submit {
  background-color: var(--teal) !important;
  color: var(--ev-white) !important;
  border: none !important;
  padding: 9px 22px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color var(--transition), transform 0.15s;
  white-space: nowrap;
}

#views-exposed-form-documents-page-1 .form-submit:hover {
  background-color: var(--teal-hover) !important;
  transform: translateY(-1px);
}

/* ============================================================
   TABLEAU DOCUMENTS
   ============================================================ */

.view-documents .view-content {
  background: var(--ev-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(26, 138, 122, 0.12);
  box-shadow: var(--shadow-sm);
}

/* Header turquoise */
.view-documents .views-table thead th {
  background-color: var(--teal);
  color: var(--ev-white);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 13px 16px;
  border: none;
  white-space: nowrap;
}

/* Reset Bootstrap striped */
.view-documents .table-striped > tbody > tr:nth-of-type(odd) > * {
  --bs-table-color-type: none;
  --bs-table-bg-type: none;
}

/* Lignes */
.view-documents .views-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 0;
}

.view-documents .views-table tbody tr {
  border-bottom: 1px solid rgba(26, 138, 122, 0.08);
  transition: background var(--transition);
}

.view-documents .views-table tbody tr:last-child {
  border-bottom: none;
}

.view-documents .views-table tbody tr:nth-child(even) {
  background-color: rgba(26, 138, 122, 0.025);
}

/* Hover */
.view-documents .views-table tbody tr:hover {
  background-color: var(--teal) !important;
}

.view-documents .views-table tbody tr:hover td,
.view-documents .views-table tbody tr:hover .views-field,
.view-documents .views-table tbody tr:hover a {
  color: var(--ev-white) !important;
  background: transparent !important;
}

.view-documents .views-table tbody tr:hover a {
  text-decoration: underline;
}

/* Cellules */
.view-documents .views-table tbody td {
  padding: 12px 16px;
  vertical-align: middle;
  font-size: 13px;
  color: var(--dark);
  border: none;
}

/* Colonne Type */
.view-documents .views-field-field-type-de-documentation {
  font-size: 12px;
  color: var(--grey-mid);
  min-width: 140px;
}

/* Colonne Title */
.view-documents .views-field-title {
  font-size: 13px;
  color: var(--dark);
  font-weight: 400;
  line-height: 1.45;
}

/* Colonne Fichier — bouton turquoise */
.view-documents .views-field-field-fichier a {
  display: inline-block;
  background-color: var(--teal);
  color: var(--ev-white) !important;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none !important;
  transition: background-color var(--transition);
  white-space: nowrap;
}

.view-documents .views-field-field-fichier a:hover {
  background-color: var(--teal-hover) !important;
}

/* Garder le bouton visible au hover de la ligne */
.view-documents .views-table tbody tr:hover .views-field-field-fichier a {
  background-color: var(--ev-white) !important;
  color: var(--teal) !important;
}

/* Colonne Date */
.view-documents .views-field-created {
  text-align: right;
  white-space: nowrap;
  font-size: 12px;
  color: var(--grey-light);
}

/* ============================================================
   PAGINATION
   ============================================================ */

.view-documents .pager {
  padding: 1.25rem 0 0.5rem;
}

.view-documents .pagination .page-link {
  color: var(--teal);
  border: 1.5px solid rgba(26, 138, 122, 0.25);
  border-radius: var(--radius-md) !important;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition);
}

.view-documents .pagination .page-link:hover {
  background-color: var(--teal);
  color: var(--ev-white);
  border-color: var(--teal);
}

.view-documents .pagination .page-item.active .page-link {
  background-color: var(--teal);
  border-color: var(--teal);
  color: var(--ev-white);
  font-weight: 600;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
  #views-exposed-form-documents-page-1 .form--inline {
    flex-direction: column;
    align-items: stretch;
  }

  #views-exposed-form-documents-page-1 .form-item,
  #views-exposed-form-documents-page-1 fieldset {
    min-width: unset;
    width: 100%;
  }

  #views-exposed-form-documents-page-1 fieldset .fieldset-wrapper {
    flex-direction: column;
  }

  #views-exposed-form-documents-page-1 .form-actions {
    width: 100%;
  }

  #views-exposed-form-documents-page-1 .form-submit {
    width: 100%;
    text-align: center;
  }

  .view-documents .views-table {
    display: block;
    overflow-x: auto;
  }

  .view-documents .views-table thead {
    display: none;
  }

  .view-documents .views-table tbody tr {
    display: block;
    margin-bottom: 1rem;
    border: 1px solid rgba(26, 138, 122, 0.15);
    border-radius: var(--radius-md);
    background: var(--ev-white);
  }

  .view-documents .views-table tbody td {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(26, 138, 122, 0.07);
    font-size: 13px;
  }

  .view-documents .views-table tbody td:last-child {
    border-bottom: none;
  }
}