/* Identité visuelle Asalys */
/* Asalys — identité « Bouclier vivant »
   Valeurs : Clarté · Durabilité · Proximité */
:root {
  --font-family-headings: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-family-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --color-primary: #1e4d3b;
  --color-primary-dark: #15382c;
  --color-accent: #0d6e6e;
  --color-accent-light: #a6c4a2;
  --color-bg-dark: #1e4d3b;
  --color-bg-body: #ffffff;
  --color-text-bright: #2a2f36;
  --color-text-muted: #5e6a64;
  --color-text-dim: #8d958f;
  --color-white: #ffffff;
  --color-teal: #0d6e6e;
  --color-line: #ebecec;

  --color-glass-bg: rgba(255, 253, 249, 0.9);
  --color-glass-bg-strong: #ffffff;
  --color-glass-border: #ebecec;
  --color-glass-border-hover: #a6c4a2;
  --color-primary-soft: rgba(30, 77, 59, 0.07);
  --color-primary-line: rgba(30, 77, 59, 0.14);

  --gradient-page: linear-gradient(180deg, #ffffff 0%, #ffffff 100%);
  --gradient-primary: linear-gradient(135deg, #1e4d3b 0%, #28634f 100%);
  --gradient-primary-hover: linear-gradient(135deg, #28634f 0%, #1e4d3b 100%);
  --gradient-dark-panel: linear-gradient(145deg, #1e4d3b 0%, #15382c 100%);
  --gradient-soft-panel: linear-gradient(145deg, #ffffff 0%, #f2f5f4 100%);

  --shadow-sm: 0 8px 24px rgba(42, 47, 54, 0.05);
  --shadow-md: 0 18px 48px rgba(42, 47, 54, 0.08);
  --shadow-lg: 0 28px 80px rgba(42, 47, 54, 0.12);
  --shadow-hover: 0 24px 60px rgba(42, 47, 54, 0.12);
  --shadow-glow-neon: none;
  --shadow-inset-glass: none;

  --border-radius-sm: 10px;
  --border-radius-md: 16px;
  --border-radius-lg: 28px;
  --container: 1180px;
}

html { background: #ffffff; }
body {
  cursor: auto !important;
  background: #ffffff;
  color: var(--color-text-bright);
  letter-spacing: -0.005em;
}

/* Retire les effets visuels trop démonstratifs de l’ancienne direction */
.custom-cursor-dot,
.custom-cursor-circle,
.glass-reflection-system,
.ambient-glow-blob,
.background-data-grid,
.contact-bg-glow,
.card-glow::before,
.card-glow::after { display: none !important; }

* { cursor: auto !important; }
a, button, select, input, textarea { cursor: pointer !important; }
input, textarea { cursor: text !important; }

h1, h2, h3, h4, h5, h6 {
  color: var(--color-primary-dark);
  font-family: var(--font-family-headings);
  letter-spacing: -0.045em;
}
h2 { font-size: clamp(2.25rem, 4.4vw, 4rem); line-height: 1.04; }
p { color: var(--color-text-muted); }
section { padding: 104px 24px; }

/* Header */
.main-header {
  top: 0;
  padding: 0;
  border-bottom: 1px solid rgba(30, 77, 59, 0.11);
  background: rgba(247, 243, 237, 0.9);
  box-shadow: none;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.header-container { min-height: 84px; }
.logo-area { display: flex; align-items: center; }
.logo-area a { display: inline-flex; align-items: center; }
.logo-img-main { display: block; width: 238px; height: auto; }
.logo-img-footer { display: block; width: 255px; height: auto; }
.logo-svg-main, .logo-svg-footer { display: none !important; }
.scroll-progress { height: 2px; background: transparent; }
.scroll-progress span { background: var(--color-teal); }
.main-nav { gap: 30px; }
.nav-link {
  color: #425049;
  font-size: .86rem;
  font-weight: 650;
  letter-spacing: .01em;
}
.nav-link::after { height: 1px; background: var(--color-primary); }
.nav-link:hover { color: var(--color-primary); }
.nav-btn {
  padding: 12px 19px;
  border: 1px solid var(--color-primary);
  border-radius: 999px;
  background: var(--color-primary);
  box-shadow: none;
  color: #ffffff;
  font-size: .84rem;
}
.nav-btn:hover { background: #28634f; box-shadow: none; transform: translateY(-1px); }
.mobile-nav-toggle { color: var(--color-primary); }

/* Boutons */
.btn {
  min-height: 52px;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: .9rem;
  letter-spacing: 0;
  box-shadow: none;
}
.btn-primary { background: var(--color-primary); box-shadow: none; }
.btn-primary::before { display: none; }
.btn-primary:hover { background: #28634f; box-shadow: none; transform: translateY(-2px); }
.btn-secondary {
  border: 1px solid rgba(30,77,59,.2);
  background: transparent;
  color: var(--color-primary);
}
.btn-secondary:hover { border-color: var(--color-primary); background: rgba(30,77,59,.04); }

/* Hero */
.hero-section {
  min-height: 820px;
  padding-top: 170px;
  background:
    radial-gradient(circle at 7% 22%, rgba(166,196,162,.24) 0 170px, transparent 172px),
    radial-gradient(circle at 93% 79%, rgba(13,110,110,.12) 0 210px, transparent 212px),
    #ffffff;
}
.hero-section::before {
  content: "";
  position: absolute;
  inset: 112px 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(30,77,59,.12), transparent);
}
.hero-container { grid-template-columns: minmax(0, 1.02fr) minmax(420px, .98fr); gap: 72px; }
.hero-content { max-width: 660px; }
.hero-badge {
  width: fit-content;
  margin-bottom: 26px;
  padding: 8px 13px;
  border: 1px solid rgba(30,77,59,.15);
  border-radius: 999px;
  background: rgba(255,253,249,.72);
  color: var(--color-primary);
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .16em;
}
.badge-pulse { width: 7px; height: 7px; background: var(--color-teal); box-shadow: none; animation: none; }
.hero-catchline {
  max-width: 720px;
  margin-bottom: 26px;
  font-size: clamp(3.35rem, 5.8vw, 5.65rem);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.066em;
}
.hero-content p { max-width: 625px; font-size: 1.08rem; line-height: 1.75; }
.hero-actions { gap: 14px; margin-top: 38px; }
.hero-visual { padding: 0; }
.visual-wrapper {
  min-height: 570px;
  border: 1px solid var(--color-line);
  border-radius: 42px 42px 42px 14px;
  background:
    linear-gradient(rgba(30,77,59,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30,77,59,.035) 1px, transparent 1px),
    #ffffff;
  background-size: 32px 32px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: none;
}
.visual-wrapper::before {
  content: "Infrastructure claire, sécurisée et durable";
  position: absolute;
  top: 28px;
  left: 30px;
  z-index: 3;
  color: var(--color-primary);
  font-family: var(--font-family-headings);
  font-size: .75rem;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.net-svg { padding: 46px 12px 0; }
.net-line { stroke: rgba(30,77,59,.22); }
.node-circle { fill: #ffffff; stroke: #1e4d3b; stroke-width: 1.6; filter: none; }
.net-node:hover .node-circle, .net-node.active .node-circle { fill: #1e4d3b; stroke: #1e4d3b; filter: none; }
.node-svg-icon { stroke: #1e4d3b; fill: none; }
.net-node:hover .node-svg-icon, .net-node.active .node-svg-icon { stroke: #ffffff; fill: none; }
.node-label { fill: #526159; font-family: var(--font-family-headings); font-size: 8px; letter-spacing: 1px; }
.packet-flow { fill: var(--color-teal); filter: none; }
.svg-rotator { opacity: .35; }
.node-details-card {
  right: 22px; bottom: 22px;
  border: 1px solid var(--color-line);
  border-radius: 20px 20px 20px 8px;
  background: rgba(247,243,237,.94);
  box-shadow: var(--shadow-sm);
}
.node-details-card h4 { color: var(--color-primary); }

/* Titres de section */
.section-header { max-width: 810px; margin-bottom: 58px; }
.section-subtitle {
  margin-bottom: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-teal);
  font-size: .75rem;
  letter-spacing: .18em;
}
.section-header p { max-width: 650px; margin: 20px auto 0; font-size: 1.04rem; line-height: 1.75; }

/* Métriques */
.metrics-section { padding: 0 24px 72px; background: #ffffff; }
.metrics-container {
  overflow: hidden;
  padding: 10px;
  border: 1px solid rgba(30,77,59,.12);
  border-radius: 30px;
  background: #1e4d3b;
  box-shadow: var(--shadow-md);
}
.metric-card { min-height: 150px; padding: 28px 24px; border-color: rgba(247,243,237,.12); background: transparent; }
.metric-card + .metric-card { border-left: 1px solid rgba(247,243,237,.14); }
.metric-card h3 { color: #ffffff; font-size: 2.25rem; letter-spacing: -.05em; }
.metric-card p { color: rgba(247,243,237,.68); font-size: .79rem; letter-spacing: .01em; }

/* Cartes */
.card, .service-card, .specialty-card, .visual-wrapper {
  border-color: var(--color-line);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
:is(.card, .service-card, .specialty-card)::after { display: none; }
.spotlight-glow { display: none; }
.card:hover, .service-card:hover, .specialty-card:hover {
  border-color: #b7c7b7;
  box-shadow: var(--shadow-hover);
  transform: translateY(-5px);
}
.services-section { background: #ffffff; }
.services-grid { gap: 20px; }
.service-card {
  min-height: 560px;
  padding: 36px;
  border-radius: 30px 30px 30px 10px;
}
.service-card:nth-child(2) { border-radius: 30px 10px 30px 30px; }
.service-card h3 { margin-top: 28px; font-size: 1.65rem; }
.service-card > p { margin: 16px 0 24px; line-height: 1.68; }
.card-icon, .specialty-icon, .detail-icon {
  border: 1px solid rgba(30,77,59,.12);
  background: rgba(166,196,162,.17);
  color: var(--color-primary);
}
.card-icon { border-radius: 50% 50% 50% 14px; }
.card-list { margin-top: auto; }
.card-list li { align-items: flex-start; color: #425049; line-height: 1.55; }
.card-list i { margin-top: 6px; color: var(--color-teal); font-size: .48rem; }
.card-featured {
  border-color: #1e4d3b;
  background: #1e4d3b;
}
.card-featured h3, .card-featured p, .card-featured .card-list li { color: #ffffff; }
.card-featured .card-icon { border-color: rgba(247,243,237,.22); background: rgba(247,243,237,.1); color: #ffffff; }
.card-featured::before {
  content: "ACCOMPAGNEMENT COMPLET";
  background: #ffffff;
  color: #1e4d3b;
  box-shadow: none;
}
.card-featured:hover { border-color: #28634f; box-shadow: var(--shadow-hover); }

/* Expertises */
.specialites-section {
  background: #f3f6f5;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}
.specialites-grid { gap: 16px; }
.specialty-card {
  min-height: 250px;
  padding: 28px;
  border-radius: 24px 24px 24px 8px;
}
.specialty-card h4 { margin-top: 22px; font-size: 1.05rem; letter-spacing: -.025em; }
.specialty-card p { line-height: 1.62; }

/* Audit et supervision */
.interactive-grid-section { background: #ffffff; }
.interactive-container { gap: 22px; }
.diagnostic-card-wrapper, .status-card-wrapper {
  border-radius: 34px 34px 34px 12px;
  box-shadow: var(--shadow-md);
}
.card-header { border-bottom-color: var(--color-line); }
.card-header > i { color: var(--color-teal); }
.diagnostic-step { border-color: var(--color-line); background: #fbf8f3; }
.diagnostic-step-icon { border-color: rgba(30,77,59,.12); background: rgba(166,196,162,.18); color: var(--color-primary); }
.diagnostic-summary-panel { background: #1e4d3b; border-radius: 26px 26px 26px 8px; }
.diagnostic-summary-panel h3, .diagnostic-summary-panel p, .diagnostic-summary-panel span { color: #ffffff; }
.diagnostic-kicker { color: #178383 !important; }
.diagnostic-metric { border-color: rgba(247,243,237,.14); background: rgba(247,243,237,.07); }
.status-card-wrapper { background: #ffffff; }
.status-header-panel { background: #1e4d3b; }
.status-header-panel h2, .status-header-panel p { color: #ffffff; }
.status-dot, .status-item .ok { background: #7f9e82; box-shadow: none; }
.status-item { border-color: var(--color-line); background: #fbf8f3; }
.status-icon { background: rgba(166,196,162,.18); color: var(--color-primary); }
.live-graph-card { border-color: var(--color-line); background: #1e4d3b; }
.graph-title, .latency-stat, .latency-unit { color: #ffffff; }
.graph-footer { color: rgba(247,243,237,.6); }
.graph-live-tag { background: rgba(13,110,110,.18); color: #74b3b3; }
.sparkline-path { stroke: #178383; filter: none; }

/* Contact */
.contact-section {
  overflow: hidden;
  background:
    radial-gradient(circle at 87% 15%, rgba(166,196,162,.14), transparent 28%),
    #1e4d3b;
}
.contact-container { gap: 70px; }
.contact-info .section-subtitle { color: #178383; }
.contact-info h2 { color: #ffffff; }
.contact-info > p { color: rgba(247,243,237,.7); }
.detail-item { border-color: rgba(247,243,237,.13); }
.detail-icon { border-color: rgba(247,243,237,.16); background: rgba(247,243,237,.08); color: #178383; }
.detail-texts span { color: rgba(247,243,237,.55); }
.detail-texts strong { color: #ffffff; }
.contact-form-card {
  border-color: rgba(247,243,237,.15);
  border-radius: 34px 34px 34px 12px;
  background: #ffffff;
  box-shadow: 0 30px 80px rgba(0,0,0,.18);
}
.form-group label { color: var(--color-primary-dark); }
.form-group :is(input, textarea, select) {
  border-color: #d9d2c8;
  border-radius: 13px;
  background: #ffffff;
}
.form-group :is(input, textarea, select):focus { border-color: #789b7b; box-shadow: 0 0 0 3px rgba(111,141,114,.14); }
.form-success-state .success-icon { color: var(--color-primary); }

/* Footer */
.main-footer {
  border-top: 1px solid rgba(247,243,237,.1);
  background: #15382c;
}
.logo-img-footer { filter: none; }
.footer-brand p, .footer-col a, .footer-bottom p { color: rgba(247,243,237,.62); }
.footer-col h4 { color: #ffffff; }
.footer-col a:hover { color: #ffffff; }
.social-icons a { border-color: rgba(247,243,237,.14); background: rgba(247,243,237,.06); color: #ffffff; }
.social-icons a:hover { border-color: #178383; background: #178383; color: #15382c; box-shadow: none; }
.footer-bottom { border-top-color: rgba(247,243,237,.1); }

/* Pages juridiques */
body:has(main .hero-section[style]) .hero-section {
  min-height: auto;
  padding-top: 164px !important;
  padding-bottom: 54px !important;
  background: #ffffff;
}
body:has(main .hero-section[style]) .hero-content { max-width: none; }
body:has(main .hero-section[style]) .hero-catchline { font-size: clamp(2.8rem, 6vw, 4.6rem) !important; }
body:has(main .hero-section[style]) main > section:nth-of-type(2) > div {
  max-width: 860px !important;
  padding: 54px !important;
  border: 1px solid var(--color-line) !important;
  border-radius: 30px 30px 30px 10px !important;
  background: #ffffff !important;
  box-shadow: var(--shadow-md) !important;
  backdrop-filter: none !important;
}
body:has(main .hero-section[style]) main > section:nth-of-type(2) h2 {
  color: var(--color-primary-dark) !important;
  font-size: 1.45rem !important;
  letter-spacing: -.025em;
}

/* Accessibilité et mouvement */
:focus-visible { outline: 3px solid rgba(13,110,110,.55); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media (max-width: 1050px) {
  .hero-container { grid-template-columns: 1fr; gap: 48px; }
  .hero-content { max-width: 790px; }
  .hero-visual { max-width: 650px; width: 100%; margin: 0 auto; }
  .hero-section { min-height: auto; }
  .main-nav { gap: 18px; }
  .logo-img-main { width: 210px; }
}

@media (max-width: 800px) {
  section { padding: 82px 20px; }
  .header-container { min-height: 74px; }
  .logo-img-main { width: 190px; }
  .main-nav {
    top: 74px;
    border-top: 1px solid var(--color-line);
    background: rgba(247,243,237,.98);
  }
  .main-nav .nav-link { color: var(--color-primary-dark); }
  .hero-section { padding-top: 132px; background: #ffffff; }
  .hero-catchline { font-size: clamp(2.8rem, 13vw, 4.35rem); }
  .hero-actions { align-items: stretch; }
  .visual-wrapper { min-height: 470px; border-radius: 30px 30px 30px 10px; }
  .metrics-container { grid-template-columns: repeat(2,1fr); }
  .metric-card + .metric-card { border-left: 0; }
  .metric-card:nth-child(even) { border-left: 1px solid rgba(247,243,237,.14); }
  .metric-card:nth-child(n+3) { border-top: 1px solid rgba(247,243,237,.14); }
  .service-card { min-height: auto; }
  .contact-container { gap: 48px; }
  body:has(main .hero-section[style]) main > section:nth-of-type(2) > div { padding: 32px !important; }
}

@media (max-width: 520px) {
  .logo-img-main { width: 168px; }
  .hero-badge { font-size: .62rem; letter-spacing: .1em; }
  .metrics-container { grid-template-columns: 1fr; }
  .metric-card:nth-child(even) { border-left: 0; }
  .metric-card + .metric-card { border-top: 1px solid rgba(247,243,237,.14); }
  .logo-img-footer { width: 220px; }
}

@media (max-width: 1050px) {
  .hero-visual { order: initial; }
}


/* --- Correctifs logo validé + contrastes renforcés --- */
.logo-img-main { width: 226px; }
.logo-img-footer { width: 242px; }
.footer-brand .logo-area a { display: inline-flex; align-items: center; }

:root {
  --color-text-muted: #4f5b55;
  --color-text-dim: #6b756f;
}

.hero-content p,
.section-header p,
.service-card > p,
.specialty-card p,
.diagnostic-step p,
.contact-info > p,
.footer-brand p {
  color: #4f5b55;
}

.metric-card p {
  color: rgba(247,243,237,.86);
}

.card-featured p,
.card-featured .card-list li {
  color: rgba(247,243,237,.9);
}

.diagnostic-summary-panel h3,
.diagnostic-summary-panel strong {
  color: #ffffff;
}

.diagnostic-summary-panel p,
.diagnostic-summary-panel span,
.diagnostic-summary-panel .mini-spec-item span,
.diagnostic-summary-panel .diagnostic-metric span {
  color: rgba(247,243,237,.88);
}

.diagnostic-kicker {
  color: #8cc2c2 !important;
}

.live-pulse-badge {
  border-color: rgba(30,77,59,.18);
  background-color: rgba(30,77,59,.08);
  color: #1e4d3b;
}

.status-name {
  color: #1e4d3b;
}

.status-value.ok {
  color: #1d6f4d;
}

.live-graph-card {
  background: linear-gradient(145deg, #16392d 0%, #10271f 100%);
}

.graph-title {
  color: rgba(247,243,237,.88);
}

.graph-footer,
.latency-unit {
  color: rgba(247,243,237,.78);
}

.detail-texts span {
  color: rgba(247,243,237,.74);
}

.footer-brand p, .footer-col a, .footer-bottom p {
  color: rgba(247,243,237,.78);
}

@media (max-width: 1050px) {
  .logo-img-main { width: 204px; }
}

@media (max-width: 800px) {
  .logo-img-main { width: 188px; }
}

@media (max-width: 520px) {
  .logo-img-main { width: 170px; }
  .logo-img-footer { width: 214px; }
}


/* --- Interactions organiques : curseur & cartes --- */
.interactive-container {
  grid-template-columns: minmax(0, 1fr);
}

.diagnostic-card-wrapper {
  width: 100%;
}

@media (min-width: 1025px) and (pointer: fine) {
  body.custom-cursor-enabled,
  body.custom-cursor-enabled * {
    cursor: none !important;
  }

  body.custom-cursor-enabled .custom-cursor-dot,
  body.custom-cursor-enabled .custom-cursor-circle {
    display: block !important;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99999;
    pointer-events: none;
    border-radius: 999px;
    opacity: 0;
  }

  body.cursor-ready .custom-cursor-dot,
  body.cursor-ready .custom-cursor-circle {
    opacity: 1;
  }

  .custom-cursor-dot {
    width: 7px;
    height: 7px;
    background: #0d6e6e;
    box-shadow: 0 0 0 4px rgba(13,110,110,.10), 0 5px 14px rgba(21,56,44,.18);
    transition: width .22s ease, height .22s ease, opacity .22s ease, background-color .22s ease;
  }

  .custom-cursor-circle {
    z-index: 99998;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(30,77,59,.42);
    background: transparent;
    box-shadow: 0 8px 24px rgba(21,56,44,.08);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: width .28s ease, height .28s ease, border-color .28s ease, background-color .28s ease, box-shadow .28s ease, opacity .2s ease;
  }

  body.cursor-on-card .custom-cursor-circle {
    width: 50px;
    height: 50px;
    border-color: rgba(111,141,114,.72);
    background: transparent;
    box-shadow: 0 12px 30px rgba(30,77,59,.12), inset 0 0 0 1px rgba(255,253,249,.22);
  }

  body.cursor-hovering .custom-cursor-dot {
    width: 5px;
    height: 5px;
    background: #1e4d3b;
  }

  body.cursor-hovering .custom-cursor-circle {
    width: 58px;
    height: 58px;
    border-color: rgba(13,110,110,.8);
    background: transparent;
    box-shadow: 0 14px 34px rgba(21,56,44,.14), 0 0 0 5px rgba(13,110,110,.045);
  }
}

.spotlight-card {
  --spotlight-color: rgba(111,141,114,.27);
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform .28s cubic-bezier(.2,.7,.2,1), border-color .28s ease, box-shadow .28s ease;
}

.spotlight-card > :not(.spotlight-glow) {
  position: relative;
  z-index: 2;
}

.spotlight-card .spotlight-glow {
  display: block !important;
  width: 440px;
  height: 440px;
  opacity: 0;
  background: radial-gradient(circle, var(--spotlight-color) 0%, rgba(166,196,162,.09) 38%, transparent 70%);
  filter: blur(1px);
  transition: opacity .35s ease;
}

.spotlight-card:hover .spotlight-glow {
  opacity: 1;
}

.spotlight-card:hover {
  border-color: rgba(111,141,114,.72) !important;
  box-shadow:
    0 30px 72px rgba(42,47,54,.14),
    0 0 0 1px rgba(166,196,162,.22),
    inset 0 1px 0 rgba(255,255,255,.62) !important;
}

:is(.service-card, .specialty-card, .card).spotlight-card::after {
  display: block !important;
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(112deg, transparent 0 36%, rgba(255,255,255,.38) 45%, rgba(166,196,162,.12) 49%, transparent 58%);
  transform: translateX(-120%);
}

:is(.service-card, .specialty-card, .card).spotlight-card:hover::after {
  opacity: .7;
  animation: asalys-card-sheen 1.05s ease-out both;
}

.card-featured.spotlight-card {
  --spotlight-color: rgba(247,243,237,.20);
}

.card-featured.spotlight-card:hover {
  border-color: rgba(185,203,183,.86) !important;
  box-shadow:
    0 34px 78px rgba(21,56,44,.24),
    0 0 0 1px rgba(247,243,237,.18),
    inset 0 1px 0 rgba(255,255,255,.14) !important;
}

.spotlight-card:hover :is(.card-icon, .specialty-icon, .diagnostic-step-icon) {
  transform: translateY(-2px) scale(1.045);
  box-shadow: 0 12px 28px rgba(30,77,59,.14);
}

@keyframes asalys-card-sheen {
  from { transform: translateX(-120%); }
  to { transform: translateX(120%); }
}

@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
  .spotlight-card {
    transform: none !important;
  }

  .spotlight-card .spotlight-glow,
  :is(.service-card, .specialty-card, .card).spotlight-card::after {
    display: none !important;
  }
}

/* --- Charte officielle Asalys 2026 + animations hero --- */
:root {
  --font-family-headings: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-family-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --color-primary: #1E4D3B;
  --color-primary-dark: #15382C;
  --color-accent: #0D6E6E;
  --color-accent-light: #A6C4A2;
  --color-bg-dark: #1E4D3B;
  --color-bg-body: #FFFFFF;
  --color-text-bright: #2A2F36;
  --color-text-muted: #4E5C58;
  --color-text-dim: #66726F;
  --color-white: #FFFFFF;
  --color-teal: #0D6E6E;
  --color-line: #EBECEC;
  --color-glass-bg: rgba(255,255,255,.88);
  --color-glass-bg-strong: #FFFFFF;
  --color-glass-border: #EBECEC;
  --color-glass-border-hover: #A6C4A2;
  --gradient-primary: linear-gradient(135deg, #1E4D3B 0%, #0D6E6E 100%);
  --gradient-primary-hover: linear-gradient(135deg, #0D6E6E 0%, #1E4D3B 100%);
  --gradient-dark-panel: linear-gradient(145deg, #1E4D3B 0%, #15382C 100%);
  --gradient-soft-panel: linear-gradient(145deg, #FFFFFF 0%, #F3F6F5 100%);
}

html, body { background: #FFFFFF; }
body { color: #2A2F36; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-headings);
  font-weight: 600;
  color: #2A2F36;
  letter-spacing: -.042em;
}

p, li, label, input, textarea, select, button, a {
  font-family: var(--font-family-body);
}

.main-header {
  border-bottom-color: rgba(30,77,59,.10);
  background: rgba(255,255,255,.82);
  box-shadow: 0 8px 30px rgba(42,47,54,.035);
  animation: asalys-header-enter .72s cubic-bezier(.2,.75,.25,1) both;
}

.logo-img-main { width: 236px; }
.logo-img-footer { width: 252px; }

.nav-btn, .btn-primary {
  background: #1E4D3B;
  border-color: #1E4D3B;
}
.nav-btn:hover, .btn-primary:hover {
  background: #0D6E6E;
  border-color: #0D6E6E;
}
.scroll-progress span { background: #0D6E6E; }

/* Hero animé inspiré des lignes fluides de la charte Asalys. */
body.home-page #home.hero-section {
  --hero-bg-x: 0px;
  --hero-bg-y: 0px;
  --hero-bg-scroll: 0px;
  --hero-card-x: 0px;
  --hero-card-y: 0px;
  --hero-card-scroll: 0px;
  --hero-card-rx: 0deg;
  --hero-card-ry: 0deg;
  position: relative;
  isolation: isolate;
  min-height: 830px;
  padding-top: 168px;
  background: #FFFFFF;
}

body.home-page #home.hero-section::before {
  content: "";
  position: absolute;
  inset: -28px;
  z-index: -2;
  height: auto;
  background: none;
  opacity: .93;
  transform: translate3d(var(--hero-bg-x), calc(var(--hero-bg-y) + var(--hero-bg-scroll)), 0) scale(1.035);
  animation: asalys-hero-background-drift 18s ease-in-out infinite alternate;
  will-change: transform, background-position;
}

body.home-page #home.hero-section::after {
  content: "";
  position: absolute;
  inset: 84px 0 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 72% 32%, rgba(166,196,162,.15), transparent 24%),
    radial-gradient(circle at 35% 25%, rgba(13,110,110,.055), transparent 22%),
    linear-gradient(90deg, rgba(255,255,255,.26), transparent 48%, rgba(255,255,255,.08));
}

body.home-page #home .hero-container {
  position: relative;
  z-index: 2;
}

body.home-page #home .hero-content > * {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity .72s cubic-bezier(.2,.72,.25,1),
    transform .72s cubic-bezier(.2,.72,.25,1);
}

body.home-page.hero-motion-ready #home .hero-content > * {
  opacity: 1;
  transform: translateY(0);
}
body.home-page.hero-motion-ready #home .hero-content .hero-badge { transition-delay: .12s; }
body.home-page.hero-motion-ready #home .hero-content .hero-catchline { transition-delay: .22s; }
body.home-page.hero-motion-ready #home .hero-content > p { transition-delay: .34s; }
body.home-page.hero-motion-ready #home .hero-content .hero-actions { transition-delay: .46s; }

body.home-page #home .hero-badge {
  border-color: rgba(30,77,59,.15);
  background: rgba(255,255,255,.70);
  color: #1E4D3B;
  box-shadow: 0 8px 28px rgba(42,47,54,.045);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body.home-page #home .badge-pulse {
  background: #0D6E6E;
  box-shadow: 0 0 0 0 rgba(13,110,110,.28);
  animation: asalys-badge-pulse 2.25s ease-out infinite;
}

body.home-page #home .hero-catchline {
  color: #2A2F36;
  font-weight: 600;
  letter-spacing: -.058em;
  text-wrap: balance;
}

body.home-page #home .hero-catchline.is-writing::after,
body.home-page #home .hero-catchline.is-written::after {
  background-color: #0D6E6E;
  box-shadow: 0 0 12px rgba(13,110,110,.2);
}

body.home-page #home .hero-content p { color: #4E5C58; }

body.home-page #home .hero-visual {
  position: relative;
  transform-origin: 50% 55%;
}

body.home-page #home .hero-visual.revealed {
  animation: asalys-hero-float 7.2s ease-in-out 1.1s infinite;
}

body.home-page #home .hero-visual::before,
body.home-page #home .hero-visual::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}

body.home-page #home .hero-visual::before {
  width: 360px;
  height: 360px;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(30,77,59,.09);
  transform: translate(-50%,-50%);
  animation: asalys-orbit-slow 20s linear infinite;
}

body.home-page #home .hero-visual::after {
  width: 265px;
  height: 265px;
  top: 50%;
  left: 50%;
  border: 1px dashed rgba(13,110,110,.12);
  transform: translate(-50%,-50%);
  animation: asalys-orbit-reverse 15s linear infinite;
}

body.home-page #home .visual-wrapper {
  position: relative;
  overflow: hidden;
  border-color: rgba(30,77,59,.13);
  background:
    linear-gradient(rgba(30,77,59,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30,77,59,.035) 1px, transparent 1px),
    rgba(255,255,255,.82);
  background-size: 32px 32px;
  box-shadow: 0 32px 78px rgba(42,47,54,.105);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transform:
    perspective(1200px)
    translate3d(var(--hero-card-x), calc(var(--hero-card-y) + var(--hero-card-scroll)), 0)
    rotateX(var(--hero-card-rx))
    rotateY(var(--hero-card-ry));
  transition: transform .16s linear, box-shadow .35s ease, border-color .35s ease;
  will-change: transform;
}

body.home-page #home .visual-wrapper::after {
  content: "";
  position: absolute;
  inset: -10% auto -10% -42%;
  z-index: 5;
  width: 28%;
  pointer-events: none;
  opacity: .42;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.88), rgba(166,196,162,.15), transparent);
  transform: skewX(-18deg);
  animation: asalys-hero-sheen 6.8s ease-in-out 1.8s infinite;
}

body.home-page #home .visual-wrapper:hover {
  border-color: rgba(13,110,110,.35);
  box-shadow: 0 38px 90px rgba(42,47,54,.14), 0 0 0 1px rgba(166,196,162,.18);
}

body.home-page #home .net-line {
  stroke: rgba(30,77,59,.22);
  stroke-dasharray: 7 8;
  animation: asalys-network-flow 13s linear infinite;
}

body.home-page #home .core-node .node-circle {
  animation: asalys-core-pulse 3.6s ease-in-out infinite;
}

body.home-page #home .net-node .node-circle {
  transition: fill .28s ease, stroke .28s ease, filter .28s ease, transform .28s ease;
}

body.home-page #home .net-node:hover .node-circle,
body.home-page #home .net-node.active .node-circle {
  transform: scale(1.06);
}

body.home-page #home .node-details-card {
  animation: asalys-detail-breathe 5.8s ease-in-out 2s infinite;
}

/* Cartes et curseur alignés sur la palette officielle. */
.custom-cursor-dot { background: #0D6E6E; }
.custom-cursor-circle { border-color: rgba(30,77,59,.44); }
body.cursor-hovering .custom-cursor-dot { background: #1E4D3B; }
body.cursor-hovering .custom-cursor-circle {
  border-color: rgba(13,110,110,.78);
  background: rgba(13,110,110,.08);
}
.spotlight-card { --spotlight-color: rgba(166,196,162,.30); }
.spotlight-card:hover { border-color: rgba(13,110,110,.45) !important; }
.card-featured { background: #1E4D3B; border-color: #1E4D3B; }
.card-featured::before { color: #1E4D3B; }

.specialites-section { background: #F3F6F5; }
.contact-section { background: #1E4D3B; }
.main-footer { background: #15382C; }

@keyframes asalys-header-enter {
  from { opacity: 0; transform: translateY(-18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes asalys-hero-background-drift {
  0% { background-position: 48% 50%; }
  100% { background-position: 53% 47%; }
}

@keyframes asalys-badge-pulse {
  0% { box-shadow: 0 0 0 0 rgba(13,110,110,.30); }
  70%,100% { box-shadow: 0 0 0 9px rgba(13,110,110,0); }
}

@keyframes asalys-hero-float {
  0%,100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}

@keyframes asalys-orbit-slow {
  from { transform: translate(-50%,-50%) rotate(0deg); }
  to { transform: translate(-50%,-50%) rotate(360deg); }
}

@keyframes asalys-orbit-reverse {
  from { transform: translate(-50%,-50%) rotate(360deg); }
  to { transform: translate(-50%,-50%) rotate(0deg); }
}

@keyframes asalys-hero-sheen {
  0%,58% { transform: translateX(0) skewX(-18deg); opacity: 0; }
  67% { opacity: .44; }
  86%,100% { transform: translateX(560%) skewX(-18deg); opacity: 0; }
}

@keyframes asalys-network-flow {
  to { stroke-dashoffset: -150; }
}

@keyframes asalys-core-pulse {
  0%,100% { filter: drop-shadow(0 0 0 rgba(13,110,110,0)); }
  50% { filter: drop-shadow(0 0 9px rgba(13,110,110,.28)); }
}

@keyframes asalys-detail-breathe {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@media (max-width: 1050px) {
  .logo-img-main { width: 214px; }
  body.home-page #home.hero-section { min-height: auto; }
  body.home-page #home.hero-section::before { background-position: 61% 50%; opacity: .83; }
  body.home-page #home .hero-visual::before { width: 330px; height: 330px; }
}

@media (max-width: 800px) {
  .logo-img-main { width: 196px; }
  body.home-page #home.hero-section {
    padding-top: 132px;
    background: #FFFFFF;
  }
  body.home-page #home.hero-section::before {
    inset: 0;
    background-position: 67% 50%;
    background-size: auto 100%;
    opacity: .55;
    transform: none;
  }
  body.home-page #home.hero-section::after {
    background: linear-gradient(180deg, rgba(255,255,255,.45), rgba(255,255,255,.78));
  }
  body.home-page #home .hero-content > * { opacity: 1; transform: none; }
  body.home-page #home .hero-visual.revealed { animation-duration: 8.5s; }
  body.home-page #home .hero-visual::before, body.home-page #home .hero-visual::after { opacity: .6; }
  body.home-page #home .visual-wrapper {
    transform: none !important;
    background-color: rgba(255,255,255,.91);
  }
}

@media (max-width: 520px) {
  .logo-img-main { width: 177px; }
  .logo-img-footer { width: 226px; }
  body.home-page #home.hero-section::before { opacity: .43; background-position: 73% 50%; }
  body.home-page #home .hero-badge { letter-spacing: .08em; }
}

@media (prefers-reduced-motion: reduce) {
  .main-header,
  .hero-section::before,
  body.home-page #home .hero-visual.revealed,
  body.home-page #home .hero-visual::before,
  body.home-page #home .hero-visual::after,
  body.home-page #home .visual-wrapper::after,
  body.home-page #home .net-line,
  body.home-page #home .core-node .node-circle,
  body.home-page #home .node-details-card,
  body.home-page #home .badge-pulse {
    animation: none !important;
  }
  body.home-page #home .hero-content > * { opacity: 1 !important; transform: none !important; }
  body.home-page #home .visual-wrapper { transform: none !important; }
}


/* Hero fluide sans image de fond */
body.home-page #home.hero-section {
  overflow: hidden;
  background:
    radial-gradient(circle at 89% 18%, rgba(166,196,162,.18), transparent 25%),
    radial-gradient(circle at 7% 57%, rgba(13,110,110,.055), transparent 27%),
    linear-gradient(180deg, #ffffff 0%, #fbfcfb 100%);
}

body.home-page #home.hero-section::before {
  inset: 0;
  z-index: 0;
  height: auto;
  background:
    radial-gradient(ellipse at 86% 22%, rgba(30,77,59,.055), transparent 34%),
    radial-gradient(ellipse at 12% 74%, rgba(166,196,162,.08), transparent 36%);
  opacity: 1;
  transform: translate3d(var(--hero-bg-x), calc(var(--hero-bg-y) + var(--hero-bg-scroll)), 0) scale(1.02);
  animation: asalys-soft-field-drift 16s ease-in-out infinite alternate;
}

body.home-page #home.hero-section::after {
  inset: 84px 0 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.52), transparent 45%, rgba(255,255,255,.12)),
    radial-gradient(circle at 74% 36%, rgba(166,196,162,.10), transparent 23%);
}

body.home-page #home .hero-flow-lines {
  position: absolute;
  inset: 84px -4% -7% -4%;
  z-index: 1;
  width: 108%;
  height: calc(100% - 48px);
  overflow: visible;
  pointer-events: none;
  opacity: .88;
  transform: translate3d(var(--hero-bg-x), calc(var(--hero-bg-y) + var(--hero-bg-scroll)), 0);
  will-change: transform;
}

body.home-page #home .hero-flow-lines path {
  fill: none;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.home-page #home .flow-base path {
  stroke: rgba(30,77,59,.09);
  stroke-width: 1.05;
}

body.home-page #home .flow-layer-one path:nth-child(even) {
  stroke: rgba(13,110,110,.075);
}

body.home-page #home .flow-layer-two path {
  stroke: rgba(166,196,162,.16);
}

body.home-page #home .flow-layer-one {
  transform-origin: 50% 75%;
  animation: asalys-flow-layer-one 14s ease-in-out infinite alternate;
}

body.home-page #home .flow-layer-two {
  transform-origin: 82% 18%;
  animation: asalys-flow-layer-two 18s ease-in-out infinite alternate;
}

body.home-page #home .flow-highlights path {
  stroke: rgba(166,196,162,.72);
  stroke-width: 1.45;
  stroke-dasharray: 105 1420;
  stroke-dashoffset: 0;
  opacity: .72;
  animation: asalys-flow-highlight 9.5s linear infinite;
}

body.home-page #home .flow-highlights path:nth-child(2) {
  stroke: rgba(13,110,110,.42);
  animation-delay: -3.4s;
  animation-duration: 12s;
}

body.home-page #home .flow-highlights path:nth-child(3) {
  stroke: rgba(166,196,162,.62);
  animation-delay: -6.2s;
  animation-duration: 10.5s;
}

body.home-page #home .hero-container {
  z-index: 3;
}

/* Centrage du libellé dans le visual wrapper. */
body.home-page #home .visual-wrapper::before {
  top: 26px;
  left: 50%;
  right: auto;
  width: calc(100% - 64px);
  text-align: center;
  line-height: 1.35;
  transform: translateX(-50%);
}

@keyframes asalys-soft-field-drift {
  0% { transform: translate3d(-5px, 2px, 0) scale(1.02); }
  100% { transform: translate3d(7px, -5px, 0) scale(1.035); }
}

@keyframes asalys-flow-layer-one {
  0% { transform: translate3d(-10px, 4px, 0) scaleY(.985); }
  100% { transform: translate3d(14px, -7px, 0) scaleY(1.018); }
}

@keyframes asalys-flow-layer-two {
  0% { transform: translate3d(0, -5px, 0) rotate(-.35deg); }
  100% { transform: translate3d(-13px, 8px, 0) rotate(.45deg); }
}

@keyframes asalys-flow-highlight {
  to { stroke-dashoffset: -1525; }
}

@media (max-width: 800px) {
  body.home-page #home.hero-section::before {
    opacity: .82;
    transform: none;
  }

  body.home-page #home .hero-flow-lines {
    inset: 72px -34% -5% -18%;
    width: 152%;
    opacity: .66;
    transform: none;
  }

  body.home-page #home .flow-layer-two {
    opacity: .6;
  }

  body.home-page #home .visual-wrapper::before {
    top: 22px;
    width: calc(100% - 42px);
    font-size: .68rem;
    letter-spacing: .09em;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.home-page #home.hero-section::before,
  body.home-page #home .flow-layer-one,
  body.home-page #home .flow-layer-two,
  body.home-page #home .flow-highlights path {
    animation: none !important;
  }
}


/* Contraste AA, lisibilité et finitions SEO/UX */
:root {
  --color-text-bright: #2A2F36;
  --color-text-muted: #43514B;
  --color-text-dim: #596760;
  --color-teal: #0D6E6E;
  --color-line: #D4DCDA;
}

html { color-scheme: light; }
body { color: #2A2F36; }
p, li, dd, td { color: #43514B; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10000;
  padding: 11px 16px;
  border-radius: 8px;
  background: #FFFFFF;
  color: #1E4D3B;
  font-weight: 700;
  box-shadow: 0 8px 30px rgba(18,32,24,.22);
  transform: translateY(-160%);
  transition: transform .18s ease;
}
.skip-link:focus { transform: translateY(0); }

.nav-link { color: #35433D; }
.nav-link:hover, .nav-link:focus-visible { color: #0D5F5F; }
.section-subtitle { color: #0D6E6E; }
.hero-content p, .section-header p, .service-card > p, .specialty-card p, .diagnostic-step p { color: #43514B; }
.node-label { fill: #35443E; }
.node-details-card p { color: #43514B; }

.metric-card .metric-value, .metric-card h3 {
  margin: 0 0 8px;
  color: #FFFFFF;
  font-family: var(--font-family-headings);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.05em;
}
.metric-card > p:last-child { color: rgba(255,255,255,.88); }
.card-list li { color: #35433D; }
.card-featured h3 { color: #FFFFFF; }
.card-featured p, .card-featured .card-list li { color: rgba(255,255,255,.92); }
.card-featured .card-list i { color: #C6DDC3; }

.specialty-card h3 {
  margin-top: 22px;
  color: #122018;
  font-size: 1.05rem;
  letter-spacing: -.025em;
}

.diagnostic-summary-panel h3,
.diagnostic-summary-panel strong { color: #FFFFFF; }
.diagnostic-summary-panel p,
.diagnostic-summary-panel span,
.diagnostic-summary-panel .mini-spec-item span,
.diagnostic-summary-panel .diagnostic-metric span { color: rgba(255,255,255,.88); }
.diagnostic-kicker { color: #BFD6BC !important; }
.diagnostic-summary-panel .btn-primary {
  background: #FFFFFF;
  color: #1E4D3B;
  border-color: #FFFFFF;
}
.diagnostic-summary-panel .btn-primary:hover { background: #EBECEC; }

.contact-info .section-subtitle { color: #C6DDC3; }
.contact-info > p { color: rgba(255,255,255,.86); }
.detail-texts span { color: rgba(255,255,255,.78); }
.detail-texts strong, .detail-texts strong a, .detail-texts address { color: #FFFFFF; }
.detail-texts address { font-style: normal; }
.detail-texts a:hover { text-decoration: underline; text-underline-offset: 3px; }
.detail-icon { color: #C6DDC3; }

.form-group input::placeholder, .form-group textarea::placeholder { color: #65716B; opacity: 1; }
.form-group :is(input, textarea, select) { color: #2A2F36; }
.form-privacy {
  grid-column: 1 / -1;
  margin: 12px 0 0;
  color: #52615A;
  font-size: .78rem;
  line-height: 1.55;
}
.form-privacy a { color: #0B6262; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.footer-brand p, .footer-col a, .footer-bottom p { color: rgba(255,255,255,.82); }
.footer-col h4 { color: #FFFFFF; }
.footer-col a:hover, .footer-col a:focus-visible { color: #FFFFFF; text-decoration: underline; text-underline-offset: 4px; }
.footer-address {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 18px;
  color: rgba(255,255,255,.82);
  font-style: normal;
  font-size: .86rem;
  line-height: 1.5;
}
.footer-address a { color: #FFFFFF; font-weight: 650; }
.footer-address a:hover { text-decoration: underline; text-underline-offset: 3px; }

:where(a, button, input, textarea, select):focus-visible {
  outline: 3px solid #0D6E6E;
  outline-offset: 3px;
}
.contact-section :where(a, button, input, textarea, select):focus-visible,
.main-footer :where(a, button):focus-visible { outline-color: #C6DDC3; }

@media (max-width: 800px) {
  .main-nav .nav-link { color: #122018; }
  .footer-address { font-size: .82rem; }
}

/* Contraste non textuel des contrôles (WCAG 1.4.11). */
.btn-secondary { border-color: #6D7D75; }
.form-group :is(input, textarea, select) { border-color: #8A9690; }
.form-group :is(input, textarea, select):hover { border-color: #6D7D75; }
