/* --------------------------------------------------------------

	theme.css
	Theme CFDT ATMB 
	2020 - Thierry COLLOMBAT

-------------------------------------------------------------- */

/* =============================
   IMAGES RESPONSIVES
   ============================= */
img {
  max-width: 100% !important;
  height: auto !important;
  width: auto !important;
}

/* =============================
   TAILLE DE POLICE GLOBALE
   ============================= */
:root {
  --bs-body-font-size: 1.125rem; /* 18px équivalent */
}

/* =============================
   BARRE DE RECHERCHE
   ============================= */
.site-search input[type="text"],
.site-search input[type="search"] {
  font-size: 1.2rem !important;
}

.site-search input[type="submit"] {
  font-size: 1.2rem !important;
}

/* =============================
   COULEURS PRINCIPALES
   ============================= */
:root {
  --bs-primary: #e7591c;
  --bs-primary-rgb: 231, 89, 28;
  --bs-warning: #f39c12;
}

/* =============================
   HEADER
   ============================= */
.site-header {
  background-color: #e7591c !important;
  border-bottom: 4px solid #c0481a;
  margin: 0;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

/* =============================
   NAVBAR
   ============================= */

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: #fff !important;
  background-color: rgba(255,255,255,0.15);
  border-radius: 0.25rem;
}

/*.navbar .dropdown-menu {border-top: 3px solid #e7591c;} */

/* Header */
.site-header {
  background-color: #e7591c !important;
  border-bottom: 4px solid #c0481a;
  box-shadow: none !important;
  margin: 0;
}

/* Navbar */
.navbar {
  border-bottom: 3px solid #a03916;
  box-shadow: none !important;
  margin: 0;
}

.site-logo .logo {
  max-height: 80px;
  width: auto;
}

.site-slogan {
  opacity: 0.9;
}

/* Formulaire de recherche dans le header */
.site-search form {
  display: flex;
  gap: 0;
}

.site-search input[type="text"],
.site-search input[type="search"] {
  border-radius: 0.375rem 0 0 0.375rem;
  border: none;
  padding: 0.4rem 0.8rem;
  font-size: 0.9rem;
  width: 200px;
  outline: none;
}

.site-search input[type="submit"] {
  border-radius: 0 0.375rem 0.375rem 0;
  border: none;
  background-color: var(--bs-warning);
  color: #fff;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background-color 0.2s;
}

.site-search input[type="submit"]:hover {
  background-color: var(--bs-primary-emphasis);
}

/* Sur mobile : champ de recherche plus compact */
@media (max-width: 768px) {
  .site-search input[type="text"],
  .site-search input[type="search"] {
    width: 130px;
  }

  /* Le slogan est masqué sur mobile pour gagner de la place ]
  /* (classe d-none d-md-block déjà gérée par Bootstrap) */
}

/* Navbar */
.navbar {
  border-bottom: 3px solid var(--bs-warning);
}

.navbar .nav-link {
  font-weight: 500;
  letter-spacing: 0.02em;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: var(--bs-warning) !important;
}

/* Dropdown */
.dropdown-menu {
  border-top: 3px solid var(--bs-warning);
  border-radius: 0 0 0.375rem 0.375rem;
}

/* Titres de section */
.section-title {
  font-size: 1.4rem;
  font-weight: 700;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 3px solid var(--bs-primary);
}

/* Overlay titre sur image dossiers */
.card-img-wrapper {
  position: relative;
}

.card-img-overlay-title {
  position: absolute;
  bottom: 0;
  width: 100%;
  background-color: var(--bs-primary);
  padding: 0.5rem 1rem;
}

/* Footer */
.site-footer {
  border-top: 3px solid var(--bs-primary);
}

.footer-link:hover {
  color: var(--bs-warning) !important;
  transition: color 0.2s;
}

/* =============================
   PAGINATION SPIP
   ============================= */
.p.pagination ul.pagination-items {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.p.pagination .pagination-item {
  display: inline-flex;
}

.p.pagination .pagination-item-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.5rem;
  border: 1px solid #e7591c;
  border-radius: 0.25rem;
  color: #e7591c;
  text-decoration: none;
  cursor: pointer;
}

.p.pagination .pagination-item.active .pagination-item-label {
  background-color: #e7591c;
  color: #fff;
  font-weight: bold;
}

.p.pagination .pagination-item-label:hover {
  background-color: #e7591c;
  color: #fff;
}

.p.pagination .pagination-item.disabled .pagination-item-label {
  border-color: #ccc;
  color: #ccc;
  cursor: default;
}

/* --------------------------------------------------------------

   Ajout des fonts nécessaires au site

-------------------------------------------------------------- */

@font-face {
	font-family: 'Gotham Narrow Book';
	font-style: normal;
	font-weight: normal;
	src: local('Gotham Narrow Book'), url('/squelettes/fonts/gotham-narrow-cufonfonts-webfont/GothamNarrow-Book.woff') format('woff');
}

@font-face {
	font-family: 'Gotham Narrow Black';
	font-style: normal;
	font-weight: normal;
	src: local('Gotham Narrow Black'), url('/squelettes/fonts/gotham-narrow-cufonfonts-webfont/GothamNarrow-Black.woff') format('woff');
}
