/* =======================================
   VARIABLES GLOBALES & THEME
   ======================================= */
:root {
  --zm-bg-dark: #020617;
  --zm-bg-card: rgba(15, 23, 42, 0.9);
  --zm-accent: #0ea5e9;
  --zm-accent-soft: rgba(56, 189, 248, 0.18);
  --zm-text-muted: #9ca3af;

  --bg-page: #f9fafb;
  --bg-elevated: #ffffff;
  --text-main: #0f172a;
  --text-muted-main: #6b7280;
  --border-subtle: rgba(148, 163, 184, 0.4);
}

body[data-theme="dark"] {
  --bg-page: #020617;
  --bg-elevated: #020617;
  --text-main: #e5e7eb;
  --text-muted-main: #9ca3af;
  --border-subtle: rgba(30, 64, 175, 0.7);
}

/* =======================================
   GLOBAL & TYPO
   ======================================= */

body {
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition:
    background-color 0.25s ease-out,
    color 0.25s ease-out;
}

/* Fond des sections claires : un gris doux en light, thème via variables en dark */
.section-light {
  background-color: #f3f4f6;
  transition: background-color 0.25s ease-out;
}

body[data-theme="dark"] .section-light {
  background-color: var(--bg-page);
}

.section-dark {
  position: relative;
  overflow: hidden;
  background: radial-gradient(
    circle at top left,
    #0b1120 0,
    #020617 45%,
    #020617 100%
  );
  color: #e5e7eb;
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark h5,
.section-dark h6 {
  color: #f9fafb;
}

.section-dark p {
  color: var(--zm-text-muted);
}

body[data-theme="dark"] .section-light h1,
body[data-theme="dark"] .section-light h2,
body[data-theme="dark"] .section-light h3,
body[data-theme="dark"] .section-light h4,
body[data-theme="dark"] .section-light h5,
body[data-theme="dark"] .section-light h6 {
  color: #e5e7eb;
}

body[data-theme="dark"] .section-light p,
body[data-theme="dark"] .section-light span,
body[data-theme="dark"] .section-light li {
  color: var(--text-muted-main);
}

/* Titres généraux */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

/* Paragraphes & listes */

p,
li {
  font-size: 0.97rem;
  line-height: 1.6;
}

/* Petits textes */

.small,
.text-muted,
.hero-meta-text,
.skills-bullets,
.skills-intro,
.portfolio-subtitle {
  font-size: 0.9rem;
}

/* =======================================
   HEADER / NAV MODERNE
   ======================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  margin-top: 1.1rem;
  transition: margin-top 0.25s ease-out;
}

.nav-glass {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 18px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  transform: translateY(-18px);
  opacity: 0;
  transition:
    transform 0.35s ease-out,
    opacity 0.35s ease-out,
    box-shadow 0.25s ease-out,
    background-color 0.25s ease-out,
    border-color 0.25s ease-out;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1.4rem;
  gap: 2rem;
}

/* apparition + scroll */

.site-header.header-visible {
  transform: translateY(0);
  opacity: 1;
}

.site-header.header-scrolled {
  margin-top: 0.35rem;
}

.site-header.header-scrolled,
.site-header.header-scrolled .nav-glass {
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

body[data-theme="dark"] .nav-glass {
  background: rgba(15, 23, 42, 0.96);
  border-color: rgba(30, 64, 175, 0.7);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.5);
}

/* Brand */

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  color: #f9fafb;
  font-size: 0.8rem;
  font-weight: 600;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
}

.brand-role {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted-main);
}

body[data-theme="dark"] .brand-name {
  color: #e5e7eb;
}

body[data-theme="dark"] .brand-role {
  color: #9ca3af;
}

/* Nav principal */

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex: 1;
  justify-content: flex-end;
}

.primary-nav-list {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #4b5563;
  text-decoration: none;
  transition:
    color 0.2s ease-out,
    background 0.2s ease-out,
    transform 0.18s ease-out;
}

.primary-nav-link::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #0ea5e9, #6366f1);
  transition:
    width 0.25s ease-out,
    left 0.25s ease-out;
}

.primary-nav-link:hover {
  color: #0ea5e9;
  background: rgba(148, 163, 184, 0.12);
  transform: translateY(-1px);
}

.primary-nav-link:hover::after {
  width: 60%;
  left: 20%;
}

