/* Fascinity Sourcing — Premium Portage Salarial */
/* Color Palette: Deep purple, gold accents, ivory */

:root {
  --purple-deep: #1a0a2e;
  --purple-mid: #2d1b4e;
  --purple-light: #4a2d7a;
  --purple-soft: #6b4d9a;
  --gold: #d4a537;
  --gold-light: #e8c86a;
  --gold-dark: #b8892a;
  --ivory: #faf8f5;
  --ivory-dark: #f0ece6;
  --text-dark: #1a1a2e;
  --text-light: #f0ece6;
  --text-muted: #6e6b7b;
  --gradient-purple: linear-gradient(135deg, #1a0a2e 0%, #2d1b4e 50%, #4a2d7a 100%);
  --gradient-gold: linear-gradient(135deg, #d4a537 0%, #e8c86a 100%);
  --shadow-sm: 0 2px 8px rgba(26,10,46,0.08);
  --shadow-md: 0 4px 20px rgba(26,10,46,0.12);
  --shadow-lg: 0 8px 40px rgba(26,10,46,0.18);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text-dark);
  background: var(--ivory);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ===================== ANIMATIONS ===================== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--transition), transform 0.8s var(--transition);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s var(--transition), transform 0.8s var(--transition);
}
.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s var(--transition), transform 0.8s var(--transition);
}
.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ===================== TYPOGRAPHY ===================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--purple-deep);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); margin-bottom: 0.8rem; }
p { margin-bottom: 1rem; }
a { color: var(--purple-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }

/* ===================== LAYOUT ===================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section {
  padding: 5rem 0;
}
.section-alt {
  background: var(--ivory-dark);
}
.section-dark {
  background: var(--gradient-purple);
  color: var(--text-light);
}
.section-dark h2, .section-dark h3 { color: var(--gold); }
.section-dark p, .section-dark li { color: var(--text-light); }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ===================== HEADER ===================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(26, 10, 46, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212, 165, 55, 0.2);
  transition: background var(--transition);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.logo-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.logo-link img {
  height: 40px;
  width: auto;
}
.logo-text {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.5px;
}

/* Desktop nav */
.main-nav {
  display: none;
}
.main-nav ul {
  display: flex;
  list-style: none;
  gap: 0.3rem;
}
.main-nav a {
  color: var(--text-light);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all var(--transition);
}
.main-nav a:hover, .main-nav a.active {
  color: var(--gold);
  background: rgba(212, 165, 55, 0.1);
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}
.hamburger span {
  width: 26px;
  height: 2px;
  background: var(--gold);
  transition: all var(--transition);
  border-radius: 2px;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(26, 10, 46, 0.98);
  padding: 2rem;
  z-index: 999;
}
.mobile-nav.open { display: flex; flex-direction: column; }
.mobile-nav ul { list-style: none; }
.mobile-nav li { border-bottom: 1px solid rgba(212, 165, 55, 0.15); }
.mobile-nav a {
  display: block;
  color: var(--text-light);
  padding: 1rem 0;
  font-size: 1.1rem;
  font-weight: 500;
}
.mobile-nav a:hover { color: var(--gold); }

@media (min-width: 900px) {
  .main-nav { display: block; }
  .hamburger { display: none; }
}

/* ===================== HERO ===================== */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-top: 60px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,10,46,0.92) 0%, rgba(45,27,78,0.85) 50%, rgba(74,45,122,0.80) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 2rem 1.5rem;
}
.hero h1 {
  color: #fff;
  margin-bottom: 1rem;
  font-size: clamp(2.2rem, 6vw, 4rem);
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero h1 span { color: var(--gold); }
.hero .subtitle {
  color: rgba(255,255,255,0.9);
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  margin-bottom: 2rem;
  line-height: 1.6;
}
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* Page hero (smaller) */
.page-hero {
  min-height: 45vh;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  margin-top: 60px;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,10,46,0.92) 0%, rgba(45,27,78,0.88) 100%);
  z-index: 1;
}
.page-hero .hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}
.page-hero h1 {
  color: #fff;
  font-size: clamp(1.8rem, 5vw, 3rem);
}
.page-hero p {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  max-width: 650px;
}

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: var(--gradient-gold);
  color: var(--purple-deep);
  box-shadow: 0 4px 15px rgba(212, 165, 55, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(212, 165, 55, 0.4);
  color: var(--purple-deep);
}
.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.4);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}
.btn-sm {
  padding: 0.6rem 1.5rem;
  font-size: 0.9rem;
}

/* ===================== CARDS ===================== */
.card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 1px solid rgba(26,10,46,0.05);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.card-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: var(--gradient-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  font-size: 1.5rem;
  color: var(--gold);
}
.card h3 { font-size: 1.2rem; }

/* Feature card with number */
.feature-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-gold);
  color: var(--purple-deep);
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

/* Blog card */
.blog-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.blog-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.blog-card-body {
  padding: 1.5rem;
}
.blog-card-tag {
  display: inline-block;
  background: rgba(74, 45, 122, 0.1);
  color: var(--purple-light);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}
