/* ============================================
   AT CONSULTANT — Styles de base
   Toutes les propriétés visuelles utilisent des
   CSS custom properties définies dans les thèmes
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-heading);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.8rem); }
h4 { font-size: 1.2rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

::selection {
  background: var(--accent-primary);
  color: #fff;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.container--narrow {
  max-width: 900px;
}

.container--wide {
  max-width: 1400px;
}

/* --- Section --- */
.section {
  padding: 6rem 0;
}

.section--alt {
  background-color: var(--bg-secondary);
}

.section__header {
  text-align: center;
  margin-bottom: 4rem;
}

.section__subtitle {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: 0.75rem;
}

.section__title {
  margin-bottom: 1rem;
}

.section__description {
  max-width: 650px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* --- Header / Navigation --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--header-border);
  transition: all 0.3s ease;
}

.header--scrolled {
  box-shadow: var(--header-shadow);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: 1px;
}

.logo__icon {
  width: 42px;
  height: 42px;
  background: var(--accent-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -1px;
}

.logo__img {
  height: 42px;
  width: auto;
  border-radius: 8px;
}

.logo__text span {
  color: var(--accent-primary);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav__link {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
}

.nav__link:hover,
.nav__link--active {
  color: var(--accent-primary);
  background: var(--nav-hover-bg);
}

.nav__cta {
  margin-left: 1rem;
}

/* Theme switcher */
.theme-switcher {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 1.5rem;
  padding: 0.35rem;
  background: var(--bg-tertiary);
  border-radius: 50px;
  border: 1px solid var(--border-light);
}

.theme-switcher__btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.theme-switcher__btn--active {
  background: var(--accent-primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 51, 153, 0.3);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
  background: none;
  border: none;
  z-index: 1001;
}

.hamburger__line {
  width: 26px;
  height: 2.5px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger--active .hamburger__line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger--active .hamburger__line:nth-child(2) {
  opacity: 0;
}

.hamburger--active .hamburger__line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent-primary);
  color: #fff;
  border-color: var(--accent-primary);
}

.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--btn-shadow);
}

.btn--secondary {
  background: transparent;
  color: var(--accent-primary);
  border-color: var(--accent-primary);
}

.btn--secondary:hover {
  background: var(--accent-primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn--large {
  padding: 1.1rem 2.8rem;
  font-size: 1.05rem;
  border-radius: 12px;
}

.btn--small {
  padding: 0.55rem 1.3rem;
  font-size: 0.85rem;
}

.btn__icon {
  font-size: 1.1em;
  transition: transform 0.3s ease;
}

.btn:hover .btn__icon {
  transform: translateX(3px);
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 80px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg-gradient {
  position: absolute;
  inset: 0;
  background: var(--hero-gradient);
}

.hero__bg-pattern {
  position: absolute;
  inset: 0;
  opacity: var(--hero-pattern-opacity, 0.03);
  background-image: radial-gradient(var(--accent-primary) 1px, transparent 1px);
  background-size: 30px 30px;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.2rem;
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent-primary);
  margin-bottom: 1.5rem;
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-secondary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero__title {
  margin-bottom: 1.5rem;
  font-size: clamp(2.5rem, 5.5vw, 4rem);
}

.hero__title-accent {
  color: var(--accent-primary);
  position: relative;
}

.hero__description {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  max-width: 550px;
  line-height: 1.8;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero__stats {
  display: flex;
  gap: 3rem;
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border-light);
}

.hero__stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent-primary);
  line-height: 1;
}

.hero__stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Floating shapes decorations */
.hero__decoration {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 500px;
  height: 500px;
  z-index: 0;
}

.hero__shape {
  position: absolute;
  border-radius: 30px;
  opacity: 0.15;
}

.hero__shape--1 {
  width: 300px;
  height: 300px;
  background: var(--accent-primary);
  top: 10%;
  right: 0;
  transform: rotate(15deg);
  animation: float 6s ease-in-out infinite;
}

.hero__shape--2 {
  width: 200px;
  height: 200px;
  background: var(--accent-secondary);
  bottom: 10%;
  right: 20%;
  transform: rotate(-10deg);
  animation: float 8s ease-in-out infinite reverse;
}

.hero__shape--3 {
  width: 150px;
  height: 150px;
  background: var(--accent-primary);
  top: 30%;
  right: 40%;
  border-radius: 50%;
  animation: float 7s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(var(--rotation, 15deg)); }
  50% { transform: translateY(-20px) rotate(var(--rotation, 15deg)); }
}