.primary-nav-link.active {
  color: #0f172a;
  background: rgba(14, 165, 233, 0.12);
}

body[data-theme="dark"] .primary-nav-link {
  color: #9ca3af;
}

body[data-theme="dark"] .primary-nav-link.active {
  color: #e5e7eb;
  background: rgba(37, 99, 235, 0.18);
}

/* Actions header */

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-cta {
  font-size: 0.78rem;
  padding-block: 0.55rem;
}

/* Toggle theme */

.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(248, 250, 252, 0.9);
  cursor: pointer;
  transition:
    background-color 0.2s ease-out,
    border-color 0.2s ease-out,
    transform 0.18s ease-out,
    box-shadow 0.2s ease-out;
}

.theme-toggle-btn i {
  font-size: 1.1rem;
  color: #0f172a;
}

.theme-toggle-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15);
}

body[data-theme="dark"] .theme-toggle-btn {
  background: rgba(15, 23, 42, 0.92);
  border-color: rgba(30, 64, 175, 0.8);
}

body[data-theme="dark"] .theme-toggle-btn i {
  color: #e5e7eb;
}

/* Responsive header */

@media (max-width: 768px) {
  .site-header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding-inline: 1rem;
    gap: 0.75rem;
  }

  .primary-nav {
    width: 100%;
    justify-content: space-between;
    gap: 0.75rem;
  }

  .primary-nav-list {
    flex-wrap: wrap;
    gap: 0.3rem;
  }

  .nav-actions {
    gap: 0.5rem;
  }

  .nav-cta {
    display: none;
  }
}

/* =======================================
   BOUTONS GLOBAUX
   ======================================= */

.btn-main,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.7rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid transparent;
  text-decoration: none;
  transition:
    transform 0.2s ease-out,
    box-shadow 0.2s ease-out,
    background 0.2s ease-out,
    color 0.2s ease-out,
    border-color 0.2s ease-out;
}

.btn-main {
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  color: #f9fafb;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.35);
}

.btn-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.45);
  color: #f9fafb;
}

.btn-ghost {
  background: #ffffff;
  border-color: rgba(148, 163, 184, 0.9);
  color: #111827;
}

.btn-ghost:hover {
  background: #0f172a;
  border-color: #0f172a;
  color: #f9fafb;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.35);
}

/* Tags / chips unifiés */

.portfolio-tag,
.skill-tag,
.skill-chip,
.contact-chip {
  font-size: 0.85rem;
  line-height: 1.4;
}

/* =======================================
   HERO
   ======================================= */

.hero-section {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted-main);
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--zm-accent);
  box-shadow: 0 0 0 6px rgba(14, 165, 233, 0.32);
}

.hero-title {
  font-size: clamp(2.6rem, 3.6vw, 3.1rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.hero-title-highlight {
  display: inline-block;
  background: linear-gradient(120deg, #0ea5e9, #6366f1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 0.97rem;
  line-height: 1.8;
  color: var(--text-muted-main);
  max-width: 520px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.hero-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.hero-meta-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-main);
}

.hero-meta-text {
  font-size: 0.78rem;
  color: #6b7280;
}

/* Carte photo hero */

.hero-photo-card {
  position: relative;
  border-radius: 1.8rem;
  padding: 1.2rem;
  background: radial-gradient(
    circle at top left,
    #e0f2fe 0,
    #eff6ff 40%,
    #e5e7eb 100%
  );
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.15);
  overflow: hidden;
}

.hero-photo-wrap {
  border-radius: 1.4rem;
  background: #020617;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-photo {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Badges */

.hero-tag-badge {
  position: absolute;
  top: 1.2rem;
  left: 1.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.92);
  color: #e5e7eb;
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.7);
}

.hero-tag-badge span {
  color: #a5b4fc;
  font-weight: 500;
}

.hero-small-stat {
  position: absolute;
  padding: 0.5rem 0.8rem;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.75rem;
  display: inline-flex;
  flex-direction: column;
  gap: 0.05rem;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.25);
}

.hero-small-stat-left {
  bottom: 1.4rem;
  left: 1.5rem;
}

.hero-small-stat-right {
  bottom: 1.4rem;
  right: 1.5rem;
}

.hero-small-stat .label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #9ca3af;
}

.hero-small-stat .value {
  font-weight: 600;
  color: #111827;
}