.blog-card-body h3 { font-size: 1.1rem; margin-bottom: 0.6rem; }
.blog-card-body h3 a { color: var(--purple-deep); }
.blog-card-body h3 a:hover { color: var(--gold); }
.blog-card-body p { color: var(--text-muted); font-size: 0.95rem; }
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===================== SECTION IMAGE ===================== */
.section-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.section-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===================== STATS BAR ===================== */
.stats-bar {
  background: var(--gradient-purple);
  padding: 3rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  text-align: center;
}
@media (min-width: 768px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}
.stat-item h3 {
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--gold);
  margin-bottom: 0.3rem;
}
.stat-item p {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
}

/* ===================== CTA BANNER ===================== */
.cta-banner {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 5rem 0;
  text-align: center;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,10,46,0.90) 0%, rgba(74,45,122,0.85) 100%);
}
.cta-banner .container { position: relative; z-index: 2; }
.cta-banner h2 { color: #fff; margin-bottom: 1rem; }
.cta-banner p { color: rgba(255,255,255,0.85); font-size: 1.1rem; max-width: 600px; margin: 0 auto 2rem; }

/* ===================== TESTIMONIALS ===================== */
.testimonial-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.testimonial-card::before {
  content: '\201C';
  font-size: 4rem;
  color: var(--gold);
  position: absolute;
  top: 0.5rem;
  left: 1.5rem;
  line-height: 1;
  font-family: Georgia, serif;
}
.testimonial-text {
  padding-top: 2rem;
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.testimonial-author {
  font-weight: 700;
  color: var(--purple-deep);
}
.testimonial-role {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===================== ACCORDION / FAQ ===================== */
.accordion-item {
  background: #fff;
  border-radius: var(--radius);
  margin-bottom: 0.8rem;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--purple-deep);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-size: 1rem;
  transition: background var(--transition);
}
.accordion-header:hover { background: rgba(74, 45, 122, 0.03); }
.accordion-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gradient-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--purple-deep);
  flex-shrink: 0;
  transition: transform var(--transition);
}
.accordion-item.open .accordion-icon { transform: rotate(45deg); }
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.accordion-body-inner {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-muted);
}

/* ===================== CONTACT FORM ===================== */
.form-group {
  margin-bottom: 1.2rem;
}
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--purple-deep);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 2px solid #e0dce6;
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color var(--transition);
  background: #fff;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--purple-light);
  box-shadow: 0 0 0 3px rgba(74, 45, 122, 0.1);
}
.form-group textarea { min-height: 140px; resize: vertical; }

/* ===================== FOOTER ===================== */
.site-footer {
  background: var(--purple-deep);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-bottom: 3rem;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
.footer-brand .logo-text {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  display: block;
}
.footer-brand p { font-size: 0.95rem; }
.site-footer h4 {
  color: var(--gold);
  margin-bottom: 1rem;
  font-size: 1rem;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer a { color: rgba(255,255,255,0.7); }
.site-footer a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.85rem;
}
.footer-bottom a { color: var(--gold); }

/* ===================== BREADCRUMB ===================== */
.breadcrumb {
  padding: 1rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.breadcrumb a { color: var(--purple-light); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { margin: 0 0.4rem; }

/* ===================== BLOG ARTICLE ===================== */
.article-content {
  max-width: 800px;
  margin: 0 auto;
}
.article-content h2 { margin-top: 2.5rem; }
.article-content h3 { margin-top: 2rem; }
.article-content p { font-size: 1.05rem; color: #444; }
.article-content ul, .article-content ol {
  margin: 1rem 0 1rem 1.5rem;
  color: #444;
}
.article-content li { margin-bottom: 0.5rem; }
.article-content img {
  width: 100%;
  border-radius: var(--radius);
  margin: 2rem 0;
  box-shadow: var(--shadow-sm);
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.article-share {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e0dce6;
}

/* ===================== PLAN DU SITE ===================== */
.sitemap-list { list-style: none; }
.sitemap-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid #eee;
}
.sitemap-list a {
  font-weight: 500;
  color: var(--purple-light);
}
.sitemap-list a:hover { color: var(--gold); }
.sitemap-section { margin-bottom: 2rem; }
.sitemap-section h3 { color: var(--purple-deep); margin-bottom: 0.5rem; }

/* ===================== 404 ===================== */
.error-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: 60px;
}
.error-page h1 {
  font-size: clamp(5rem, 15vw, 10rem);
  color: var(--gold);
  line-height: 1;
}

/* ===================== UTILITY ===================== */
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-purple { color: var(--purple-light); }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-700 { max-width: 700px; }
.gold-line {
  width: 60px;
  height: 3px;
  background: var(--gradient-gold);
  border-radius: 2px;
  margin-bottom: 1.5rem;
}
.gold-line-center {
  width: 60px;
  height: 3px;
  background: var(--gradient-gold);
  border-radius: 2px;
  margin: 0 auto 1.5rem;
}
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.tag {
  display: inline-block;
  background: rgba(74, 45, 122, 0.08);
  color: var(--purple-light);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}
