/* ═══════════════════════════════════════════════════
   shared.css — Mathis Leymarie · Consultant SEO/GEO
   ═══════════════════════════════════════════════════ */

:root {
  --bg: #0A0A0A;
  --card: #141414;
  --border: #232323;
  --accent: #C8FF00;
  --text: #FFFFFF;
  --muted: #777777;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ══ NAV ══════════════════════════════════════════ */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 56px;
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  align-items: center;
}
.nav-links > li > a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 5px;
}
.nav-links > li > a:hover { color: var(--text); }
.nav-links > li > a.active {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 5px;
}
.nav-cta {
  background: var(--text);
  color: #000;
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--accent); }

/* ══ DROPDOWN ════════════════════════════════════ */
.has-dropdown { position: relative; }
.chevron {
  transition: transform 0.2s ease;
  flex-shrink: 0;
  color: rgba(255,255,255,0.45);
}
.has-dropdown:hover > a .chevron { transform: rotate(180deg); color: var(--text); }

.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: #141414;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 14px;
  padding: 6px;
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 600;
  box-shadow: 0 24px 64px rgba(0,0,0,0.7);
  pointer-events: none;
}
/* Triangle */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  width: 10px;
  height: 10px;
  background: #141414;
  border-top: 1px solid rgba(255,255,255,0.09);
  border-left: 1px solid rgba(255,255,255,0.09);
  transform: translateX(-50%) rotate(45deg);
  z-index: 1;
}
/* Bridge invisible : couvre le gap entre le nav item et le dropdown */
.dropdown-menu::after {
  content: '';
  position: absolute;
  bottom: 100%;
  left: -24px;
  right: -24px;
  height: 14px; /* >= gap */
}
/* Ouverture : hover CSS + classe JS (avec délai) */
.has-dropdown:hover .dropdown-menu,
.has-dropdown.dd-open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
/* Rotation chevron via classe JS aussi */
.has-dropdown.dd-open > a .chevron { transform: rotate(180deg); color: var(--text); }

/* ══ MEGA DROPDOWN ═══════════════════════════════ */
.dropdown-mega {
  min-width: 860px;
  left: 0;
  transform: translateY(-6px); /* pas de centrage horizontal */
  display: grid;
  grid-template-columns: 1.4fr 1.4fr 1fr 0.8fr 1fr;
  padding: 22px 14px;
}
.dropdown-mega::before { display: none; } /* pas de triangle */
.has-dropdown:hover .dropdown-mega,
.has-dropdown.dd-open .dropdown-mega { transform: translateY(0); }

.dd-col {
  padding: 0 14px;
  border-right: 1px solid rgba(255,255,255,0.05);
}
.dd-col:first-child { padding-left: 6px; }
.dd-col:last-child  { border-right: none; padding-right: 6px; }

.dd-cat-header {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--accent);
  padding-bottom: 9px;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(200,255,0,0.14);
}
.dd-cat-accomp { color: #fb923c; border-bottom-color: rgba(251,146,60,0.2); margin-top: 18px; }
.dd-dot-accomp { background: #fb923c; }
.dd-cat-geo {
  color: #a78bfa;
  border-bottom-color: rgba(167,139,250,0.2);
  margin-top: 18px;
}
.dd-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.dd-dot-geo { background: #a78bfa; }

.dd-sep {
  height: 1px;
  background: rgba(255,255,255,0.06);
  margin: 12px 0;
}

.dropdown-mega .dd-col a {
  font-size: 13.5px;
  padding: 6px 8px;
  white-space: normal;
  line-height: 1.4;
  border-radius: 7px;
}

.dropdown-menu a {
  display: block;
  padding: 10px 14px;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  border-radius: 9px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.dropdown-menu a:hover { background: rgba(200,255,0,0.07); color: var(--accent); }
.dropdown-menu a.current {
  color: var(--accent);
  font-weight: 600;
  background: rgba(200,255,0,0.05);
}

/* ══ FOOTER ══════════════════════════════════════ */
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 56px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 16px;
}
footer p { color: var(--muted); font-size: 13px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }

/* ══ PAGE HERO ════════════════════════════════════ */
.page-hero {
  padding: 80px 56px 60px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(200,255,0,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.page-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 50px;
  border: 1px solid rgba(200,255,0,0.3);
  background: rgba(200,255,0,0.06);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}
.page-hero h1 {
  font-size: clamp(38px, 5.5vw, 64px);
  font-weight: 900;
  letter-spacing: -2.5px;
  line-height: 1.0;
  margin-bottom: 20px;
  max-width: 820px;
}
.page-hero h1 em { color: var(--accent); font-style: normal; }
.hero-desc {
  font-size: 17px;
  color: rgba(255,255,255,0.55);
  max-width: 560px;
  line-height: 1.65;
  margin-bottom: 40px;
}
.page-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #000;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: box-shadow 0.2s, transform 0.2s;
}
.page-cta:hover {
  box-shadow: 0 8px 28px rgba(200,255,0,0.35);
  transform: translateY(-1px);
}

/* ══ CONTENT SECTION ═════════════════════════════ */
.content-section { padding: 64px 56px 88px; }

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 32px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 56px;
}
.info-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.25s;
}
.info-card:hover { border-color: rgba(200,255,0,0.22); }
.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: rgba(200,255,0,0.07);
  border: 1px solid rgba(200,255,0,0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.info-card h3 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.2px;
}
.info-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
}

/* ══ CTA BLOCK ═══════════════════════════════════ */
.cta-block {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 48px 44px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  max-width: 880px;
}
.cta-block-text h3 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}
.cta-block-text p {
  font-size: 14px;
  color: var(--muted);
  max-width: 400px;
  line-height: 1.65;
}

/* ══ RESPONSIVE ══════════════════════════════════ */
@media (max-width: 960px) {
  nav { padding: 18px 24px; }
  footer { flex-direction: column; text-align: center; gap: 16px; }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 14px; }
  .page-hero { padding: 56px 24px 44px; }
  .content-section { padding: 44px 24px 64px; }
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .cta-block { flex-direction: column; align-items: flex-start; padding: 36px 28px; }
  .cta-block-text p { max-width: 100%; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  nav { padding: 14px 20px; }
  .nav-cta { padding: 9px 18px; font-size: 13px; }
  .page-hero { padding: 40px 20px 36px; }
  .content-section { padding: 36px 20px 52px; }
  .cards-grid { grid-template-columns: 1fr; }
  .cta-block { padding: 28px 22px; }
}