@media (max-width: 768px) {
  .hero-section {
    padding-top: 2.5rem;
  }

  .hero-photo-card {
    margin-top: 1.5rem;
  }
}

/* =======================================
   SERVICES (DARK)
   ======================================= */

#services.section-dark {
  position: relative;
  overflow: hidden;
}

#services.section-dark::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  background: rgba(56, 189, 248, 0.3);
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.4;
  top: -60px;
  left: 5%;
  pointer-events: none;
}

.service-card {
  position: relative;
  border-radius: 1.25rem;
  padding: 1.75rem 1.5rem;
  background: linear-gradient(
    145deg,
    rgba(15, 23, 42, 0.95),
    rgba(15, 23, 42, 0.88)
  );
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition:
    transform 0.25s ease-out,
    box-shadow 0.25s ease-out,
    border-color 0.25s ease-out;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--zm-accent);
  box-shadow: 0 22px 55px rgba(8, 47, 73, 0.95);
}

.service-icon-wrap {
  width: 50px;
  height: 50px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  background:
    radial-gradient(circle at 30% 0%, #e0f2fe 0, transparent 60%),
    radial-gradient(circle at 80% 120%, #0369a1 0, #020617 55%);
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.9),
    0 10px 25px rgba(15, 23, 42, 0.9);
}

.service-icon-wrap i {
  font-size: 1.3rem;
  color: #f9fafb;
}

.service-title {
  color: #f9fafb;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.service-text {
  color: var(--zm-text-muted);
  font-size: 0.92rem;
  margin-bottom: 0;
}

/* =======================================
   PORTFOLIO
   ======================================= */

#portfolio.section-light {
  position: relative;
  overflow: hidden;
  background: radial-gradient(
    circle at top,
    #e0f2fe 0,
    #f9fafb 40%,
    #f3f4f6 100%
  );
}

#portfolio.section-light::before,
#portfolio.section-light::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(60px);
  opacity: 0.45;
  pointer-events: none;
}

#portfolio.section-light::before {
  width: 260px;
  height: 260px;
  background: rgba(56, 189, 248, 0.35);
  top: -80px;
  right: 8%;
}

#portfolio.section-light::after {
  width: 220px;
  height: 220px;
  background: rgba(129, 140, 248, 0.28);
  bottom: -70px;
  left: 10%;
}

/* Variante dark pour le portfolio */

body[data-theme="dark"] #portfolio.section-light {
  background: radial-gradient(
    circle at top,
    #020617 0,
    #020617 40%,
    #020617 100%
  );
}

body[data-theme="dark"] #portfolio.section-light::before {
  background: rgba(56, 189, 248, 0.2);
  opacity: 0.35;
}

body[data-theme="dark"] #portfolio.section-light::after {
  background: rgba(129, 140, 248, 0.2);
  opacity: 0.35;
}

/* Intro texte */

.portfolio-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--zm-accent);
  font-weight: 600;
}

.portfolio-title {
  font-size: clamp(2rem, 2.5vw, 2.3rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

body[data-theme="dark"] .portfolio-title {
  color: #e5e7eb;
}

.portfolio-subtitle {
  max-width: 640px;
  margin: 0 auto;
  font-size: 0.9rem;
  color: #6b7280;
}

/* Tabs CMS */

.portfolio-tabs {
  margin-top: 1.8rem;
  margin-bottom: 2.6rem;
}

.portfolio-tabs .nav-item {
  margin: 0 0.4rem;
}

.portfolio-tabs .nav-link {
  border-radius: 999px;
  padding: 0.45rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #4b5563;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.2s ease-out;
}

.portfolio-tabs .nav-link:hover {
  border-color: rgba(148, 163, 184, 0.9);
  background-color: #e5e7eb;
}

.portfolio-tabs .nav-link.active {
  background: linear-gradient(120deg, #0ea5e9, #2563eb);
  color: #f9fafb;
  border-color: transparent;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.45);
}

/* Cartes portfolio */

.portfolio-card {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  background: radial-gradient(
    circle at top left,
    #ffffff 0,
    #f9fafb 55%,
    #e5e7eb 100%
  );
  border: 1px solid rgba(209, 213, 219, 0.9);
  box-shadow: 0 18px 38px rgba(148, 163, 184, 0.35);
  transition:
    transform 0.22s ease-out,
    box-shadow 0.22s ease-out,
    border-color 0.22s ease-out;
}

.portfolio-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18%;
  bottom: 18%;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(to bottom, #0ea5e9, #6366f1);
  opacity: 0.7;
}

.portfolio-card:hover {
  transform: translateY(-6px);
  border-color: rgba(59, 130, 246, 0.95);
  box-shadow: 0 24px 55px rgba(148, 163, 184, 0.6);
}

/* Dark cards */

body[data-theme="dark"] .portfolio-card {
  background: radial-gradient(
    circle at top left,
    #020617 0,
    #020617 55%,
    #020617 100%
  );
  border-color: rgba(30, 64, 175, 0.8);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.8);
}

body[data-theme="dark"] .portfolio-card::before {
  background: linear-gradient(to bottom, #0ea5e9, #6366f1);
  opacity: 0.9;
}

/* Vignette */

.portfolio-thumb {
  padding: 1.1rem 1.3rem 0.4rem;
}

.portfolio-thumb .ratio {
  border-radius: 1.2rem;
  overflow: hidden;
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.35);
  background-color: #020617;
}

.portfolio-thumb img.card-img-top {
  border-bottom: none;
  object-fit: cover;
}

/* Corps */

.portfolio-card .card-body {
  padding: 1.1rem 1.4rem 1.2rem;
}

.portfolio-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}

