/* Définir une variable de couleur principale pour une gestion facile du thème */
:root {
  --main-color: #2B426C;
}

::placeholder {
    color: gray;
    opacity: 0.5; /* Pour certains navigateurs */
}

/* Pour une meilleure compatibilité entre les différents navigateurs */
::-webkit-input-placeholder {
    color: gray;
}

:-moz-placeholder {
    color: gray;
    opacity: 1;
}

::-moz-placeholder {
    color: gray;
    opacity: 1;
}

:-ms-input-placeholder {
    color: gray;
}

/* Style pour le formulaire de recherche des auteurs */
.otium-auteurs-search-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 20px;
}

.otium-auteurs-search-form label {
    margin-right: 5px;
}

.otium-auteurs-search-form input,
.otium-auteurs-search-form select,
.otium-auteurs-search-form button,
.otium-auteurs-search-form .button-reset {
    margin-right: 10px;
    height: 40px !important;
    width: auto !important;
}

/* Style pour le conteneur des auteurs */
.otium-auteurs-container {
    margin-top: 20px;
    max-width: 100% !important;
}

/* Grille d'auteurs */
.otium-auteurs-grid {
    display: flex;
    gap: 20px; /* Ajout d'un espacement entre les éléments */
    flex-wrap: wrap; /* S'assurer que les éléments passent à la ligne sur les petits écrans */
}

/* Style pour chaque auteur */
.otium-auteur {
    flex: 1 1 calc(33.333% - 20px); /* Trois éléments par ligne avec un espace entre les éléments */
    display: flex;
    border: 1px solid var(--main-color);
    padding: 10px;
    box-sizing: border-box;
	flex-grow:0;
}

.otium-auteur-image {
	max-height: 150px !important;
    max-width: 150px !important;
    margin-right: 20px;
}

.otium-auteur-info {
    flex-grow: 1;
}

.otium-auteur h3, .otium-auteur-info h5 {
    margin: 0 !important;
}

.otium-auteur-info p {
    font-size: 14px;    
}

/* Pagination */
.otium-pagination {
    margin-top: 20px;
    text-align: center;
}

.otium-pagination .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 2px;
    border: 1px solid #ccc;
    color: #0073aa;
    text-decoration: none;
}

.otium-pagination .page-numbers.current {
    background-color: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.otium-pagination .page-numbers:hover {
    background-color: #005a87;
    border-color: #005a87;
    color: #fff;
}

.en-savoir-plus {
    position: absolute; 
    bottom: 0; 
    right: 0; 
    font-size: 14px;    
}

.otium-auteur-metier {
    color: var(--main-color) !important;
	line-height:normal;
}

.otium-divider {
    text-align: left;
    padding-block-start: 2px;
    padding-block-end: 2px;
    display: flex;
    height: 10px;
    margin-top: 5px;
    margin-bottom: 5px;
}

.otium-divider-separator {
    width: 20%;
    margin: 0 auto;
    margin-left: 0;
    background-color: var(--main-color);
}

/* Styles pour les appareils mobiles */
@media (max-width: 840px) {
    .otium-auteur {
        flex: 1 1 100%; /* Un seul élément par ligne sur les écrans moyens */
    }
    
    .otium-auteur-image {
        max-width: 100px;
        margin-right: 10px;
    }
    
    .otium-auteurs-search-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .otium-auteurs-search-form input,
    .otium-auteurs-search-form select,
    .otium-auteurs-search-form button,
    .otium-auteurs-search-form .button-reset {
        margin-right: 0;
        margin-bottom: 10px;
        width: 100% !important;
        height: 35px !important;
    }
}

.otium-error-message {
	color: #ff4d4d; /* Rouge clair pour l'erreur */
	font-size: 0.9em;
	margin-top: 5px;
	margin-bottom: 20px;
	padding: 5px;
	background-color: #ffe6e6;
	border: 1px solid #ff4d4d;
	border-radius: 4px;
	width: 100%;
	margin-left: 0;
}

/* Styles pour les très petits écrans */
@media (max-width: 480px) {
    .otium-auteur-image {
        max-width: 80px;
        margin-right: 5px;
    }
    
    .otium-auteur-info p {
        font-size: 12px;
    }
}
