/* =========================================================
   NAIMZ — Shared Styles for Category Pages
   v3 — aligned with style.css + pagestyle.css
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

/* ── RESET & BASE ─────────────────────────────────── */
*, *::before, *::after {
  margin: 0; padding: 0;
  box-sizing: border-box;
  font-family: 'Roboto', 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; }

/* ── HEADER — identique au mainheader de style.css ── */
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;
  align-items: flex-end; width: 100%;
}
header .logo {
  display: flex; align-items: center; font-size: 0.9em;
}
header .logo img {
  margin-right: 8px; position: relative; top: 8px;
}

/* ── NAV — identique à style.css ─────────────────── */
nav {
  display: flex; align-items: flex-start;
  position: relative; top: 12px; font-size: 0.9em;
}
nav a {
  margin: 0 10px; color: #fff; transition: color 0.3s;
}
nav a:hover, nav a.active { color: #FF9900; }

/* ── 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); }
.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: #2a2a2a;
  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;
}
.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 #2a2a2a; z-index: 1;
}
.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: #FF9900; 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: #E68A00; background: transparent; padding-left: 18px; }

/* ── BREADCRUMB — marge gauche ───────────────────── */
.breadcrumb {
  background: #fff;
  padding: 10px 0 10px 5%;   /* marge gauche alignée sur .container */
  border-bottom: 1px solid #e0e0e0;
  font-size: 0.85rem; color: #888;
}
.breadcrumb a { color: #2575fc; transition: color 0.2s; }
.breadcrumb a:hover { color: #FF9900; }
.breadcrumb span { color: #333; font-weight: bold; }
.breadcrumb-sep { color: #ccc; font-size: 0.8rem; margin: 0 4px; }

/* ── HERO ────────────────────────────────────────── */
.hero {
  background: linear-gradient(160deg, #1117CB, #4289FF);
  color: #fff; padding: 50px 0 30px; text-align: center;
}
.hero .container { display: flex; flex-direction: column; align-items: center; }
.hero h1 { font-size: 2.1rem; margin-bottom: 15px; line-height: 1.2; }
.hero h1 em { font-style: italic; color: #FF9900; }
.hero-desc {
  font-size: 1.1rem; max-width: 800px;
  margin: 0 auto 20px; color: #fff; text-align: center;
}
.hero-tag {
  font-size: 0.8rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(255,255,255,0.75); margin-bottom: 10px;
}
.hero-count {
  background: rgba(255,255,255,0.15); padding: 12px 25px;
  border-radius: 8px; text-align: center; min-width: 160px; margin-top: 15px;
}
.hero-count .num { font-size: 2.2rem; font-weight: bold; display: block; line-height: 1; }
.hero-count .label { font-size: 0.8rem; opacity: 0.85; text-transform: uppercase; letter-spacing: 0.08em; }

/* ── FILTER BAR — marges haut / bas / gauche ─────── */
.filter-bar {
  position: sticky; top: 62px; z-index: 900;
  background: #fff; box-shadow: 0 1px 7px rgba(0,0,0,0.15);
  /* marges internes : haut 14px, droite 12px, bas 14px, gauche alignée */
  padding: 14px 12px 14px 5%;
  margin-bottom: 30px;
  transition: all 0.3s ease;
  display: flex; flex-wrap: wrap;
  justify-content: space-between; align-items: center; gap: 10px;
  border-bottom: 3px solid #2575fc;
}
.filter-label { font-weight: bold; font-size: 0.9rem; color: #333; }
.filter-btns { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.filter-btn {
  background: #fff; color: #333; border: 2px solid #e0e0e0;
  padding: 6px 14px; font-size: 0.88rem; border-radius: 5px; cursor: pointer;
  transition: all 0.2s; font-family: 'Roboto', Arial, sans-serif;
}
.filter-btn:hover { border-color: #2575fc; color: #2575fc; }
.filter-btn.active { background: #2575fc; border-color: #2575fc; color: #fff; }
.sort-controls { display: flex; align-items: center; gap: 10px; }
.sort-controls label { font-weight: bold; font-size: 0.95rem; color: #333; }
.sort-dropdown {
  padding: 7px 14px; border: 2px solid #2575fc; border-radius: 5px;
  font-size: 0.9rem; background: #fff; color: #333;
  cursor: pointer; outline: none; transition: border-color 0.3s;
  font-family: 'Roboto', Arial, sans-serif;
}
.sort-dropdown:hover, .sort-dropdown:focus {
  border-color: #FF9900; box-shadow: 0 0 8px rgba(255,153,0,0.3);
}

/* ── DOMAINS GRID ────────────────────────────────── */
.grid-section { max-width: 1200px; width: 90%; margin: 0 auto 40px; }
.domain-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; min-height: 280px;
}
.domain-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(37,117,252,0.25);
  /* NE PAS changer background — reste blanc */
}
.domain-name {
  font-size: 1.4rem; font-weight: bold; color: #333;
  margin-bottom: 10px; display: block; transition: color 0.2s; line-height: 1.3;
}
.domain-card:hover .domain-name { color: #2575fc; }
.domain-tld { font-size: 0.82rem; color: #888; margin-bottom: 8px; }
.domain-tags { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; margin-bottom: 10px; }
.tag {
  background: #f0f4ff; color: #2575fc;
  font-size: 0.72rem; padding: 3px 9px;
  border-radius: 20px; border: 1px solid #ccd9ff;
}
.domain-desc {
  font-size: 0.92rem; color: #2575fc;
  margin: 10px 0; padding: 0 5px; flex-grow: 1; line-height: 1.55;
}
.domain-footer {
  margin-top: auto; padding-top: 12px; border-top: 1px solid #eee;
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; flex-wrap: wrap;
}
.domain-price { font-size: 1.1rem; color: #2575fc; font-weight: bold; }
.domain-cta {
  background: #2575fc; color: #fff; padding: 6px 14px;
  border-radius: 5px; font-size: 0.9rem; font-weight: bold;
  transition: background 0.3s, transform 0.2s, box-shadow 0.2s;
  display: inline-block;
}
.domain-cta:hover {
  background: #0C50C2; transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(37,117,252,0.3);
}

/* ── INTRO CARD ──────────────────────────────────── */
.intro-card {
  background: #fff; padding: 30px 40px; border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  max-width: 1200px; width: 90%; margin: 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: 15px;
  padding-bottom: 10px; border-bottom: 2px solid #2575fc;
}
.intro-card p { font-size: 1rem; color: #555; margin-bottom: 12px; text-align: left; }
.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; color: #555; line-height: 1.65; margin-bottom: 0.75rem; }

/* ── SEO CONTENT SECTION ─────────────────────────── */
.content-section {
  background: #fff; padding: 40px; border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  max-width: 1200px; width: 90%; margin: 0 auto 40px;
}
.content-section h2 {
  color: #2575fc; font-size: 1.8rem;
  margin-top: 30px; margin-bottom: 15px;
  border-bottom: 2px solid #2575fc; padding-bottom: 10px;
}
.content-section h2:first-child { margin-top: 0; }
.content-section h3 { color: #1117CB; font-size: 1.4rem; margin-top: 25px; margin-bottom: 12px; }
.content-section p { margin-bottom: 15px; text-align: justify; font-size: 1rem; color: #555; line-height: 1.7; }
.content-section ul, .content-section ol { margin-left: 30px; margin-bottom: 20px; }
.content-section li { margin-bottom: 10px; font-size: 1rem; color: #555; }
.content-section strong { color: #2575fc; font-weight: bold; }
.content-section a { color: #2575fc; }
.content-section a:hover { color: #FF9900; }

/* ── SEO TWO-COLUMN SECTION ──────────────────────── */
.seo-section {
  max-width: 1200px; width: 90%; margin: 0 auto 40px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 25px;
}
.seo-section .content-section { width: 100%; margin: 0; }

/* ── FEATURE BOXES ───────────────────────────────── */
.feature-boxes { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin: 25px 0; }
.feature-box { background: #f8f9fa; padding: 20px; border-radius: 8px; border-left: 4px solid #2575fc; }
.feature-box h4 { color: #2575fc; font-size: 1.1rem; margin-bottom: 10px; }
.feature-box p { font-size: 0.92rem; color: #555; }

/* ── SCORE CARDS ─────────────────────────────────── */
.brandability-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; margin: 25px 0; }
.score-card { background: #f8f9fa; padding: 20px; border-radius: 8px; text-align: center; border-top: 3px solid #2575fc; }
.score-number { font-size: 2.2rem; font-weight: bold; color: #2575fc; display: block; margin-bottom: 5px; }
.score-label { font-size: 0.95rem; color: #666; }

/* ── NOTE BOX ────────────────────────────────────── */
.note { background: #fff3cd; border-left: 4px solid #FF9900; padding: 15px; margin-top: 25px; border-radius: 4px; box-shadow: 0 2px 5px rgba(0,0,0,0.08); }
.note p { margin-bottom: 0; color: #555; }

/* ── CTA BUTTON ──────────────────────────────────── */
.cta-button {
  display: inline-block; background: #2575fc; color: #fff;
  padding: 12px 30px; border-radius: 5px; font-size: 1.1rem; font-weight: bold;
  margin: 20px 0; transition: transform 0.2s, box-shadow 0.2s, background 0.3s;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.cta-button:hover { background: #0C50C2; transform: translateY(-2px); box-shadow: 0 4px 10px rgba(37,117,252,0.3); }

/* ── CATEGORY INDEX GRID — gap + hover lisible ───── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;                      /* espace entre cartes */
  max-width: 1200px; width: 90%; margin: 30px auto 40px;
}
.cat-card {
  background: #fff; border-radius: 10px; padding: 25px 20px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  text-decoration: none; display: flex; flex-direction: column; gap: 10px;
  transition: transform 0.3s, box-shadow 0.3s;
  border-top: 4px solid #2575fc;
  color: #333;                    /* texte reste foncé */
}
/* ─ HOVER : léger lift seulement, PAS de fond noir ─ */
.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(37,117,252,0.22);
  background: #fff;               /* force blanc — annule tout héritage */
}
.cat-icon { font-size: 2rem; line-height: 1; }
.cat-count { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: #FF9900; font-weight: bold; }
.cat-title { font-size: 1.4rem; font-weight: bold; color: #1117CB; }
.cat-desc { font-size: 0.9rem; color: #555; line-height: 1.6; flex-grow: 1; }
.cat-examples { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.cat-examples span {
  background: #f0f4ff; color: #2575fc;
  font-size: 0.72rem; padding: 3px 9px;
  border-radius: 20px; border: 1px solid #ccd9ff;
}
.cat-arrow { font-size: 0.85rem; color: #2575fc; font-weight: bold; margin-top: 5px; transition: padding-left 0.2s; }
.cat-card:hover .cat-arrow { padding-left: 6px; }

/* ── RELATED CATEGORIES ──────────────────────────── */
.related-section { max-width: 1200px; width: 90%; margin: 0 auto 40px; }
.related-section h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: #888; margin-bottom: 15px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 15px; }
.related-card {
  background: #fff; padding: 18px 20px; border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08); text-decoration: none;
  display: flex; flex-direction: column; gap: 5px;
  border-left: 3px solid #2575fc; transition: transform 0.2s, box-shadow 0.2s;
}
.related-card:hover { transform: translateY(-2px); box-shadow: 0 6px 15px rgba(37,117,252,0.15); background: #fff; }
.related-card .rcat-icon { font-size: 1.5rem; }
.related-card .rcat-name { font-size: 0.9rem; font-weight: bold; color: #1117CB; }
.related-card .rcat-count { font-size: 0.75rem; color: #888; }

/* ── COMPARISON TABLE ────────────────────────────── */
.comparison-table { width: 100%; border-collapse: collapse; margin: 25px 0; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.comparison-table th { background: linear-gradient(135deg, #1117CB, #4289FF); color: #fff; padding: 15px; text-align: left; font-size: 1rem; }
.comparison-table td { padding: 12px 15px; border-bottom: 1px solid #e0e0e0; font-size: 0.95rem; background: #fff; }
.comparison-table tr:hover td { background: #f8f9fa; }
.comparison-table tr:last-child td { border-bottom: none; }

/* ── SITEMAP ─────────────────────────────────────── */
.sitemap-toggle-container { background: #2a2a2a; padding: 15px 20px; text-align: center; border-top: 1px solid #444; }
.sitemap-toggle-btn {
  background: #444; color: #fff; border: 2px solid #666;
  padding: 10px 20px; font-size: 0.85rem; border-radius: 5px; cursor: pointer;
  transition: all 0.3s ease; display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Roboto', Arial, sans-serif;
}
.sitemap-toggle-btn:hover { background: #555; border-color: #2575fc; transform: translateY(-1px); }
.sitemap-toggle-btn .toggle-icon { font-size: 0.7rem; transition: transform 0.3s ease; }
.sitemap { background: #1a1a1a; padding: 30px 20px; border-top: 2px solid #333; }
.sitemap-container { max-width: 1200px; 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; transition: color 0.3s ease, padding-left 0.2s ease; padding: 3px 0; line-height: 1.4; }
.sitemap-column a:hover { color: #2575fc; padding-left: 5px; }

/* ── FOOTER ──────────────────────────────────────── */
footer { background: #333; color: #fff; text-align: center; font-size: 0.9rem; }
.footer-main { padding: 20px; border-bottom: 1px solid #444; }
.footer-main a { margin: 0 15px; color: #fff; font-weight: bold; font-size: 1rem; transition: color 0.3s; }
.footer-main a:hover { color: #FF9900; }

/* ── UTILITIES ───────────────────────────────────── */
.highlight { color: #2575fc; font-weight: bold; }
.orange { color: #FF9900; font-weight: bold; }

/* ── ANIMATIONS ──────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.domain-card { animation: fadeInUp 0.4s ease both; }
.domain-card:nth-child(2) { animation-delay: 0.05s; }
.domain-card:nth-child(3) { animation-delay: 0.10s; }
.domain-card:nth-child(4) { animation-delay: 0.15s; }
.domain-card:nth-child(5) { animation-delay: 0.20s; }
.domain-card:nth-child(6) { animation-delay: 0.25s; }

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 768px) {
  header { padding: 15px 0; }
  nav { top: 8px; }
  nav a { margin: 0 6px; font-size: 0.82em; }
  .hero { padding: 35px 0 25px; }
  .hero h1 { font-size: 1.7rem; }
  .hero-desc { font-size: 1rem; padding: 0 20px; }
  .filter-bar { flex-direction: column; align-items: stretch; padding-left: 15px; }
  .filter-btns { justify-content: center; }
  .sort-controls { width: 100%; justify-content: center; }
  .sort-dropdown { flex: 1; max-width: 250px; }
  .content-section { padding: 25px 20px; margin: 15px; width: auto; }
  .seo-section { grid-template-columns: 1fr; }
  .intro-card { padding: 20px; }
  .intro-card h2 { font-size: 1.4rem; }
  .intro-columns { flex-direction: column; gap: 1.5rem; }
  .domain-card { min-height: auto; padding: 20px 15px; }
  .cat-grid { grid-template-columns: 1fr; gap: 20px; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .dropdown { left: auto; right: 0; transform: translateX(0); min-width: 240px; }
  .dropdown::before, .dropdown::after { left: auto; right: 28px; transform: none; }
  .sitemap { padding: 20px 10px; }
  .sitemap-container { grid-template-columns: repeat(2, 1fr); gap: 15px; }
  .sitemap-column a { font-size: 10px; }
  .breadcrumb { padding-left: 15px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.5rem; }
  .related-grid { grid-template-columns: 1fr; }
  .sitemap-container { grid-template-columns: 1fr; }
}