.portfolio-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.6rem;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.85rem;
  font-weight: 500;
}

.portfolio-tag.alt {
  background: #ecfdf5;
  color: #15803d;
}

body[data-theme="dark"] .portfolio-tag {
  background: rgba(37, 99, 235, 0.15);
  color: #bfdbfe;
}

body[data-theme="dark"] .portfolio-tag.alt {
  background: rgba(22, 163, 74, 0.15);
  color: #bbf7d0;
}

.portfolio-card h5 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
  color: #0f172a;
}

body[data-theme="dark"] .portfolio-card h5 {
  color: #e5e7eb;
}

.portfolio-card p {
  font-size: 0.9rem;
  color: #4b5563;
  margin-bottom: 0.6rem;
}

body[data-theme="dark"] .portfolio-card p {
  color: #9ca3af;
}

/* Lien */

.portfolio-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: #1d4ed8;
  text-decoration: none;
  position: relative;
}

.portfolio-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, #0ea5e9, #2563eb);
  transition: width 0.2s ease-out;
}

.portfolio-link span {
  font-size: 0.95em;
  transition: transform 0.2s ease-out;
}

.portfolio-link:hover::after {
  width: 100%;
}

.portfolio-link:hover span {
  transform: translateX(3px);
}

/* Pagination */

.wp-page,
.joomla-page {
  display: none;
}

.wp-page.active,
.joomla-page.active {
  display: block;
}

.pagination-wp .wp-page-btn.active,
.pagination-joomla .joomla-page-btn.active {
  background-color: var(--bs-primary);
  color: #fff;
}

.pagination-wp .wp-page-btn,
.pagination-joomla .joomla-page-btn {
  min-width: 40px;
}

.pagination-wp.d-flex.justify-content-center.gap-2.mt-4 {
  margin-bottom: 20px;
}

/* =======================================
   RESULTS
   ======================================= */

.results-section {
  position: relative;
  overflow: hidden;
}

.results-section::before,
.results-section::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(60px);
  opacity: 0.35;
  pointer-events: none;
}

.results-section::before {
  width: 260px;
  height: 260px;
  background: rgba(56, 189, 248, 0.35);
  top: -80px;
  right: 5%;
}

.results-section::after {
  width: 220px;
  height: 220px;
  background: rgba(59, 130, 246, 0.35);
  bottom: -60px;
  left: 8%;
}

.results-kicker {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--zm-accent);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.results-title {
  font-weight: 700;
  font-size: clamp(1.9rem, 2.4vw, 2.4rem);
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.results-subtitle {
  color: var(--zm-text-muted);
  max-width: 640px;
  margin: 0 auto;
  font-size: 0.95rem;
}

.metric-card {
  position: relative;
  border-radius: 1.5rem;
  padding: 1.75rem 1.5rem;
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.95),
    rgba(15, 23, 42, 0.88)
  );
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow:
    0 18px 40px rgba(15, 23, 42, 0.85),
    0 0 0 1px rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
  transform: translateY(18px);
  opacity: 0;
  transition:
    transform 0.28s ease-out,
    box-shadow 0.28s ease-out,
    border-color 0.28s ease-out,
    background 0.28s ease-out,
    opacity 0.28s ease-out;
}

