/* --- FONT & RESET --- */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Roboto', Arial, sans-serif; }
body { line-height: 1.6; background-color: #f9f9f9; color: #333; }
a { text-decoration: none; color: inherit; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
img { border-radius: 4px; max-width: 100%; height: auto; }

/* --- HEADER --- */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #333;
  color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 20px 0;
}

header.shrink {
  padding: 4px 20px 10px 21px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

header .container {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

header .logo {
  display: flex;
  align-items: center;
  font-size: 0.9em;
}

header .logo img {
  margin-right: 8px;
  position: relative;
  top: 8px;
}

nav {
  display: flex;
  align-items: flex-start;
  position: relative;
  top: 12px;
  font-size: 0.9em;
}

nav a {
  margin: 0 10px;
  color: #fff;
  text-decoration: none;
}

/* --- HERO --- */
.hero { background: linear-gradient(160deg, #1117CB, #4289FF); color: #fff; padding: 50px 0 30px 0; text-align: center; }
.hero h1 { font-size: 1.8rem; margin-bottom: 15px; }
.hero p { font-size: 1rem; margin-bottom: 20px; }

/* --- FILTER BAR (maintenant barre de tri) --- */
.filter-bar { 
  position: sticky; 
  top: var(--filter-top, 30px); 
  z-index: 900; 
  background: #fff; 
  box-shadow: 0 1px 7px rgba(0,0,0,0.5); 
  padding: 12px; 
  margin-bottom: 20px; 
  transition: all 0.3s ease; 
  display: flex; 
  flex-wrap: wrap; 
  justify-content: space-between; 
  align-items: center; 
  border: solid 3px #fff; 
}

/* --- Contrôles de tri --- */
.sort-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sort-controls label {
  font-weight: bold;
  font-size: 0.95rem;
  color: #333;
}

.sort-dropdown {
  padding: 8px 15px;
  border: 2px solid #2575fc;
  border-radius: 5px;
  font-size: 0.95rem;
  background: #fff;
  color: #333;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
}

.sort-dropdown:hover {
  border-color: #FF9900;
}

.sort-dropdown:focus {
  border-color: #FF9900;
  box-shadow: 0 0 8px rgba(255,153,0,0.3);
}

.search-currency { display: flex; gap: 3px; flex-wrap: wrap; }
.search-currency input { padding: 7px 10px; border-radius: 5px; border: 2px solid #2575fc; font-size: 1rem; outline: none; transition: all 0.3s ease; }
.search-currency input:focus { border-color: #FF9900; box-shadow: 0 0 8px rgba(255,153,0,0.3); }
.currency-btn { background: #2575fc; color: #fff; border: none; padding: 7px 13px; margin-left: 20px; font-size: 0.9rem; border-radius: 5px; cursor: pointer; transition: background 0.3s, transform 0.2s, box-shadow 0.2s; }
.currency-btn:hover { transform: translateY(-2px); }
.currency-btn.active { background: #FF9900; }

/* --- DOMAINS GRID --- */
.domains-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; align-items: stretch; }
.domain-card { background: #fff; padding: 20px 15px; border-radius: 10px; box-shadow: 0 4px 8px rgba(0,0,0,0.1); text-align: center; display: flex; flex-direction: column; justify-content: flex-start; transition: transform 0.3s, box-shadow 0.3s, opacity 0.5s; opacity: 0; max-width:400px; min-height:300px; }
.domain-card.show { opacity: 1; }
.domain-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(37,117,252,0.3); }

/* --- TITRE --- */
.domain-card h3 { margin-bottom: 15px; line-height: 1.3; font-size: 1.4rem; color: #333; transition: font-size 0.3s; }
.small-text { font-size: 1.2rem !important; line-height: 1.3 !important; }

/* --- IMAGE --- */
.domain-card img { display: block; margin: 0 auto 20px auto; max-width: 30%; height: auto; border-radius: 0px; transition: transform 0.3s ease; }
.domain-card:hover img { transform: scale(1.03); }

/* --- PITCH --- */
.auto-pitch { font-size: 0.95rem; color: #2575fc; margin: 12px 0; padding: 0 5px; flex-grow:1; }

/* --- BOUTON INFO --- */
.info-btn { display: inline-block; background: #FF9900; color: #fff; padding: 6px 12px; border-radius: 5px; font-size: 0.8rem; font-weight: bold; margin: 10px 0; transition: transform 0.2s, box-shadow 0.2s, background 0.3s; }
.info-btn:hover { background: #E68A00; transform: translateY(-1px); box-shadow: 0 4px 8px rgba(255,153,0,0.3); }

/* --- PRIX --- */
.domain-card .price { font-size: 0.85rem; color: #333; font-weight: bold; margin-bottom: 8px; }

/* --- BOUTON SEDO --- */
.domain-card a.sedo-link { background: #2575fc; color: #fff; padding: 8px 15px; border-radius: 5px; font-size: 0.85rem; font-weight: bold; display: inline-block; margin-bottom: 15px; transition: transform 0.2s, box-shadow 0.2s; }
.domain-card:hover a.sedo-link { background-color: #0C50C2; }
.domain-card a.sedo-link:hover { background-color: #033487; transform: translateY(-1px); box-shadow: 0 4px 8px rgba(37,117,252,0.3); }

/* --- ABOUT & FOOTER --- */
.about { text-align: center; max-width: 800px; margin: 100px auto 0; }
.about p { margin-bottom: 20px; font-size: 1rem; color: #555; }
.about a { color: #2575fc; font-weight: bold; }
footer { background: #222; color: #fff; text-align: center; padding: 20px 0; margin-top: 40px; font-size: 0.9rem; }


  rateDate { display: none; }
/* --- RESPONSIVE MOBILE CLEAN --- */
@media(max-width:768px){
  .filter-bar { 
    justify-content: center; 
    gap: 10px; 
    flex-direction: column;
  }
  
  .sort-controls {
    width: 100%;
    justify-content: center;
    margin-bottom: 10px;
  }
  
  .sort-dropdown {
    flex: 1;
    max-width: 250px;
  }
  
  rateDate { display: none; }
  
  .search-currency {
    width: 100%;
    justify-content: center;
  }
  
  .search-currency input {
    flex: 1;
    max-width: 200px;
  }
  
  .currency-btn { margin-left: 5px; }
  
  .domain-card { max-width: 90%; min-height: auto; padding: 25px 15px; margin: 0 auto; }
  .domain-card img { max-width: 25%; margin-bottom: 20px; }
  .auto-pitch { font-size: 1rem; margin: 15px 0; padding: 0 10px; }
  .domain-card .price { font-size: 0.9rem; margin-bottom: 10px; }
  .domain-card a.sedo-link { font-size: 0.9rem; margin-bottom: 20px; }
  .info-btn { font-size: 0.85rem; }
}