/* --- 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 --- */
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; /* Espace entre le logo et la navigation */
  align-items: flex-end; /* Aligner tout au bas */
  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; /* Espace entre le logo et le nav */
  width: 100%; /* Prendre toute la largeur du header */
}

header .logo {
  display: flex;
  align-items: center; /* Aligner l'image et le texte du logo sur la même ligne */
  font-size: 0.9em;
}


header .logo img {
  margin-right: 8px; /* déjà existant */
  position: relative; /* pour pouvoir déplacer l'image */
  top: 8px; /* ajuste cette valeur selon le décalage désiré */
}

nav {
  display: flex;
  align-items: flex-start; /* Aligner les liens de navigation au bas */
  position: relative; /* pour pouvoir déplacer */
  Top:12px;
    font-size: 0.9em;
}

nav a {
  margin: 0 10px;
  color: #fff;
  /*font-weight: bold;*/
  text-decoration: none; /* Enlever la décoration des liens */
}


/* --- 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 --- */
.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; }
.filter-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-buttons button { background: #2575fc; color: #fff; border: none; padding: 8px 15px; border-radius: 5px; font-weight: bold; cursor: pointer; box-shadow: 0 2px 5px rgba(0,0,0,0.2); transition: background 0.3s, transform 0.2s, box-shadow 0.2s; font-size: 0.9rem; min-width: 120px; margin: 5px; 2px; }
.filter-buttons button:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,0.25); }
.filter-buttons button.active { background: #FF9900; }
.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; }

/* --- RESPONSIVE MOBILE CLEAN --- */
@media(max-width:768px){
  .filter-bar {justify-content: center; gap: 6px;}
  .filter-buttons {gap: 6px;}
  .filter-buttons button {display: none; min-width: auto; padding: 8px 10px;}
  .filter-buttons button[data-filter="all"], .filter-buttons button[data-filter="com"], .filter-buttons button[data-filter="short"]{display: inline-block;}
  #rateDate { display: none; }
  .search-currency {margin-left: 6px; justify-content: flex-end;}
  .currency-btn { margin-left: 0; }
  
  .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; }
}