.results-visible .metric-card {
  opacity: 1;
  transform: translateY(0);
}

.results-visible .metric-card:nth-child(1) {
  transition-delay: 0.05s;
}
.results-visible .metric-card:nth-child(2) {
  transition-delay: 0.12s;
}
.results-visible .metric-card:nth-child(3) {
  transition-delay: 0.19s;
}
.results-visible .metric-card:nth-child(4) {
  transition-delay: 0.26s;
}

.metric-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top left,
    var(--zm-accent-soft),
    transparent 55%
  );
  opacity: 0;
  transition: opacity 0.3s ease-out;
}

.metric-card:hover {
  transform: translateY(-4px);
  border-color: var(--zm-accent);
  box-shadow:
    0 22px 60px rgba(8, 47, 73, 0.95),
    0 0 0 1px rgba(15, 23, 42, 0.9);
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.97),
    rgba(15, 23, 42, 0.9)
  );
}

.metric-card:hover::before {
  opacity: 1;
}

.metric-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  background:
    radial-gradient(circle at 30% 0%, #e0f2fe 0, transparent 60%),
    radial-gradient(circle at 80% 120%, #0369a1 0, #020617 55%);
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.9),
    0 10px 25px rgba(15, 23, 42, 0.9);
}

.metric-icon-wrap i {
  font-size: 1.3rem;
  color: #f9fafb;
}

.metric-value {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 0.25rem;
}

.metric-label {
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--zm-text-muted);
  margin-bottom: 0.6rem;
}

.metric-desc {
  font-size: 0.86rem;
  color: var(--zm-text-muted);
  margin-bottom: 0;
}

@media (max-width: 576px) {
  .metric-card {
    padding: 1.5rem 1.25rem;
  }
}

/* =======================================
   CONTACT (version plus douce)
   ======================================= */

.contact-card {
  border-radius: 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.contact-card .card-body {
  padding: 1.75rem 1.9rem;
}

@media (max-width: 576px) {
  .contact-card .card-body {
    padding: 1.4rem 1.25rem;
  }
}

.contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: #eef2ff;
  font-weight: 500;
  color: #374151;
  border: 1px solid rgba(129, 140, 248, 0.45);
}

.contact-chip i {
  font-size: 0.9rem;
}

/* Méthodes de contact */

.contact-method {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: #4b5563;
}

.contact-method + .contact-method {
  margin-top: 0.35rem;
}

.contact-method i {
  font-size: 1rem;
  color: var(--zm-accent);
}

.contact-method a {
  color: #111827;
  text-decoration: none;
  font-weight: 500;
}

.contact-method a:hover {
  color: #2563eb;
  text-decoration: underline;
}

/* Formulaire */

.contact-card .form-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #4b5563;
}

.contact-card .form-control,
.contact-card .form-select {
  border-radius: 0.9rem;
  border-color: rgba(148, 163, 184, 0.5);
  padding: 0.6rem 0.85rem;
  font-size: 0.9rem;
  background-color: #f9fafb;
  transition:
    border-color 0.18s ease-out,
    box-shadow 0.18s ease-out,
    background-color 0.18s ease-out;
}

.contact-card .form-control:focus,
.contact-card .form-select:focus {
  border-color: var(--zm-accent);
  box-shadow:
    0 0 0 1px rgba(14, 165, 233, 0.3),
    0 0 0 0.25rem rgba(37, 99, 235, 0.12);
  background-color: #ffffff;
}

#contact-consent {
  cursor: pointer;
}

.contact-consent-label {
  cursor: pointer;
}

#contact-status {
  margin-top: 0.75rem;
  font-size: 0.86rem;
}

.contact-card .btn-main {
  padding-inline: 1.6rem;
  font-size: 0.9rem;
}

/* =======================================
   FOOTER
   ======================================= */

footer.section-dark.footer-section {
  background: #020617;
  border-top: 1px solid rgba(148, 163, 184, 0.35);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: center;
  text-align: center;
}

.footer-quote {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #e5e7eb;
}

