/* =====================================================
   GUIDESTYLE.CSS — Nameens Guides
   Basé sur pagestyle.css, adapté aux articles longs
   ===================================================== */
/* =========================================================
   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: center;
  position: relative;
  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 #2a2a2a;
  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;
}

/* ── BREADCRUMB ───────────────────────────────────── */
.breadcrumb {
  background: #fff;
  padding: 10px 0 10px 5%;
  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 ARTICLE
   ===================================================== */
.hero {
  background: linear-gradient(160deg, #1117CB, #4289FF);
  color: #fff;
  padding: 50px 0 35px 0;
  text-align: center;
}
.hero h1 {
  font-size: 2rem;
  margin-bottom: 18px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.3;
}
.hero .hero-meta {
  font-size: 0.88rem;
  opacity: 0.8;
  margin-bottom: 10px;
  letter-spacing: 0.03em;
}
.hero .hero-intro {
  font-size: 1.05rem;
  max-width: 700px;
  margin: 0 auto;
  opacity: 0.92;
  line-height: 1.6;
}

/* =====================================================
   ARTICLE LAYOUT
   ===================================================== */
.article-wrapper {
  max-width: 860px;
  margin: 40px auto 60px auto;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.09);
  padding: 48px 56px;
}

/* Table of Contents */
.toc {
  background: #f4f7ff;
  border-left: 4px solid #2575fc;
  border-radius: 0 8px 8px 0;
  padding: 20px 24px;
  margin: 0 0 36px 0;
}
.toc h2 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #2575fc;
  margin-bottom: 12px;
  border-bottom: none;
  padding-bottom: 0;
}
.toc ol {
  margin-left: 18px;
  margin-bottom: 0;
}
.toc ol li {
  margin-bottom: 6px;
  font-size: 0.92rem;
  color: #444;
}
.toc ol li a {
  color: #2575fc;
  transition: color 0.2s;
}
.toc ol li a:hover { color: #FF9900; }

/* =====================================================
   TYPOGRAPHY
   ===================================================== */
.article-wrapper h2 {
  color: #2575fc;
  font-size: 1.55rem;
  margin-top: 44px;
  margin-bottom: 14px;
  border-bottom: 2px solid #e8eeff;
  padding-bottom: 8px;
  line-height: 1.3;
}
.article-wrapper h2:first-child { margin-top: 0; }

.article-wrapper h3 {
  color: #1117CB;
  font-size: 1.15rem;
  margin-top: 28px;
  margin-bottom: 10px;
  font-weight: 700;
}

.article-wrapper p {
  margin-bottom: 16px;
  font-size: 1rem;
  color: #444;
  line-height: 1.75;
}

.article-wrapper ul,
.article-wrapper ol {
  margin-left: 24px;
  margin-bottom: 20px;
}
.article-wrapper li {
  margin-bottom: 10px;
  font-size: 1rem;
  color: #444;
  line-height: 1.65;
}

.article-wrapper strong { color: #1117CB; font-weight: 700; }
.article-wrapper em { color: #666; font-style: italic; }

.article-wrapper a {
  color: #2575fc;
  text-decoration: underline;
  text-decoration-color: rgba(37,117,252,0.3);
  text-underline-offset: 3px;
  transition: color 0.2s, text-decoration-color 0.2s;
}
.article-wrapper a:hover {
  color: #FF9900;
  text-decoration-color: rgba(255,153,0,0.5);
}

/* Neutralise le conflit de couleur sur .cta-button à l'intérieur de .article-wrapper */
.article-wrapper a.cta-button,
.article-footer a.cta-button {
  color: #fff !important;
  text-decoration: none !important;
}
.article-wrapper a.cta-button:hover,
.article-footer a.cta-button:hover {
  color: #fff !important;
  text-decoration: none !important;
}

/* Séparateur */
.article-wrapper hr {
  border: none;
  border-top: 2px solid #e8eeff;
  margin: 40px 0 24px 0;
}

/* =====================================================
   COMPOSANTS RICHES (repris de pagestyle.css)
   ===================================================== */

/* Score cards */
.score-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.score-card {
  background: #f4f7ff;
  padding: 20px 16px;
  border-radius: 8px;
  text-align: center;
  border-top: 3px solid #2575fc;
  transition: box-shadow 0.2s;
}
.score-card:hover { box-shadow: 0 4px 12px rgba(37,117,252,0.15); }
.score-number {
  font-size: 2rem;
  font-weight: 900;
  color: #2575fc;
  display: block;
  margin-bottom: 6px;
  line-height: 1;
}
.score-label { font-size: 0.88rem; color: #555; line-height: 1.3; }

/* Feature boxes */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin: 24px 0;
}
.feature-box {
  background: #f9fafe;
  padding: 20px 18px;
  border-radius: 8px;
  border-left: 4px solid #2575fc;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.feature-box:hover {
  border-color: #FF9900;
  box-shadow: 0 4px 12px rgba(255,153,0,0.1);
}
.feature-box h4 {
  color: #2575fc;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.feature-box p {
  font-size: 0.92rem;
  color: #555;
  margin-bottom: 0;
  line-height: 1.55;
}

/* Tableau de comparaison */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  font-size: 0.95rem;
}
.comparison-table th {
  background: linear-gradient(135deg, #1117CB, #4289FF);
  color: #fff;
  padding: 14px 16px;
  text-align: left;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.comparison-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #eef0f8;
  color: #444;
  vertical-align: top;
}
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr:hover td { background: #f4f7ff; }
.comparison-table td strong { color: #1117CB; }

/* Note / callout box */
.callout {
  background: #fff8ee;
  border-left: 4px solid #FF9900;
  padding: 16px 20px;
  margin: 28px 0;
  border-radius: 0 8px 8px 0;
}
.callout p { margin-bottom: 0; color: #555; font-size: 0.95rem; }
.callout strong { color: #c47200; }

/* Callout bleu (info) */
.callout-info {
  background: #f0f5ff;
  border-left: 4px solid #2575fc;
}
.callout-info p { color: #444; }
.callout-info strong { color: #1117CB; }

/* Checklist stylée */
.checklist {
  list-style: none;
  margin-left: 0;
  padding: 0;
  margin-bottom: 20px;
}
.checklist li {
  padding: 8px 0 8px 32px;
  position: relative;
  border-bottom: 1px solid #f0f0f0;
  font-size: 1rem;
  color: #444;
}
.checklist li:last-child { border-bottom: none; }
.checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 8px;
  color: #2575fc;
  font-weight: 900;
  font-size: 1rem;
}

/* Tag/badge inline */
.tag {
  display: inline-block;
  background: #e8eeff;
  color: #2575fc;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
  margin-left: 4px;
}
.tag-orange { background: #fff3e0; color: #c47200; }

/* Bouton CTA */
.cta-button {
  display: inline-block;
  background: #2575fc;
  color: #fff;
  padding: 12px 28px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 700;
  margin: 20px 0;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(37,117,252,0.25);
}
.cta-button:hover {
  background: #0C50C2;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(37,117,252,0.35);
  color: #fff;
  text-decoration: none;
}

/* Footer d'article */
.article-footer {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 2px solid #e8eeff;
  text-align: center;
}
.article-footer p {
  font-size: 0.92rem;
  color: #777;
}
.article-footer a { color: #2575fc; text-decoration: underline; }

/* =====================================================
   BREADCRUMB
   ===================================================== */
.breadcrumb {
  background: #fff;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  font-size: 0.83rem;
  color: #888;
}
.breadcrumb .container { display: flex; align-items: center; gap: 1px; }
.breadcrumb a { color: #2575fc; }
.breadcrumb a:hover { color: #FF9900; }
.breadcrumb span { color: #bbb; }

/* =====================================================
   FOOTER — identique à style.css principal
   ===================================================== */
/* ── 15. FOOTER & SITEMAP ─────────────────────────── */

/* --- 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; }
/* --- 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
   ===================================================== */
@media (max-width: 768px) {

  .hero h1 { font-size: 1.55rem; padding: 0 10px; }
  .hero .hero-intro { font-size: 0.95rem; padding: 0 10px; }

  .article-wrapper {
    padding: 28px 22px;
    margin: 20px 0 40px 0;
    border-radius: 0;
    box-shadow: none;
  }

  .article-wrapper h2 { font-size: 1.3rem; margin-top: 32px; }
  .article-wrapper h3 { font-size: 1.05rem; }
  .article-wrapper p, .article-wrapper li { font-size: 0.97rem; }

  .score-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: 1fr; }

  .comparison-table { font-size: 0.85rem; }
  .comparison-table th, .comparison-table td { padding: 10px 12px; }

  nav {
    top: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 4px;
  }
  nav > a, nav > .nav-item > a.nav-link {
    margin: 0 6px;
    font-size: 0.85em;
  }
  .dropdown {
    left: auto; right: 0;
    transform: translateX(0);
    min-width: 240px;
  }
  .dropdown::before, .dropdown::after {
    left: auto; right: 28px; transform: none;
  }
  .nav-item:hover .dropdown { transform: translateX(0); }
}

@media (max-width: 480px) {
  .score-grid { grid-template-columns: 1fr; }
  .article-wrapper { padding: 20px 16px; }
}