/* --- Services Showcase Cards --- */
.services-showcase {
  position: relative;
  overflow: hidden;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.scard {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.scard__accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--scard-color, var(--accent-primary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 18px 18px 0 0;
}

.scard:hover {
  transform: translateY(-8px);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.08),
    0 0 0 1px var(--scard-color, var(--accent-primary)),
    0 4px 20px color-mix(in srgb, var(--scard-color, var(--accent-primary)) 15%, transparent);
  border-color: transparent;
}

.scard:hover .scard__accent {
  transform: scaleX(1);
}

.scard__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.scard__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--scard-color) 10%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--scard-color);
  transition: all 0.4s ease;
}

.scard:hover .scard__icon {
  background: var(--scard-color);
  color: #fff;
  transform: scale(1.08);
  box-shadow: 0 6px 20px color-mix(in srgb, var(--scard-color) 30%, transparent);
}

.scard__number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--scard-color);
  opacity: 0.12;
  line-height: 1;
  transition: opacity 0.3s ease;
}

.scard:hover .scard__number {
  opacity: 0.25;
}

.scard__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  background: color-mix(in srgb, var(--scard-color) 10%, transparent);
  color: var(--scard-color);
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.scard__title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.scard__hook {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--scard-color);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.scard__text {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-secondary);
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

.scard__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-light);
  gap: 1rem;
}

.scard__cta {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--scard-color);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.scard__arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}

.scard:hover .scard__arrow {
  transform: translateX(4px);
}

.scard__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
}

.scard__tag {
  padding: 0.2rem 0.6rem;
  background: var(--bg-tertiary);
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

/* Highlight card variant */
.scard--highlight {
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--scard-color) 5%, var(--card-bg)),
    var(--card-bg)
  );
  border-color: color-mix(in srgb, var(--scard-color) 15%, var(--card-border));
}

.scard--highlight .scard__accent {
  height: 4px;
  background: linear-gradient(90deg, var(--scard-color), var(--accent-secondary));
  transform: scaleX(1);
}

/* Responsive */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .scard__footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .scard__tags {
    justify-content: flex-start;
  }
}

/* --- Service Visual Panels (services.html) --- */
.sv {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 380px;
  position: relative;
  overflow: hidden;
  gap: 1.75rem;
}

.sv__glow {
  position: absolute;
  top: -40%;
  right: -40%;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, color-mix(in srgb, var(--sd-color) 8%, transparent) 0%, transparent 70%);
  pointer-events: none;
}

.sv__icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: color-mix(in srgb, var(--sd-color) 10%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sd-color);
  flex-shrink: 0;
}

.sv__tag {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: color-mix(in srgb, var(--sd-color) 8%, transparent);
  color: var(--sd-color);
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Metrics row */
.sv__metrics {
  display: flex;
  gap: 1.5rem;
  width: 100%;
  justify-content: center;
}

.sv__metrics--compact {
  gap: 1rem;
}

.sv__metric {
  text-align: center;
  padding: 0.75rem 1rem;
  background: var(--bg-secondary);
  border-radius: 12px;
  border: 1px solid var(--border-light);
  flex: 1;
}

.sv__metric-value {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--sd-color);
  line-height: 1.2;
}

.sv__metric-label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

/* Animated bars (finance) */
.sv__bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 80px;
  width: 100%;
  padding: 0 1rem;
}

.sv__bar {
  flex: 1;
  height: var(--bar-h, 50%);
  background: linear-gradient(to top, var(--sd-color), color-mix(in srgb, var(--sd-color) 40%, transparent));
  border-radius: 6px 6px 0 0;
  animation: barGrow 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: var(--bar-delay, 0s);
  transform-origin: bottom;
}

@keyframes barGrow {
  from { transform: scaleY(0); opacity: 0; }
  to { transform: scaleY(1); opacity: 1; }
}

/* Timeline (previsionnel) */
.sv__timeline {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
}

.sv__tl-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  position: relative;
}

.sv__tl-year {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 2px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
}

.sv__tl-item--active .sv__tl-year {
  background: var(--sd-color);
  border-color: var(--sd-color);
  color: #fff;
  box-shadow: 0 4px 15px color-mix(in srgb, var(--sd-color) 30%, transparent);
}

.sv__tl-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

.sv__tl-item--active .sv__tl-label {
  color: var(--sd-color);
}

.sv__tl-connector {
  flex: 1;
  height: 2px;
  background: var(--border-light);
  margin: 0 -0.5rem;
  margin-bottom: 1.5rem;
}

/* KPIs (controle) */
.sv__kpis {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.sv__kpi {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 0.25rem 0.75rem;
  align-items: center;
}

.sv__kpi-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  grid-column: 1;
  grid-row: 1;
}

