/* pagestyle.css */

/* ── 1. FONTS & RESET ─────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Tenor+Sans&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@100;300;400;700;900&display=swap');

*, *::before, *::after {
  margin: 0; padding: 0;
  box-sizing: border-box;
  font-family: 'Lato', Arial, sans-serif;
}
body {
  line-height: 1.6;
  background-color: #F2F2F2;
  color: #333;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { text-decoration: none; color: inherit; }
img { border-radius: 4px; max-width: 100%; height: auto; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; }


/* ── 2. HEADER ────────────────────────────────────── */

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #778CA8;
  color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 20px 0;
}

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

header .logo,
header .logo a {
  font-family: "Tenor Sans", sans-serif;
  font-weight: 400;
  font-style: normal;
  display: flex;
  font-size: 1.2em;
  color: #fff;
}

header .logo img {
  margin-left: 12px;
  margin-right: 12px;
  position: relative;
}


/* ── 3. NAV ───────────────────────────────────────── */

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

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

nav a:hover,
nav a.active { color: #FF9900; }


/* ── 4. DROPDOWN ──────────────────────────────────── */

.nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-link .arrow {
  display: inline-block;
  margin-left: 4px;
  font-size: 0.65em;
  vertical-align: middle;
  transition: transform 0.25s ease;
  position: relative;
  top: -1px;
}

.nav-item:hover .arrow { transform: rotate(180deg); }

/* Pont invisible — maintient le hover entre le lien et le menu */
.nav-item::after {
  content: '';
  position: absolute;
  top: 100%;
  left: -10px; right: -10px;
  height: 16px;
  background: transparent;
  z-index: 1999;
}

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 280px;
  background: #778CA8;
  border-top: 3px solid #2575fc;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  padding: 14px 0 8px;
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

/* Triangle décoratif */
.dropdown::before {
  content: '';
  position: absolute;
  top: 3px; left: 50%;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid #778CA8;
  z-index: 1;
}

/* Liseré bleu */
.dropdown::after {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-bottom: 9px solid #2575fc;
  z-index: 0;
}

.nav-item:hover .dropdown {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

.dropdown a {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 18px;
  color: #ccc;
  font-size: 0.88em;
  line-height: 1.4;
  transition: background 0.15s, color 0.15s, padding-left 0.15s;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  margin: 0 10px;
  border-radius: 4px;
}

.dropdown a:last-child { border-bottom: none; }

.dropdown a:hover {
  background: rgba(37, 117, 252, 0.15);
  color: #fff;
  padding-left: 22px;
}

.dropdown a .icon { font-size: 1.1em; flex-shrink: 0; margin-top: 1px; }

.dropdown a .text strong {
  display: block;
  color: #fff;
  font-size: 0.9em;
  font-weight: 600;
  margin-bottom: 2px;
}

.dropdown a .text span { color: #888; font-size: 0.8em; }
.dropdown a:hover .text span { color: #aaa; }

.dropdown .dropdown-footer {
  display: block;
  text-align: center;
  padding: 10px 18px 8px;
  font-size: 0.8em;
  color: #778CA8;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin: 4px 0 0;
  border-radius: 0;
  transition: color 0.15s;
}

.dropdown .dropdown-footer:hover {
  color: #42ADFF;
  background: transparent;
  padding-left: 18px;
}

/* --- 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; 
}


/* =====================================================
   DROPDOWN — nouveau code
   ===================================================== */

/* Conteneur du lien + sous-menu */
.nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* Flèche indicatrice */
.nav-link .arrow {
  display: inline-block;
  margin-left: 4px;
  font-size: 0.65em;
  vertical-align: middle;
  transition: transform 0.25s ease;
  position: relative;
  top: -1px;
}

/* Rotation de la flèche au survol */
.nav-item:hover .arrow {
  transform: rotate(180deg);
}

/* 
  CORRECTIF PRINCIPAL :
  On supprime le gap entre le lien et le dropdown.
  À la place, on utilise un pseudo-élément ::before invisible
  qui "comble" l'espace et maintient le hover actif.
*/
.dropdown {
  display: none;
  position: absolute;
  top: 100%;           /* ← collé directement sous le nav-item */
  left: 50%;
  transform: translateX(-50%);
  min-width: 280px;
  background: #778CA8;
  border-top: 3px solid #2575fc;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  padding: 8px 0;
  z-index: 2000;

  /* Décalage visuel par padding-top au lieu de top+gap */
  padding-top: 14px;

  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

/* 
  PONT INVISIBLE : 
  Ce pseudo-élément couvre l'espace entre le lien et le menu.
  La souris reste "dans" .nav-item même dans cette zone.
*/
.nav-item::after {
  content: '';
  position: absolute;
  top: 100%;
  left: -10px;
  right: -10px;
  height: 16px;        /* hauteur du "pont" — doit couvrir le padding-top */
  background: transparent;
  z-index: 1999;
}

/* Triangle décoratif — maintenant dans le padding-top du dropdown */
.dropdown::before {
  content: '';
  position: absolute;
  top: 3px;            /* juste sous la bordure bleue */
  left: 50%;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid #778CA8;
  z-index: 1;
}

/* Liseré bleu au-dessus du triangle */
.dropdown::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-bottom: 9px solid #2575fc;
  z-index: 0;
}

/* Affichage au survol */
.nav-item:hover .dropdown {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

/* Items du sous-menu */
.dropdown a {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 18px;
  color: #ccc;
  font-size: 0.88em;
  line-height: 1.4;
  transition: background 0.15s, color 0.15s, padding-left 0.15s;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  margin: 0 10px;       /* ← petit indent pour ne pas toucher les bords */
  border-radius: 4px;
}

.dropdown a:last-child {
  border-bottom: none;
}

.dropdown a:hover {
  background: rgba(37, 117, 252, 0.15);
  color: #fff;
  padding-left: 22px;
}

/* Icône emoji à gauche de chaque article */
.dropdown a .icon {
  font-size: 1.1em;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Titre + description dans le dropdown */
.dropdown a .text strong {
  display: block;
  color: #fff;
  font-size: 0.9em;
  font-weight: 600;
  margin-bottom: 2px;
}

.dropdown a .text span {
  color: #888;
  font-size: 0.8em;
}

.dropdown a:hover .text span {
  color: #aaa;
}

/* Lien "View all guides" en bas */
.dropdown .dropdown-footer {
  display: block;
  text-align: center;
  padding: 10px 18px 8px;
  font-size: 0.8em;
  color: #778CA8;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin: 4px 0 0 0;   /* pas d'indent sur ce lien */
  border-radius: 0;
  transition: color 0.15s;
}

.dropdown .dropdown-footer:hover {
  color: #42ADFF;
  background: transparent;
  padding-left: 18px;
}





/* --- 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 32px 8px 12px;
  border: 2px solid #2575fc;
  border-radius: 6px;
  font-size: 0.9rem;
  background: #fff;
  color: #333;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%232575fc' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  transition: border-color 0.2s;
}

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

.sort-dropdown:focus {
  border-color: #778CA8;
  box-shadow: 0 0 8px rgba(12, 7, 0, 0.3);
}

.search-currency { display: flex; gap: 3px; flex-wrap: wrap; }
.search-currency input {
  padding: 8px 12px;
  border-radius: 6px;
  border: 2px solid #2575fc;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
  flex: 1;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.search-currency input:focus {
  border-color: #778CA8;
  box-shadow: 0 0 8px rgba(12, 7, 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: #778CA8; }

/* --- 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: 10px 10px; 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:410px; 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: 20px auto 20px auto;
  max-width: 16%;
  height: auto;
  border-radius: 0px;
  transition: transform 0.3s ease, opacity 0.3s ease; /* opacity ajouté à la transition */
  opacity: 0.35; /* ← réglez cette valeur : 0 = invisible, 1 = pleine opacité */
}

.domain-card:hover img {
  transform: scale(1.6);
  opacity: 1; /* ← pleine opacité au survol (optionnel) */
}


/* --- 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: #778CA8; color: #fff; padding: 6px 12px; border-radius: 4px; font-size: 0.9rem;  margin: 10px auto 0 auto; transition: transform 0.2s, box-shadow 0.2s, background 0.3s; width:90%; min-width: 145px }
.info-btn:hover { background: #42ADFF; transform: translateY(-1px); box-shadow: 0 4px 8px rgba(255,153,0,0.3); }
/* --- BOUTONS CÔTE À CÔTE --- */ 
/*.card-btn-row {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap; 
  margin-top: 8px;
}

.card-btn-row .info-btn,
.card-btn-row .sedo-link {
  flex: 1;
  min-width: 0;
  text-align: center;
  margin: 0;
}*/
/* --- PRIX --- */
.domain-card .price { font-size: 1rem; color: #778CA8;  margin-bottom: 10px; margin-top: 4px; } 

/* --- BOUTON SEDO --- */
.domain-card a.sedo-link { background: #2575fc; color: #fff; padding: 6px 12px; border-radius: 4px; font-size: 0.9rem;  display: inline-block; margin: 5px auto 0 auto; transition: transform 0.2s, box-shadow 0.2s; width:90%; min-width: 145px }
.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; }

/* --- INTRO CARD --- */
.intro-card {
  background: #fff;
  padding: 30px 40px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  margin: 20px auto 30px auto;
  text-align: center;
  transition: box-shadow 0.3s;
}

.intro-card:hover {
  box-shadow: 0 8px 20px rgba(37,117,252,0.2);
}

.intro-card h2 {
  font-size: 1.8rem;
  color: #2575fc;
  margin-bottom: 20px;
}

.intro-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 15px;
}

.intro-card p:last-child {
  margin-bottom: 0;
}

.intro-card a {
  color: #2575fc;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s;
}

.intro-card a:hover {
  color: #778CA8;
}

/* --- INTRO COLUMNS (3-col layout inside intro-card) --- */
.intro-columns {
  display: flex;
  gap: 2.5rem;
  margin-top: 1.5rem;
  text-align: left;
}

.intro-col {
  flex: 1;
  border-top: 3px solid #2575fc;
  padding-top: 1rem;
}

.intro-col h3 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #2575fc;
  margin-bottom: 0.75rem;
}

.intro-col p {
  font-size: 0.93rem;
  line-height: 1.65;
  color: #555;
  margin-bottom: 0.75rem;
}

.intro-col p:last-child {
  margin-bottom: 0;
}

rateDate { display: none; }
  
/* --- FOOTER STYLES --- */
/* ── 15. FOOTER & SITEMAP ─────────────────────────── */

footer {
  background: #778CA8;
  color: #fff;
  text-align: center;
  padding: 20px 0;
  margin-top: 40px;
  font-size: 0.9rem;
}

footertitle { color: #fff; padding: 50px 0; text-align: left; font-size: 2rem; }

footer a {
  margin: 0 15px; color: #fff;
  padding: 12px; background: transparent;
    color: #fff;
transition: font-size 0.3s;
}
footer a:hover { border: 1px solid #fff; border-radius: 20px; border-color: #fff;   color: #fff; font-size: 1.5rem; } 


.footer-main { padding: 20px; }
.footer-main a { margin: 0 15px; color: #fff; transition: font-size 0.3s; }
.footer-main a:hover { color: #fff; font-size: 1.5rem; }

.footbox { width: 100%; border-bottom: 1px solid #fff; margin: 50px 0; text-align: left; }

.sitemap-toggle-container { background: #778CA8; padding: 15px 20px; text-align: center;  }
.sitemap-toggle-btn {
  background: transparent; color: #fff; border: 1px solid #fff;
  padding: 8px 20px; font-size: 0.85rem; border-radius: 20px;
  cursor: pointer; font-family: 'Lato', Arial, sans-serif;
  transition: background 0.2s ease, border-color 0.2s ease;
  display: inline-flex; align-items: center; gap: 10px;
}
.sitemap-toggle-btn:hover { background: #e67e22; border-color: #e67e22; }
.sitemap-toggle-btn .toggle-icon { font-size: 0.7rem; transition: transform 0.3s ease; }

.sitemap { background: #778CA8; padding: 30px 20px; }
.sitemap-container { max-width: 1200px; width: 90%; margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.sitemap-column { display: flex; flex-direction: column; gap: 6px; }
.sitemap-column a {
  color: #fff; font-weight: bold; font-size: 14px;
  display: inline-block; border-radius: 20px; padding: 4px 12px; line-height: 1.4;
  transition: background 0.2s ease, color 0.2s ease;
}
.sitemap-column a:hover { background: #e67e22; color: #fff; padding-left: 12px; }


/* ── 16. UTILITIES ────────────────────────────────── */

.highlight     { color: #2575fc; font-weight: bold; }
.red-highlight { color: #e74c3c; font-weight: bold; }
.orange        { color: #FF9900; font-weight: bold; }

  
/* =====================================================
   RESPONSIVE — 768px
   ===================================================== */
@media(max-width: 768px) {

  /* --- HEADER --- */
  header {
    padding: 12px 0;
  }

  header .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 0 15px;
  }


  nav {
    top: 0;
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    padding-bottom: 4px;
    gap: 4px;
  }

  nav a {
    margin: 0 6px;
    font-size: 0.82em;
    flex-shrink: 0;
  }

  .nav-item {
    flex-shrink: 0;
  }

  .dropdown {
    left: 0;
    right: auto;
    transform: translateX(0);
    min-width: 220px;
  }

  .dropdown::before,
  .dropdown::after {
    left: 28px;
    transform: none;
  }

  /* --- FILTER BAR --- */
  .filter-bar {
    justify-content: center;
    gap: 10px;
    flex-direction: column;
    padding: 12px 10px;
  }

  .sort-controls {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 10px;
  }

  .sort-controls label {
    font-size: 0.85rem;
  }

  .sort-dropdown {
    flex: 1;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .search-currency {
    width: 100%;
    justify-content: center;
  }

  .search-currency input {
    flex: 1;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  .currency-btn {
    margin-left: 5px;
  }

  /* --- INTRO CARD --- */
  .intro-card {
    padding: 20px;
    margin-bottom: 25px;
  }

  .intro-card h2 {
    font-size: 1.4rem;
  }

  .intro-card p {
    font-size: 0.95rem;
  }

  .intro-columns {
    flex-direction: column;
    gap: 1.5rem;
  }

  .intro-col {
    border-top: 3px solid #2575fc;
    padding-top: 0.75rem;
  }

  /* --- DOMAIN CARDS --- */
  .domain-card {
    width: 90%;
    min-height: auto;
    padding: 25px 15px;
    margin: 0 auto;
  }

  .domain-card img {
    max-width: 20%;
    margin-bottom: 20px;
    opacity:1;
  }

  .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;
  }

  /* --- FOOTER & SITEMAP --- */
  .footer-main {
    font-size: 0.75rem;
    padding: 15px;
  }

  .sitemap-toggle-container {
    padding: 12px 10px;
  }

  .sitemap-toggle-btn {
    font-size: 0.8rem;
    padding: 8px 15px;
  }

  .sitemap {
    padding: 20px 10px;
  }

  .sitemap-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    column-gap: 15px;
  }

  .sitemap-column a {
    font-size: 10px;
    padding: 3px 0;
  }
}


/* =====================================================
   RESPONSIVE — 480px
   ===================================================== */
@media(max-width: 480px) {

  /* --- FOOTER & SITEMAP --- */
  .footer-main {
    font-size: 0.7rem;
    padding: 10px;
  }

  .sitemap-toggle-btn {
    font-size: 0.75rem;
    padding: 7px 12px;
  }

  .sitemap-container {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .sitemap-column {
    gap: 6px;
  }

  .sitemap-column a {
    font-size: 10px;
    padding: 3px 0;
  }
}