.footer-quote-main {
  display: block;
  font-weight: 600;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, #0ea5e9, #6366f1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer-quote-sub {
  display: block;
  font-size: 0.9rem;
  color: #9ca3af;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  font-size: 0.82rem;
  color: #6b7280;
}

.footer-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

body[data-theme="dark"] .footer-meta {
  color: #9ca3af;
}

/* =======================================
   ANIMATIONS GÉNÉRALES
   ======================================= */

.pre-animate {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.3s ease-out,
    transform 0.3s ease-out;
}

.card-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =======================================
   SKILLS – GRAPHES ANIMÉS (section animée)
   ======================================= */

.skills-visual-section {
  position: relative;
  overflow: hidden;
}

.skills-visual-section::before,
.skills-visual-section::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.4;
  pointer-events: none;
}

.skills-visual-section::before {
  width: 260px;
  height: 260px;
  background: rgba(56, 189, 248, 0.32);
  top: -80px;
  right: 6%;
}

.skills-visual-section::after {
  width: 220px;
  height: 220px;
  background: rgba(129, 140, 248, 0.28);
  bottom: -70px;
  left: 8%;
}

.skills-visual-title {
  font-size: clamp(1.8rem, 2.2vw, 2.1rem);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.skills-visual-text {
  font-size: 0.95rem;
  color: var(--text-muted-main);
}

.skills-quick-list {
  padding-left: 1.1rem;
  margin-bottom: 1.2rem;
  font-size: 0.9rem;
  color: var(--text-muted-main);
}

.skills-quick-list li + li {
  margin-top: 0.2rem;
}

.skills-secondary-link {
  text-decoration: none;
  color: var(--text-muted-main);
}

.skills-secondary-link:hover {
  color: #2563eb;
  text-decoration: underline;
}

/* Layout */

.skills-graph-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.9fr);
  gap: 1.4rem;
}

@media (max-width: 991.98px) {
  .skills-graph-layout {
    grid-template-columns: 1fr;
  }
}

/* Cartes */

.skill-graph-card {
  position: relative;
  border-radius: 1.4rem;
  padding: 1.4rem 1.5rem 1.5rem;
  background: radial-gradient(
    circle at top left,
    #ffffff 0,
    #f9fafb 55%,
    #e5e7eb 100%
  );
  border: 1px solid rgba(209, 213, 219, 0.9);
  box-shadow: 0 18px 38px rgba(148, 163, 184, 0.35);
  overflow: hidden;
  transition:
    transform 0.22s ease-out,
    box-shadow 0.22s ease-out,
    border-color 0.22s ease-out,
    background 0.22s ease-out;
}

.skill-graph-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top left,
    rgba(14, 165, 233, 0.22),
    transparent 60%
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease-out;
}

.skill-graph-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.95);
  box-shadow: 0 22px 55px rgba(148, 163, 184, 0.55);
}

.skill-graph-card:hover::before {
  opacity: 1;
}

body[data-theme="dark"] .skill-graph-card {
  background: radial-gradient(
    circle at top left,
    #020617 0,
    #020617 55%,
    #020617 100%
  );
  border-color: rgba(30, 64, 175, 0.8);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.85);
}

.skill-graph-header {
  margin-bottom: 0.8rem;
}

.skill-graph-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--zm-accent);
  font-weight: 600;
}

.skill-graph-title {
  font-size: 1.02rem;
  font-weight: 600;
  margin: 0.15rem 0 0;
}

/* Barres de niveau */

.skills-bars {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.skills-bar-row {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.skills-bar-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.85rem;
}

.skills-bar-label span:first-child {
  font-weight: 500;
}

.skills-bar-value {
  font-size: 0.78rem;
  color: var(--text-muted-main);
}

.skills-bar-track {
  position: relative;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.3);
  overflow: hidden;
}

.skills-bar-fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #0ea5e9, #2563eb);
  width: 0;
  transform-origin: left center;
}

/* Animation des barres : width = --level quand visible */

.skills-visual-section.skills-animated .skills-bar-fill {
  width: var(--level);
  transition: width 0.85s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.skills-bar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  font-size: 0.74rem;
  color: var(--text-muted-main);
}

.skills-bar-tags span {
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.03);
  border: 1px solid rgba(209, 213, 219, 0.8);
}

body[data-theme="dark"] .skills-bar-track {
  background: rgba(30, 64, 175, 0.3);
}

