/* ==========================================================================
   JHL PHYSIS — feuille de style principale
   ========================================================================== */

:root {
  --bg: #0a0f1c;
  --bg-alt: #0e1526;
  --surface: #131c31;
  --surface-2: #182142;
  --border: #23304f;

  --text: #e7ecf6;
  --text-muted: #97a3bd;
  --text-faint: #67759a;

  --tech-1: #6366f1;
  --tech-2: #38bdf8;
  --tech-grad: linear-gradient(135deg, var(--tech-1), var(--tech-2));

  --nature-1: #58c48c;
  --nature-2: #a3e17a;
  --nature-grad: linear-gradient(135deg, var(--nature-1), var(--nature-2));

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
  --container: 1140px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  position: relative;
  padding: 110px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tech-2);
  margin-bottom: 16px;
}

.eyebrow.nature {
  color: var(--nature-2);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: currentColor;
  display: inline-block;
}

h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 16px;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.text-gradient-tech {
  background: var(--tech-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-gradient-nature {
  background: var(--nature-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--tech-grad);
  color: #050810;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -8px rgba(99, 102, 241, 0.55);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--tech-2);
  color: var(--tech-2);
}

.btn-nature {
  background: var(--nature-grad);
  color: #06170f;
}

.btn-nature:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -8px rgba(88, 196, 140, 0.5);
}

.btn-block {
  width: 100%;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 15, 28, 0.75);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.site-header.scrolled {
  border-bottom-color: var(--border);
  background: rgba(10, 15, 28, 0.92);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  object-fit: contain;
}

.footer-logo {
  height: 34px;
  width: auto;
  object-fit: contain;
}

.brand-name span {
  display: block;
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--text-faint);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* ---------- Hero ---------- */

.hero {
  padding: 190px 0 130px;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  z-index: -1;
}

.hero::before {
  width: 480px;
  height: 480px;
  background: var(--tech-1);
  top: -140px;
  right: -120px;
}

.hero::after {
  width: 420px;
  height: 420px;
  background: var(--nature-1);
  bottom: -180px;
  left: -140px;
  opacity: 0.22;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  letter-spacing: -0.02em;
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
}

.hero-stats div strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
}

.hero-stats div span {
  font-size: 0.82rem;
  color: var(--text-faint);
}

.hero-visual {
  position: relative;
  height: 420px;
}

.orbit-card {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: var(--shadow);
  width: 220px;
}

.orbit-card h4 {
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.orbit-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

.orbit-card.card-code {
  top: 10px;
  left: 20px;
}

.orbit-card.card-saas {
  top: 190px;
  right: 0;
}

.orbit-card.card-aroma {
  bottom: 10px;
  left: 60px;
  border-color: rgba(88, 196, 140, 0.35);
}

.orbit-card .tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 10px;
}

.tag-tech {
  background: rgba(99, 102, 241, 0.15);
  color: var(--tech-2);
}

.tag-nature {
  background: rgba(88, 196, 140, 0.15);
  color: var(--nature-2);
}

/* ---------- Services grid ---------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

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

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background: var(--tech-grad);
  color: #050810;
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.card p {
  color: var(--text-muted);
  font-size: 0.94rem;
  margin: 0;
}

/* ---------- Process ---------- */

.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}

.process-step {
  position: relative;
  padding: 28px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.process-step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--tech-2);
  display: block;
  margin-bottom: 14px;
}

.process-step h4 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.process-step p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
}

/* ---------- Aromathérapie section ---------- */

#aromatherapie {
  background: radial-gradient(circle at 15% 20%, rgba(88, 196, 140, 0.09), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(163, 225, 122, 0.07), transparent 45%),
    var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.aroma-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 60px;
  align-items: start;
}

.aroma-visual {
  background: var(--surface);
  border: 1px solid rgba(88, 196, 140, 0.25);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
  overflow: hidden;
}

.aroma-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--nature-grad);
  opacity: 0.05;
}

.aroma-brand {
  height: 40px;
  width: auto;
  margin-bottom: 28px;
  position: relative;
}

.leaf-row {
  display: flex;
  gap: 14px;
  margin-bottom: 22px;
  position: relative;
}

.leaf-chip {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(88, 196, 140, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--nature-2);
}

.aroma-visual blockquote {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text);
  font-style: italic;
  border-left: 3px solid var(--nature-1);
  padding-left: 18px;
  position: relative;
}

.aroma-visual cite {
  display: block;
  margin-top: 14px;
  font-style: normal;
  font-size: 0.82rem;
  color: var(--text-faint);
}

.aroma-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.aroma-item {
  display: flex;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.aroma-item:hover {
  border-color: var(--nature-1);
}

.aroma-item .card-icon {
  background: var(--nature-grad);
  flex-shrink: 0;
  margin-bottom: 0;
}

.aroma-item h4 {
  margin-bottom: 6px;
  font-size: 1.02rem;
}

.aroma-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.aroma-note {
  margin-top: 26px;
  font-size: 0.82rem;
  color: var(--text-faint);
  border-top: 1px solid var(--border);
  padding-top: 18px;
}

/* ---------- About ---------- */

.about-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}

.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.about-card .avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--tech-grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.3rem;
  color: #050810;
  margin-bottom: 20px;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 24px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.info-grid dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  margin-bottom: 4px;
}

.info-grid dd {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
}

.about-text p {
  color: var(--text-muted);
  font-size: 1.02rem;
  margin-bottom: 18px;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.badge {
  font-size: 0.8rem;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

/* ---------- Contact ---------- */

.contact-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 50px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-info-item .card-icon {
  margin-bottom: 0;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
}

.contact-info-item h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.contact-info-item p, .contact-info-item a {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.contact-info-item a:hover {
  color: var(--tech-2);
}

form.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: grid;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

.field select,
.field input,
.field textarea {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
}

.field select:focus,
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--tech-2);
}

.form-note {
  font-size: 0.78rem;
  color: var(--text-faint);
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 28px;
  background: var(--bg-alt);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: 14px;
  max-width: 320px;
}

.footer-col h5 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  margin-bottom: 16px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-faint);
}

/* ---------- Legal page ---------- */

.legal-page {
  padding: 160px 0 100px;
}

.legal-page h1 {
  margin-bottom: 8px;
}

.legal-page .updated {
  color: var(--text-faint);
  font-size: 0.85rem;
  margin-bottom: 50px;
}

.legal-block {
  margin-bottom: 40px;
}

.legal-block h2 {
  font-size: 1.25rem;
  margin-bottom: 14px;
}

.legal-block p, .legal-block li {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.legal-block ul {
  padding-left: 20px;
  list-style: disc;
}

.legal-block ul li {
  margin-bottom: 6px;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.legal-table td {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--text-muted);
}

.legal-table td:first-child {
  color: var(--text-faint);
  width: 240px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 30px;
  color: var(--tech-2);
  font-size: 0.9rem;
  font-weight: 600;
}

/* ---------- Reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero-inner,
  .aroma-layout,
  .about-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    height: 320px;
  }

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

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

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  section {
    padding: 80px 0;
  }

  .nav-links,
  .nav-cta .btn-ghost {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .site-header.open .nav-links {
    display: flex;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
  }

  .hero {
    padding: 150px 0 90px;
  }

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

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

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
  }

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