@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; /* 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: #fff; } body.dark-mode .search-container input[type="search"] { color: #000; } body.dark-mode .search-container .searchButton { background: linear-gradient(to right, #4a148c, #7b1fa2); } body.dark-mode .filtre input[type="radio"]:checked + label { background: linear-gradient(180deg, #7b1fa2, #4a148c); 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; } body.light-mode .search-container input[type="search"] { color: #000; } body.light-mode .search-container .searchButton { background: linear-gradient(180deg, rgba(187,211,249,1) 0%, rgba(199,246,196,1) 100%); } body.light-mode .filtre input[type="radio"]:checked + label { background: linear-gradient(180deg, rgba(187,211,249,1) 0%, rgba(199,246,196,1) 100%); border-color: rgba(199,246,196,1); transform: scale(1.1); } body.light-mode .filtre label { display: flex; align-items: center; justify-content: center; padding: 8px 20px; border: 2px solid rgba(187,211,249,1); border-radius: 25px; font-size: 16px; color: #000000; cursor: pointer; transition: all 0.3s ease; }