body[data-theme="dark"] .skills-bar-tags span {
  background: rgba(15, 23, 42, 0.8);
  border-color: rgba(30, 64, 175, 0.8);
}

/* Soft skills & langues */

.skills-soft-card {
  padding-right: 2.6rem; /* place pour le radar décoratif */
}

.skills-soft-layout {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.skills-languages {
  margin-bottom: 0.25rem;
}

.skills-lang-title {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.4rem;
}

.skills-lang-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.lang-chip {
  font-size: 0.78rem;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(209, 213, 219, 0.9);
  background: rgba(248, 250, 252, 0.96);
}

body[data-theme="dark"] .lang-chip {
  border-color: rgba(30, 64, 175, 0.8);
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
}

.skills-soft-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.soft-chip {
  font-size: 0.78rem;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  background: rgba(243, 244, 246, 0.96);
  border: 1px solid rgba(209, 213, 219, 0.9);
}

body[data-theme="dark"] .soft-chip {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(30, 64, 175, 0.8);
  color: #e5e7eb;
}

/* Radar décoratif */

.skills-radar {
  position: absolute;
  right: 1.2rem;
  bottom: 1.1rem;
  width: 80px;
  height: 80px;
  pointer-events: none;
  opacity: 0.25;
}

.skills-radar-ring {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 1px dashed rgba(59, 130, 246, 0.8);
}

.skills-radar-ring-1 {
  animation: radar-spin 14s linear infinite;
}

.skills-radar-ring-2 {
  inset: 12px;
  border-style: solid;
  border-color: rgba(14, 165, 233, 0.9);
  animation: radar-pulse 4s ease-in-out infinite;
}

.skills-radar-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #0ea5e9;
}

.skills-radar-dot-1 {
  top: 18%;
  left: 62%;
}

.skills-radar-dot-2 {
  bottom: 20%;
  right: 20%;
}

@keyframes radar-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes radar-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
}

/* =======================================
   SKILLS SECTION (texte + cartes)
   ======================================= */

.skills-section {
  position: relative;
}

.skills-kicker {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--zm-accent);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.skills-title {
  font-size: clamp(1.6rem, 2.3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin-bottom: 0.5rem;
}

.skills-intro {
  font-size: 0.95rem;
  color: var(--text-muted-main);
}

.skills-bullets {
  list-style: none;
  padding-left: 0;
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted-main);
}

.skills-bullets li + li {
  margin-top: 0.5rem;
}

/* Cards skills texte */

.skills-card {
  border-radius: 1.4rem;
  border: 1px solid var(--border-subtle);
  background: radial-gradient(
    circle at top left,
    rgba(255, 255, 255, 0.98) 0,
    #f9fafb 50%,
    #e5e7eb 100%
  );
  box-shadow: 0 18px 40px rgba(148, 163, 184, 0.35);
  padding: 1.4rem 1.5rem 1.5rem;
}

body[data-theme="dark"] .skills-card {
  background: radial-gradient(
    circle at top left,
    #020617 0,
    #020617 50%,
    #020617 100%
  );
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.75);
}

.skills-card-header {
  margin-bottom: 1rem;
}

.skills-card-kicker {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--zm-accent);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.skills-card-title {
  font-size: 0.98rem;
  font-weight: 600;
  margin: 0;
}

/* Graph simple (si tu l’utilises encore) */

.skills-graph {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.skill-row {
  font-size: 0.88rem;
}

.skill-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}

.skill-label {
  font-weight: 600;
}

.skill-percent {
  font-size: 0.78rem;
  color: var(--zm-text-muted);
}

.skill-bar {
  position: relative;
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.25);
  overflow: hidden;
}

.skill-bar-fill {
  position: absolute;
  inset: 0;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #0ea5e9, #6366f1);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.5);
  transition: width 0.9s cubic-bezier(0.33, 1, 0.68, 1);
}

.skill-tags {
  margin-top: 0.35rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.skill-tag {
  font-size: 0.85rem;
  padding: 0.14rem 0.55rem;
  border-radius: 999px;
  background: rgba(239, 246, 255, 0.95);
  color: #1f2937;
  border: 1px solid rgba(191, 219, 254, 0.9);
}

body[data-theme="dark"] .skill-tag {
  background: rgba(30, 64, 175, 0.25);
  color: #e5e7eb;
  border-color: rgba(37, 99, 235, 0.7);
}

/* Soft skills chips */

.skills-block + .skills-block {
  margin-top: 1rem;
}

.skills-subtitle {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--zm-text-muted);
  margin-bottom: 0.35rem;
}