.sv__kpi-val {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--sd-color);
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
}

.sv__kpi-bar {
  grid-column: 1;
  grid-row: 2;
  height: 6px;
  background: var(--bg-tertiary);
  border-radius: 3px;
  position: relative;
  overflow: hidden;
}

.sv__kpi-bar::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: var(--kpi-w, 50%);
  background: linear-gradient(90deg, var(--sd-color), color-mix(in srgb, var(--sd-color) 60%, transparent));
  border-radius: 3px;
  animation: kpiGrow 1.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes kpiGrow {
  from { width: 0; }
}

/* Checklist (assistance) */
.sv__checklist {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.sv__check {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  background: var(--bg-secondary);
  border-radius: 10px;
  border: 1px solid var(--border-light);
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: all 0.3s ease;
}

.sv__check--done {
  color: var(--text-secondary);
  border-color: color-mix(in srgb, var(--sd-color) 15%, var(--border-light));
}

.sv__check-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  flex-shrink: 0;
  background: var(--bg-tertiary);
  color: var(--text-muted);
}

.sv__check--done .sv__check-icon {
  background: var(--sd-color);
  color: #fff;
}

/* Gauge (diagnostic) */
.sv__gauge {
  width: 100%;
}

.sv__gauge-track {
  height: 10px;
  background: var(--bg-tertiary);
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.sv__gauge-fill {
  height: 100%;
  width: var(--gauge-pct, 50%);
  background: linear-gradient(90deg, var(--sd-color), color-mix(in srgb, var(--sd-color) 50%, #ffd700));
  border-radius: 5px;
  animation: kpiGrow 2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.sv__gauge-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.sv__gauge-value {
  color: var(--sd-color);
  font-weight: 800;
  font-size: 1rem;
}

/* Service detail hook */
.service-detail__hook {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--sd-color, var(--accent-primary));
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.service-detail__number {
  color: var(--sd-color, var(--accent-primary));
}

/* Distance card icon wrap */
.distance-card__icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--dc-color) 10%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dc-color);
  margin: 0 auto 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .sv {
    min-height: 280px;
    padding: 2rem 1.5rem;
  }

  .sv__metrics {
    flex-wrap: wrap;
  }

  .sv__metric {
    min-width: 80px;
  }

  .sv__timeline {
    flex-direction: column;
    gap: 0.5rem;
  }

  .sv__tl-connector {
    width: 2px;
    height: 20px;
    margin: 0;
    margin-left: 0;
  }
}

/* --- Cards --- */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 2.5rem;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--accent-primary);
}

.card__icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: var(--card-icon-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  color: var(--accent-primary);
}

.card__title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.card__text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.card__list {
  margin-top: 1.25rem;
}

.card__list li {
  padding: 0.4rem 0;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 8px;
  height: 8px;
  background: var(--accent-secondary);
  border-radius: 50%;
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--accent-primary);
}

.card__link:hover {
  gap: 0.75rem;
}

/* --- Grid Layouts --- */
.grid {
  display: grid;
  gap: 2rem;
}

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

/* --- Services Page Specific --- */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 4rem 0;
  border-bottom: 1px solid var(--border-light);
}

.service-detail:nth-child(even) {
  direction: rtl;
}

.service-detail:nth-child(even) > * {
  direction: ltr;
}

.service-detail:last-child {
  border-bottom: none;
}

.service-detail__content {
  padding: 1rem 0;
}

.service-detail__number {
  font-family: var(--font-heading);
  font-size: 5rem;
  font-weight: 800;
  color: var(--accent-primary);
  opacity: 0.1;
  line-height: 1;
  margin-bottom: -1rem;
}

.service-detail__title {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.service-detail__text {
  margin-bottom: 1.5rem;
}

.service-detail__list {
  margin-bottom: 1.5rem;
}

.service-detail__list li {
  padding: 0.6rem 0;
  padding-left: 2rem;
  position: relative;
  color: var(--text-secondary);
}

.service-detail__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-secondary);
  font-weight: 700;
}

.service-detail__visual {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 350px;
  font-size: 5rem;
  position: relative;
  overflow: hidden;
}

.service-detail__visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-primary) 0%, transparent 60%);
  opacity: 0.05;
  border-radius: 20px;
}

/* Distance section */
.distance-section {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 3rem;
  margin-top: 2rem;
}

.distance-section__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.distance-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--bg-primary);
  border-radius: 14px;
  border: 1px solid var(--border-light);
}

.distance-card__icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.distance-card__title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

