/* ================================================ */
/* STYLES SPÉCIFIQUES À LA PAGE RECHERCHE           */
/* ================================================ */

/* --- Section Hero (Bannière de la page) --- */
.hero {
    position: relative;
    height: 350px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(13, 33, 73, 0.7) 0%, rgba(13, 33, 73, 0.2) 100%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero .hero__title {
    font-size: 3.5rem;
    font-family: var(--font-heading);
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
    color: white; /* Règle ajoutée pour forcer la couleur blanche */
}

/* --- Section "Accès par profil" --- */
.profile-section .section-title {
    color: var(--color-primary-blue);
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-l);
}

.profile-card {
    position: relative;
    display: block;
    height: 380px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-decoration: none;
    color: white;
}

.profile-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

.profile-card__bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
}

.profile-card:hover .profile-card__bg {
    transform: scale(1.05);
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0, 90, 158, 0.85) 10%, rgba(0, 90, 158, 0.4) 50%, transparent 100%);
    z-index: 1;
}

.profile-card__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--spacing-l);
    z-index: 2;
}

.profile-card__title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin: 0 0 var(--spacing-xs) 0;
    line-height: 1.2;
    color: white;
}

.profile-card__cta {
    font-weight: 700;
    color: #FFD700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* --- Zone de Recherche Scientifique --- */
.recherche-container {
    text-align: center;
    max-width: 800px;
    margin: var(--spacing-xxl) auto;
}

.recherche-container h2 {
    font-size: 2rem;
    color: var(--color-primary-dark);
}

.recherche-container p {
    color: var(--color-text-light);
    margin-bottom: var(--spacing-l);
}

.recherche-form {
    display: flex;
    gap: 0;
}

.recherche-form input {
    flex-grow: 1;
    padding: 12px 20px;
    border: 1px solid #ccc;
    border-radius: 4px 0 0 4px;
    font-size: 1rem;
    outline: none;
}

.recherche-form button {
    padding: 12px 24px;
    background-color: var(--color-primary-blue);
    color: white;
    border: 1px solid var(--color-primary-blue);
    border-radius: 0 4px 4px 0;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.recherche-form button:hover {
    background-color: var(--color-primary-dark);
}

/* --- Section Laboratoires --- */
.laboratoires-section {
    padding-bottom: var(--spacing-xxl);
}

.laboratoires-section .section-title {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.laboratoires-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-l);
}

.laboratoire-flip-card {
    background-color: transparent;
    height: 180px;
    perspective: 1000px;
    cursor: pointer;
}

.laboratoire-flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.7s;
    transform-style: preserve-3d;
}

.laboratoire-flip-card.flipped .laboratoire-flip-inner {
    transform: rotateY(180deg);
}

.laboratoire-flip-front, .laboratoire-flip-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
}

.laboratoire-flip-front {
    background: var(--color-background);
    border-left: 4px solid var(--color-primary-blue);
    color: var(--color-primary-dark);
}

.laboratoire-flip-back {
    background: var(--color-primary-dark);
    color: white;
    transform: rotateY(180deg);
}

.laboratoire-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
}

.laboratoire-info { font-size: 0.95rem; }
.laboratoire-info p { margin: 0 0 10px 0; }
.laboratoire-info a { color: var(--color-accent); word-break: break-all; }

/* --- Media Queries pour le responsive --- */
@media (max-width: 992px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }
}