.skills-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.skill-chip {
  font-size: 0.85rem;
  padding: 0.18rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(209, 213, 219, 0.85);
  background: rgba(249, 250, 251, 0.96);
}

body[data-theme="dark"] .skill-chip {
  border-color: rgba(55, 65, 81, 0.9);
  background: rgba(17, 24, 39, 0.96);
}

/* CTA row */

.skills-cta-row {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.skills-cta-row .btn-main,
.skills-cta-row .btn-ghost {
  padding-inline: 1.5rem;
  padding-block: 0.65rem;
  font-size: 0.9rem;
}

@media (max-width: 992px) {
  .skills-card {
    margin-top: 0.75rem;
  }
}

/* =======================================
   PROCESS CARDS (section sombre)
   ======================================= */

.process-card {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 1.3rem;
  padding: 1.8rem 1.4rem;
  height: 100%;
  backdrop-filter: blur(10px);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease;
}

.process-card:hover {
  transform: translateY(-6px);
  border-color: var(--zm-accent);
}

.process-icon {
  font-size: 2rem;
  color: var(--zm-accent);
  margin-bottom: 1rem;
}

.process-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: #f9fafb;
}

.process-text {
  font-size: 0.92rem;
  color: var(--zm-text-muted);
}


.section-light {
  background: #f3f4f6; /* Gris doux au lieu du blanc pur */
  transition: background-color 0.25s ease-out;
}

/* Cartes de sections light */
.section-light .card,
.section-light .skills-card,
.section-light .portfolio-card,
.section-light .contact-card,
.section-light .service-card,
.section-light .metric-card {
  background: #f9fafb; /* Gris clair */
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04); /* ombre très légère */
}

/* Textes dans sections light */
.section-light h1,
.section-light h2,
.section-light h3,
.section-light h4,
.section-light h5,
.section-light h6 {
  color: #111827;
}

.section-light p,
.section-light li,
.section-light span {
  color: #4b5563;
}

/* Pastilles / Chips / Badges dans section light */
.section-light .chip,
.section-light .portfolio-tag,
.section-light .skill-tag,
.section-light .contact-chip {
  background: #e5e7eb;
  border-color: rgba(156, 163, 175, 0.6);
  color: #374151;
}

/* Inputs dans les sections light */
.section-light input,
.section-light textarea,
.section-light select,
.contact-card .form-control,
.contact-card .form-select {
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  color: #374151;
}

.section-light input:focus,
.section-light textarea:focus,
.section-light select:focus {
  background: #ffffff;
  border-color: #60a5fa;
  box-shadow: none;
}

/* Boutons dans les sections light */
.section-light .btn-main {
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.25);
}

.section-light .btn-ghost {
  background: #ffffff;
  border-color: rgba(148, 163, 184, 0.4);
  color: #1f2937;
}

.section-light .btn-ghost:hover {
  background: #111827;
  color: #f9fafb;
}
@media (max-width: 768px) {
  .primary-nav {
    width: 100%;
    justify-content: flex-start;
    gap: 0.75rem;
    position: relative;
    flex-direction: column; /* important */
    align-items: flex-start;
  }

  /* quand ouvert, on affiche en flux (pas en absolute) */
  .primary-nav.mobile-open .primary-nav-list,
  .primary-nav.mobile-open .nav-actions {
    display: flex;
    position: static;
    width: 100%;
  }

  .primary-nav.mobile-open .primary-nav-list {
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
  }

  .primary-nav.mobile-open .nav-actions {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0 1rem 1rem;
    margin-top: 0;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 0 0 12px 12px;
  }

  body[data-theme="dark"] .primary-nav.mobile-open .primary-nav-list,
  body[data-theme="dark"] .primary-nav.mobile-open .nav-actions {
    background: rgba(15, 23, 42, 0.95);
  }
}
@media (max-width: 576px) {
  .hero-small-stat-left,
  .hero-small-stat-right {
    position: static;
    width: 100%;
    margin-top: 0.75rem;
  }

  .hero-photo-card {
    padding-bottom: 1.2rem; 
  }
}