/* --- Timeline (Parcours) --- */
.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--border-light);
  transform: translateX(-50%);
}

.timeline__item {
  display: flex;
  justify-content: flex-end;
  padding-right: calc(50% + 3rem);
  position: relative;
  margin-bottom: 3rem;
}

.timeline__item:nth-child(even) {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: calc(50% + 3rem);
}

.timeline__dot {
  position: absolute;
  left: 50%;
  top: 1.5rem;
  width: 18px;
  height: 18px;
  background: var(--accent-primary);
  border: 4px solid var(--bg-primary);
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 2;
  box-shadow: 0 0 0 4px var(--accent-primary);
}

.timeline__content {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 2rem;
  max-width: 500px;
  transition: all 0.3s ease;
}

.timeline__content:hover {
  box-shadow: var(--card-shadow-hover);
}

.timeline__date {
  display: inline-block;
  padding: 0.3rem 1rem;
  background: var(--accent-primary);
  color: #fff;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.timeline__title {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.timeline__company {
  color: var(--accent-primary);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.timeline__text {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* --- Formation Cards --- */
.formation-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.formation-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  gap: 1.5rem;
  transition: all 0.3s ease;
}

.formation-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
}

.formation-card__year {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent-primary);
  opacity: 0.3;
  line-height: 1;
  min-width: 80px;
}

.formation-card__title {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.formation-card__school {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
}

.formation-card__badge {
  display: inline-block;
  padding: 0.2rem 0.75rem;
  background: var(--accent-secondary);
  color: #fff;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

/* --- Testimonials --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.testimonial-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 2.5rem;
  position: relative;
  transition: all 0.4s ease;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-shadow-hover);
}

.testimonial-card__quote {
  font-size: 3rem;
  color: var(--accent-primary);
  opacity: 0.2;
  line-height: 1;
  margin-bottom: 1rem;
  font-family: serif;
}

.testimonial-card__text {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid var(--border-light);
  padding-top: 1.25rem;
}

.testimonial-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.testimonial-card__name {
  font-weight: 600;
  color: var(--text-heading);
  font-size: 0.95rem;
}

.testimonial-card__role {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.testimonial-card__stars {
  color: #f4b942;
  font-size: 0.9rem;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

/* --- Blog --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.blog-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s ease;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-shadow-hover);
}

.blog-card__image {
  height: 200px;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  overflow: hidden;
  position: relative;
}

.blog-card__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  opacity: 0.15;
}

.blog-card__category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.3rem 0.85rem;
  background: var(--accent-primary);
  color: #fff;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 1;
}

.blog-card__body {
  padding: 1.75rem;
}

.blog-card__date {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.blog-card__title {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.blog-card__excerpt {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.blog-card__link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.blog-card__link:hover {
  gap: 0.75rem;
}

/* Blog article page */
.article {
  padding-top: 120px;
}

.article__header {
  text-align: center;
  margin-bottom: 3rem;
}

.article__category {
  display: inline-block;
  padding: 0.3rem 1rem;
  background: var(--accent-primary);
  color: #fff;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.article__title {
  max-width: 800px;
  margin: 0 auto 1rem;
}

.article__meta {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.article__content {
  max-width: 750px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.9;
}

.article__content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.article__content p {
  margin-bottom: 1.25rem;
}

.article__content blockquote {
  border-left: 4px solid var(--accent-primary);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--bg-secondary);
  border-radius: 0 10px 10px 0;
  font-style: italic;
}

/* --- Contact Form --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.contact-info {
  padding: 2.5rem;
  background: var(--accent-primary);
  border-radius: 20px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.contact-info::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 60%);
}

.contact-info__title {
  color: #fff;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.contact-info__text {
  color: rgba(255,255,255,0.8);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-info__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-info__label {
  font-weight: 600;
  margin-bottom: 0.15rem;
  font-size: 0.92rem;
}

.contact-info__value {
  color: rgba(255,255,255,0.8);
  font-size: 0.92rem;
}

.contact-info__socials {
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.contact-info__social {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.contact-info__social:hover {
  background: rgba(255,255,255,0.25);
  color: #fff;
  transform: translateY(-2px);
}

.contact-form {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 2.5rem;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form__group {
  margin-bottom: 1.25rem;
}

.form__label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 0.5rem;
}

.form__label span {
  color: var(--accent-secondary);
}

.form__input,
.form__select,
.form__textarea {
  width: 100%;
  padding: 0.85rem 1.15rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-primary);
  background: var(--input-bg);
  border: 2px solid var(--input-border);
  border-radius: 10px;
  transition: all 0.3s ease;
  outline: none;
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 4px var(--input-focus-shadow);
}

.form__input::placeholder,
.form__textarea::placeholder {
  color: var(--text-muted);
}

.form__textarea {
  resize: vertical;
  min-height: 140px;
}

.form__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* --- Key Figures / Stats --- */
.stats-bar {
  background: var(--accent-primary);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.stats-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.05) 100%);
}

