/* =============================================================
   Theme system — Light / Dark
   Used on top of the Wabtechs base style.css.
   The site defaults to the template's dark look. A light variant
   is provided via [data-theme="light"] and prefers-color-scheme.
   ============================================================= */

:root {
  --theme-accent: #842ae3;
  --theme-accent-soft: rgba(132, 42, 227, 0.12);
  --theme-radius: 14px;
}

html[data-theme="light"] body {
  background: #f6f7fb;
  --base-color: #5a5a6e;
  --heading-color: #16161f;
  --lighter-color: #ffffff;
  --black-color: #ffffff;
  --border-color: rgba(22, 22, 31, 0.12);
  color: #5a5a6e;
}

html[data-theme="light"] body,
html[data-theme="light"] .page-wrapper {
  background-color: #f6f7fb;
}

html[data-theme="light"] h1,
html[data-theme="light"] h2,
html[data-theme="light"] h3,
html[data-theme="light"] h4,
html[data-theme="light"] h5,
html[data-theme="light"] h6,
html[data-theme="light"] h1 a,
html[data-theme="light"] h2 a,
html[data-theme="light"] h3 a,
html[data-theme="light"] h4 a,
html[data-theme="light"] h5 a,
html[data-theme="light"] h6 a {
  color: #16161f;
}

html[data-theme="light"] .for-bgc-black,
html[data-theme="light"] .bgc-black,
html[data-theme="light"] .skill-area .for-bgc-black,
html[data-theme="light"] .testimonials-area .for-bgc-black,
html[data-theme="light"] .blog-area .for-bgc-black {
  background: #ffffff;
}

html[data-theme="light"] .main-header.menu-absolute .header-upper {
  background: rgba(246, 247, 251, 0.92);
}

html[data-theme="light"] .header-top::before,
html[data-theme="light"] .header-bottom::before {
  background: #ffffff;
}

html[data-theme="light"] .page-banner-area {
  background: #ffffff;
}

html[data-theme="light"] .footer-top-wrap.bgc-black,
html[data-theme="light"] .main-footer {
  background: #16161f;
}

html[data-theme="light"] .main-footer,
html[data-theme="light"] .main-footer * {
  color: #9b9bb0;
}

html[data-theme="light"] .main-footer .footer-title,
html[data-theme="light"] .main-footer h6 {
  color: #ffffff;
}

html[data-theme="light"] .main-footer a {
  color: #9b9bb0;
}

html[data-theme="light"] .main-footer a:hover {
  color: #ffffff;
}

/* Active navigation link */
.main-header .navigation a.nav-active,
.main-header .navigation li.current > a {
  color: var(--theme-accent);
}

/* Theme toggle button */
.theme-toggle {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--heading-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: 0.4s;
  line-height: 1;
}

.theme-toggle:hover {
  color: #fff;
  background: var(--theme-accent);
  border-color: var(--theme-accent);
}

.menu-desk-theme {
  display: inline-flex;
  margin-left: 14px;
}

/* Resume / experience timeline */
.timeline-list {
  position: relative;
  padding-left: 6px;
}

.timeline-list::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--border-color);
}

.timeline-item {
  position: relative;
  padding: 0 0 34px 58px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: 4px;
  top: 6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--theme-accent-soft);
  border: 2px solid var(--theme-accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-dot span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--theme-accent);
  display: block;
}

.timeline-card {
  background: var(--lighter-color);
  border: 1px solid var(--border-color);
  border-radius: var(--theme-radius);
  padding: 22px 26px;
}

.timeline-card .years {
  display: inline-block;
  color: var(--theme-accent);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 6px;
}

.timeline-card h4 {
  margin-bottom: 4px;
}

.timeline-card .company {
  color: var(--muted-color, var(--base-color));
  display: block;
  margin-bottom: 10px;
}

/* Skill category cards */
.skill-category {
  background: var(--lighter-color);
  border: 1px solid var(--border-color);
  border-radius: var(--theme-radius);
  padding: 30px;
  height: 100%;
  transition: transform 0.4s ease, border-color 0.4s ease;
}

.skill-category:hover {
  transform: translateY(-6px);
  border-color: var(--theme-accent);
}

