
.hub-search-bar {
    display: flex;
    align-items: stretch;
    border: 2px solid #132a67;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 2rem;
    max-width: 100%;
    height: 80px;
}

.hub-search-bar__input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0.85rem 1.25rem;
    font-family: "Montserrat", "Arial", sans-serif;
    font-size: 1rem;
    font-weight: 300;
    color: #132a67;
    background: #fff;
}

.hub-search-bar__input::placeholder {
    color: #132a67;
    opacity: 0.7;
}

.hub-search-bar__btn {
    background: #132a67;
    border: none;
    cursor: pointer;
    padding: 0 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
    transition: background 0.2s ease;
}

.hub-search-bar__btn:hover {
    background: #0d1f4e;
}

.hub-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 50px;
    margin: 0 auto;
}

.hub-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background: #fff;
    border: 1px solid #e5e5e5;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    background-image: none !important;
    position: relative;
    height: 330px; 
}

.hub-card__overlay {
    position: absolute;
    
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    
    background-color: #3ecfb2;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    
    opacity: 0;
    visibility: hidden; 
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94); 
    z-index: 3;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); 
}


.hub-card:hover .hub-card__overlay {
    opacity: 1;
    visibility: visible;
    
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
}

.hub-card--has-hover {
    transition: box-shadow 0.3s ease, transform 0.3s ease, z-index 0s;
    z-index: 1;
}

.hub-card--has-hover:hover {
    transform: scale(1.04);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    z-index: 10;
}

.hub-card__overlay-titre {
    font-family: "Karma", serif;
    font-size: 1.25rem;
    font-weight: 400;
    color: #132a67;
    margin: 0 0 0.75rem 0;
    line-height: 1.3;
}

.hub-card__overlay-titre {
    font-family: "Karma", serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: #132a67;
    margin: 0 0 1rem 0;
    line-height: 1.3;
}

.hub-card__overlay-label {
    font-family: "Montserrat", "Arial", sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: #132a67;
    margin: 0 0 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hub-card__overlay-chapo {
    font-family: "Montserrat", "Arial", sans-serif;
    font-size: 0.8125rem;
    font-weight: 400;
    color: #132a67;
    line-height: 1.6;
    flex: 1;
    overflow: hidden;
}

.hub-card__overlay-chapo p {
    margin: 0 0 0.5rem 0;
    color: #132a67;
    font-family: "Montserrat", "Arial", sans-serif;
    font-size: 0.8125rem !important;
    font-weight: 300;
    line-height: 20px !important;
}

.hub-card__overlay-arrow {
    font-size: 1.25rem;
    color: #132a67;
    margin-top: auto;
    display: block;
    padding-top: 1rem;
}

.hub-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}


.hub-card__img-wrap {
    width: 100%;
    height: 200px; 
    flex-shrink: 0; 
    overflow: hidden;
    background: #e5e5e5;
}

.hub-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.hub-card:hover .hub-card__img {
    transform: scale(1.03);
}

.hub-card__img-placeholder {
    width: 100%;
    height: 100%;
    background: #132a67;
}

.hub-card__body {
    padding: 1.5rem 1.25rem;
    flex: 1;
    display: flex;
    align-items: flex-start; 
}

.hub-card__title {
    font-family: "Montserrat", "Arial", sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: #222;
    margin: 0;
    line-height: 1.5;
}

.hub-chapo {
    font-family: "Karma";
    font-size: 2.5rem;
    font-weight: 400;
    line-height: 50px;
    max-width: 50ch;
}

.demarche-hub {
    margin-top: 50px;
}

@media (max-width: 62em) {
    .hub-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 36em) {
    .hub-grid {
        grid-template-columns: 1fr;
    }
}


.hub-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.hub-filter-select {
    flex: 1;
    min-width: 180px;
    height: 3rem;
    padding: 0 1rem;
    border: 1px solid #132a67;
    border-radius: 4px;
    font-family: "Montserrat", "Arial", sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
    color: #132a67;
    background: #fff;
    cursor: pointer;
    appearance: auto;
}

.hub-filter-select:focus {
    outline: 2px solid #132a67;
    outline-offset: 2px;
}


.hub-section {
    margin-bottom: 3rem;
}

.hub-section__titre {
    font-family: "Karma", serif;
    font-size: 1.75rem;
    font-weight: 400;
    color: #132a67;
    margin: 0 0 1.5rem 0;
    padding-bottom: 0.5rem;
}


.hub-situation {
    padding: 80px 0;
    background-color: #fff;
    
    border-top: 1px solid #f0f0f0; 
}

.hub-situation__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: flex-start;
}

.hub-situation__title {
  font-family: "Karma", serif;
  font-size: 1.875rem;
  font-weight: 600;
  color: #132a67;
  line-height: 1.2;
  margin: 0;
  max-width: 24ch;
}

.hub-situation__text {
    font-family: "Montserrat", "Arial", sans-serif;
    font-size: 14px;
    font-weight: 300;
    color: #444;
    line-height: 1.6;
    margin-bottom: 2rem;
}



.custom-demarches-btn .btn-icon [class^="fr-icon-"] {
    font-size: 1.2rem;
}


.hub-situation-full {
    
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;

    background-color: #ffffff; 
    border-top: 1px solid #e5e5e5;
    padding: 80px 0;
    overflow: hidden; 
}


.hub-situation-full .fr-container {
    max-width: 1000px; 
    margin: 0 auto;
    padding: 0 1.5rem; 
}


.hub-situation__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: flex-start;
}


.hub-search-bar__input {
    font-family: "Karma", serif;
    font-size: 25px;
    font-weight: 400;
    color: #132A67; 
    
    
    height: auto;
    min-height: 60px; 
    padding: 10px 20px;
    line-height: 1.2;
}


.hub-search-bar__input::placeholder {
    font-family: "Karma", serif;
    font-size: 25px;
    font-weight: 400;
    color: #132A67;
    opacity: 0.6; 
}


.hub-search-bar__input::-webkit-input-placeholder {
    font-family: "Karma", serif;
    font-size: 25px;
    color: #132A67;
    opacity: 0.6;
}


.hub-search-bar__input::-moz-placeholder {
    font-family: "Karma", serif;
    font-size: 25px;
    color: #132A67;
    opacity: 0.6;
}

.custom-demarches-btn {
    display: inline-flex;
    text-decoration: none;
    border-radius: 4px;
    overflow: hidden;
    border: none;
    cursor: pointer;
    background-color: #1a2a5e;
    background-image: none !important;
}

.custom-demarches-btn .btn-icon {
    background-color: #0d7bc6;
    color: white;
    padding: 15px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.custom-demarches-btn .btn-label {
    background-color: #1a2a5e;
    padding: 12px 25px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.custom-demarches-btn .btn-label__text {
    font-family: "Montserrat", "Arial", sans-serif;
    font-weight: 400;
    font-size: 12px;
    letter-spacing: 1px;
    color: white;
    position: relative;
    z-index: 2;
}

.custom-demarches-btn .btn-label::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: #0d7bc6;
    transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
}

.custom-demarches-btn:hover .btn-label::before {
    left: 0;
}


@media (max-width: 48em) {
    .hub-situation__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .hub-situation {
        padding: 50px 0;
    }
}