.stats-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.stats-bar__item {
  text-align: center;
  color: #fff;
}

.stats-bar__number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stats-bar__label {
  font-size: 0.95rem;
  opacity: 0.85;
}

/* --- CTA Banner --- */
.cta-banner {
  background: var(--cta-bg);
  border-radius: 24px;
  padding: 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--cta-overlay);
  border-radius: 24px;
}

.cta-banner__content {
  position: relative;
  z-index: 1;
}

.cta-banner__title {
  color: #fff;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 1rem;
}

.cta-banner__text {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.cta-banner .btn--primary {
  background: #fff;
  color: var(--accent-primary);
  border-color: #fff;
}

.cta-banner .btn--primary:hover {
  background: rgba(255,255,255,0.9);
}

/* --- Footer --- */
.footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 4rem 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer__brand {
  max-width: 300px;
}

.footer__brand .logo {
  margin-bottom: 1rem;
}

.footer__brand-text {
  font-size: 0.92rem;
  color: var(--footer-muted);
  line-height: 1.7;
}

.footer__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--footer-heading);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
}

.footer__link {
  display: block;
  padding: 0.35rem 0;
  color: var(--footer-muted);
  font-size: 0.92rem;
  transition: all 0.3s ease;
}

.footer__link:hover {
  color: var(--accent-primary);
  padding-left: 0.5rem;
}

.footer__bottom {
  border-top: 1px solid var(--footer-border);
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--footer-muted);
}

.footer__socials {
  display: flex;
  gap: 0.75rem;
}

.footer__social {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--footer-social-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--footer-muted);
  transition: all 0.3s ease;
}

.footer__social:hover {
  background: var(--accent-primary);
  color: #fff;
}

/* --- Page Header (internal pages) --- */
.page-header {
  padding: 10rem 0 4rem;
  text-align: center;
  background: var(--page-header-bg);
  position: relative;
  overflow: hidden;
}

.page-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--page-header-overlay);
}

.page-header__content {
  position: relative;
  z-index: 1;
}

.page-header__title {
  margin-bottom: 1rem;
  color: var(--page-header-title-color);
}

.page-header__breadcrumb {
  font-size: 0.9rem;
  color: var(--page-header-text-color);
}

.page-header__breadcrumb a {
  color: var(--page-header-link-color);
}

/* --- Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }
.reveal--delay-4 { transition-delay: 0.4s; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .service-detail { grid-template-columns: 1fr; gap: 2rem; }
  .service-detail:nth-child(even) { direction: ltr; }
  .hero__decoration { display: none; }
  .stats-bar__grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .distance-section__grid { grid-template-columns: repeat(2, 1fr); }
  .formation-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 4rem 0; }
  .container { padding: 0 1.25rem; }

  .hamburger { display: flex; }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background: var(--mobile-nav-bg);
    padding: 6rem 2rem 2rem;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -5px 0 30px rgba(0,0,0,0.1);
    z-index: 999;
  }

  .nav--open {
    right: 0;
  }

  .nav__list {
    flex-direction: column;
    gap: 0.5rem;
  }

  .nav__link {
    font-size: 1.1rem;
    padding: 0.75rem 1rem;
  }

  .nav__cta {
    margin-left: 0;
    margin-top: 1rem;
  }

  .theme-switcher {
    margin-left: 0;
    margin-top: 1.5rem;
    align-self: flex-start;
  }

  .nav__overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 998;
  }

  .nav--open ~ .nav__overlay {
    display: block;
  }

  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

  .testimonials-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .stats-bar__grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero__stats {
    flex-wrap: wrap;
    gap: 2rem;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    text-align: center;
    justify-content: center;
  }

  .form__row {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .cta-banner {
    padding: 3rem 1.5rem;
  }

  /* Timeline mobile */
  .timeline::before {
    left: 1.5rem;
  }

  .timeline__item,
  .timeline__item:nth-child(even) {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 4rem;
  }

  .timeline__dot {
    left: 1.5rem;
  }

  .timeline__content {
    max-width: 100%;
  }

  .distance-section__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .stats-bar__grid {
    grid-template-columns: 1fr;
  }

  .hero__stat-number {
    font-size: 2rem;
  }

  .stats-bar__number {
    font-size: 2.2rem;
  }
}