.skill-category .skill-cat-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--theme-accent-soft);
  color: var(--theme-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
}

.skill-category h4 {
  margin-bottom: 18px;
  font-size: 22px;
}

.skill-category ul li {
  color: var(--base-color);
  padding: 6px 0;
  border-bottom: 1px dashed var(--border-color);
  display: flex;
  align-items: center;
}

.skill-category ul li::before {
  content: "\f105";
  font-family: "Font Awesome 5 Pro", "Font Awesome 5 Free";
  font-weight: 900;
  color: var(--theme-accent);
  margin-right: 10px;
}

/* Project cards (non-masonry, simple) */
.project-card {
  background: var(--lighter-color);
  border: 1px solid var(--border-color);
  border-radius: var(--theme-radius);
  padding: 24px;
  height: 100%;
  transition: transform 0.4s ease, border-color 0.4s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--theme-accent);
}

.project-card .pc-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--theme-accent-soft);
  color: var(--theme-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}

.project-card h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.project-card .sub-title {
  display: inline-block;
  color: var(--theme-accent);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.project-card .status-badge {
  display: inline-block;
  background: var(--theme-accent-soft);
  color: var(--theme-accent);
  border-radius: 30px;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  margin-bottom: 14px;
}

/* Contact info / placeholder notices */
.template-note {
  background: var(--theme-accent-soft);
  border: 1px dashed var(--theme-accent);
  border-radius: var(--theme-radius);
  color: var(--base-color);
  padding: 18px 22px;
  font-size: 15px;
}

.contact-info-card {
  background: var(--lighter-color);
  border: 1px solid var(--border-color);
  border-radius: var(--theme-radius);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.contact-info-card .cic-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 12px;
  background: var(--theme-accent-soft);
  color: var(--theme-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.contact-info-card h5 {
  font-size: 16px;
  margin-bottom: 2px;
}

.contact-info-card a,
.contact-info-card span {
  color: var(--muted-color, var(--base-color));
  font-size: 15px;
}

/* Page banner light adjustments */
html[data-theme="light"] .page-banner-area .page-title {
  color: #16161f;
}

html[data-theme="light"] .page-banner-area .text-white h1 {
  color: #16161f;
}

html[data-theme="light"] .breadcrumb-item a {
  color: var(--theme-accent);
}

html[data-theme="light"] .breadcrumb-item.active {
  color: #16161f;
}

/* Ensure smooth transition on theme switch */
body,
.page-wrapper,
section,
.section-title,
.card,
.btn,
h1, h2, h3, h4, h5, h6,
a {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Focus visibility for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--theme-accent);
  outline-offset: 2px;
}

/* =====================================================================
   Readability overrides — fix low-contrast text in each theme.
   The base template hard-codes white/light colors (fine on its dark
   canvas) and uses the dark purple for text accents. These overrides
   keep every mode legible.
   ===================================================================== */

/* --- Shared: button text — white on the purple button in BOTH themes --- */
.theme-btn,
a.theme-btn {
  color: #ffffff;
}
.theme-btn.style-two,
a.theme-btn.style-two {
  color: var(--base-color);
}

/* --- Dark theme: brighter violet for text accents on dark surfaces --- */
html[data-theme="dark"] {
  --text-accent: #c9a5ff;
  --text-accent-link: #cdb3ff;
}
html[data-theme="dark"] .main-header .navigation a.nav-active,
html[data-theme="dark"] .main-header .navigation li.current > a,
html[data-theme="dark"] .breadcrumb-item.active,
html[data-theme="dark"] .timeline-card .years,
html[data-theme="dark"] .project-card .sub-title,
html[data-theme="dark"] .project-card .status-badge,
html[data-theme="dark"] .blog-category-tag,
html[data-theme="dark"] .blog-date,
html[data-theme="dark"] .blog-article code,
html[data-theme="dark"] .filter-btns-one li.current {
  color: var(--text-accent);
}
html[data-theme="dark"] .blog-category-tag {
  background: color-mix(in srgb, var(--text-accent) 14%, transparent);
  border-color: color-mix(in srgb, var(--text-accent) 38%, transparent);
}
html[data-theme="dark"] .project-card .status-badge {
  background: color-mix(in srgb, var(--text-accent) 14%, transparent);
}
html[data-theme="dark"] .breadcrumb-item a {
  color: var(--text-accent-link);
}

/* --- Light theme: white template text -> dark readable text --- */
html[data-theme="light"] {
  --theme-accent: #6d28d9;
  --text-accent: #6d28d9;
}

/* Hero intro + paragraphs */
html[data-theme="light"] .hero-content .h2,
html[data-theme="light"] .hero-content h2 {
  color: var(--heading-color);
}
html[data-theme="light"] .hero-content p {
  color: var(--base-color);
}

/* "Lire la suite" / "Télécharger mon CV" text links (white in template) */
html[data-theme="light"] .read-more {
  color: var(--heading-color);
}
html[data-theme="light"] .read-more:hover {
  color: var(--theme-accent);
}

/* Section eyebrow label (white in template) */
html[data-theme="light"] .section-title .sub-title {
  color: var(--theme-accent);
  font-weight: 700;
}

/* Services index numbers (white in template) */
html[data-theme="light"] .service-item .number {
  color: var(--theme-accent);
  opacity: 0.9;
}

/* Projects filter buttons (white/40 in template) */
html[data-theme="light"] .filter-btns-one li {
  color: var(--base-color);
}
html[data-theme="light"] .filter-btns-one li.current {
  color: var(--theme-accent);
}

/* Generic white list rows (contact social list, etc.) */
html[data-theme="light"] .list-style-one li {
  color: var(--base-color);
}
html[data-theme="light"] .list-style-one li a,
html[data-theme="light"] .list-style-one li a:hover {
  color: var(--heading-color);
}

/* Contact form: labels + inputs (white in template) */
html[data-theme="light"] .form-style-one .form-group label {
  color: var(--heading-color);
}
html[data-theme="light"] .form-style-one .form-group .form-control {
  color: var(--heading-color);
  background: #ffffff;
}
html[data-theme="light"] .form-style-one .form-group .form-control::placeholder {
  color: rgba(22, 22, 31, 0.45);
}
html[data-theme="light"] .form-style-one .form-group .form-control:focus {
  background: #ffffff;
  border-color: var(--theme-accent);
}
html[data-theme="light"] .form-style-one .form-group .for-icon {
  color: rgba(22, 22, 31, 0.35);
}

/* Blog hero tag + meta on light banner */
html[data-theme="light"] .blog-category-tag--hero {
  color: var(--theme-accent);
  background: color-mix(in srgb, var(--theme-accent) 12%, transparent);
  border-color: color-mix(in srgb, var(--theme-accent) 30%, transparent);
}
html[data-theme="light"] .blog-meta {
  color: var(--base-color);
}

/* Contact info links on light cards */
html[data-theme="light"] .contact-info-card a,
html[data-theme="light"] .contact-info-card span {
  color: var(--heading-color);
}
html[data-theme="light"] .contact-info-card h5 {
  color: var(--heading-color);
}

/* --- Animated gradient accent text: theme-appropriate colors ---
   The base gradient (dark purple -> cyan) is dim on dark and washes
   out on light. Use richer stops so headings stay readable in both. */
html[data-theme="dark"] .hero-content h1 b,
html[data-theme="dark"] .text-gradient,
html[data-theme="dark"] .section-title h2 span,
html[data-theme="dark"] .service-item h4 span {
  background: linear-gradient(90deg, #c9a5ff, #67e8f9, #c9a5ff);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #c9a5ff;
}
html[data-theme="light"] .hero-content h1 b,
html[data-theme="light"] .text-gradient,
html[data-theme="light"] .section-title h2 span,
html[data-theme="light"] .service-item h4 span {
  background: linear-gradient(90deg, #6d28d9, #0d94e0, #6d28d9);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #6d28d9;
}

/* Footer is always dark: keep it dark in light mode but lift text contrast */
html[data-theme="light"] .main-footer,
html[data-theme="light"] .main-footer * {
  color: #cfcfe2;
}
html[data-theme="light"] .main-footer a {
  color: #cfcfe2;
}
html[data-theme="light"] .main-footer a:hover {
  color: #ffffff;
}

