@import url(./style.css);
@import url(./styleQuoteLittle.css);

/* ====== DEFAULT ====== */


.search-container {
    margin-left: 5%;
    width: 90%;
    height: 60px;
    border-radius: 40px;
    display: flex; /* Utilisez flexbox pour aligner les éléments */
    align-items: center; /* Aligne les enfants verticalement */
}

.search-container input[type="search"] {
    flex: 1; /* Permet au champ de recherche de prendre tout l'espace disponible */
    border: none;
    background: none;
    padding: 0 10px; /* Ajoutez un peu de padding pour respirer */
    color: #00f;
    font-size: 16px;
    line-height: 40px;
}

.search-container input[type="search"]:focus {
    outline: none; /* Supprime la bordure bleue */
    box-shadow: none;
    z-index: 5; /* Supprime également toute ombre ajoutée */
}


.search-container .searchButton {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.searchButton img{
    width: 70%;
    height: 70%;
}

.search-container input[type="search"] {
    margin: 10px ;
    border:none;
    background: none;
    float:left;
    padding: 0;
    color: #00f;
    font-size: 16px;
    line-height: 40px;
    width:auto;
}

.filtre {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
    padding: 10px 0;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.filtre div {
    display: flex;
    align-items: center;
    padding: 5px 15px;
    border-radius: 5px;
    transition: background 0.3s ease, transform 0.3s ease;
}

.filtre div:hover {
    transform: scale(1.05);
}

.filtre input[type="radio"] {
    display: none;
}

/* ====== DARK MODE ====== */
/*body.dark-mode */
body.dark-mode .search-container {
    background-color: #fff;
}
body.dark-mode .search-container input[type="search"] {
    color: #000;
}
body.dark-mode .search-container .searchButton {
    background: var(--main-dark-gradient);
}

body.dark-mode .filtre input[type="radio"]:checked + label {
    background: var(--main-dark-gradient);
    border-color: #4a148c;
    transform: scale(1.1);
}

body.dark-mode .filtre label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    border: 2px solid #4a148c; 
    border-radius: 25px;
    font-size: 16px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease; 
}

/* ====== LIGHT MODE ====== */
/*body.light-mode*/ 
body.light-mode .search-container {
    background: #ccc;
}

.light-mode form {
    background-color: #fff;
    margin-top: -30px;
    padding-top: 35px;
}

body.light-mode .search-container input[type="search"] {
    color: #000;
}
body.light-mode .search-container .searchButton {
    background:  var(--main-light-gradient);
}

body.light-mode .filtre input[type="radio"]:checked + label {
    background:  var(--main-light-gradient);
    border-color: #e3eeff;
    transform: scale(1.1);
}

body.light-mode .filtre label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    border: 2px solid #e3eeff; 
    border-radius: 25px;
    font-size: 16px;
    color: #000000;
    cursor: pointer;
    transition: all 0.3s ease; 
}

/* ====== PAGINATION STYLES ====== */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

.pagination-container select {
    margin: 0 10px;
    padding: 5px;
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.pagination-container button {
    background: var(--main-light-gradient);
    border: none;
    border-radius: 5px;
    padding: 5px 10px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.pagination-container button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Spinner style */
.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: #000;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
    margin-left: 10px;
    display: none;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Adaptation pour dark mode */
body.dark-mode .pagination-container button {
    background: var(--main-dark-gradient);
    color: #fff;
}

body.dark-mode .pagination-container select {
    border: 1px solid #555;
    background: #333;
    color: #fff;
}
