/* pagestyle.css */

/* =========================================================
   NAMEENS — Shared Styles for Category Pages
   v4 — Lato + Tenor Sans, header identique index/napages
   ========================================================= */

/* ── 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: 2.1rem; margin-bottom: 20px; }
.hero p { font-size: 1.1rem; margin-bottom: 30px; max-width: 800px; margin-left: auto; margin-right: auto; color: #fff; text-align: center; }

/* --- PRICE DISPLAY --- */
.big-price-display { background: rgba(255,255,255,0.15); padding: 20px; border-radius: 10px; margin: 20px auto; max-width: 400px; }
.big-price-display .price-label { font-size: 0.9rem; opacity: 0.9; margin-bottom: 5px; }
.big-price-display .price-value { font-size: 2.5rem; font-weight: bold; }

/* --- CONTENT SECTION --- */
.content-section { background: #fff; padding: 40px; border-radius: 10px; box-shadow: 0 4px 8px rgba(0,0,0,0.1); margin: 40px auto; max-width: 900px; }

/* --- IMAGES --- */
.hero-image { width: 100%; border-radius: 10px; margin: 30px 0; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }

h2 { color: #2575fc; font-size: 1.8rem; margin-top: 30px; margin-bottom: 15px; border-bottom: 2px solid #2575fc; padding-bottom: 10px; }
h2:first-child { margin-top: 0; }
h3 { color: #1117CB; font-size: 1.4rem; margin-top: 25px; margin-bottom: 12px; }

p { margin-bottom: 15px; text-align: left; font-size: 1rem; color: #555; }
ul, ol { margin-left: 30px; margin-bottom: 20px; }
li { margin-bottom: 10px; font-size: 1rem; color: #555; }

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

/* --- BRANDABILITY SCORES --- */
.brandability-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 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; }

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

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

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

/* --- CTA BUTTON --- */
.cta-button { display: inline-block; background: #2575fc; color: #fff; padding: 12px 30px; border-radius: 5px; font-size: 1.1rem; font-weight: 700; 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); }

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


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

  /* --- HERO --- */
  .hero h1 { font-size: 1.8rem; }
  .hero p { font-size: 1rem; padding: 0 20px; }
  .price-display .price-value { font-size: 2rem; }

  /* --- CONTENT --- */
  .content-section { padding: 25px 20px; margin: 20px 15px; }
  h2 { font-size: 1.5rem; }
  ul, ol { margin-left: 20px; }
  .brandability-grid, .feature-boxes { grid-template-columns: 1fr; }

  /* --- COMPARISON TABLE --- */
  .comparison-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: calc(100%);
    min-width: 0;
    font-size: 0.85rem;
  }
  .comparison-table th,
  .comparison-table td {
    padding: 10px 12px;
    white-space: nowrap;
  }

  /* --- SITEMAP --- */
  .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) {

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