/* ==========================================================================
   JLM Technology — feuille de style
   Thème sombre, accents bleu & violine (repris du logo)
   ========================================================================== */

:root {
  --bg-0: #05070d;
  --bg-1: #0b0e18;
  --bg-2: #10142380;
  --surface: #141830;
  --surface-2: #191f3c;
  --border: #2a2f52;
  --border-light: #3a4068;

  --text-0: #f2f3f8;
  --text-1: #c7cbe0;
  --text-2: #9298b8;

  --blue: #2f7cd6;
  --blue-light: #5aa4f5;
  --violine: #7a2e6b;
  --violine-light: #a94fa0;
  --violine-bright: #b45fd6;

  --grad-brand: linear-gradient(120deg, var(--violine) 0%, #4a2f8a 45%, var(--blue) 100%);
  --grad-hero: radial-gradient(circle at 15% 20%, rgba(122,46,107,0.35), transparent 45%),
               radial-gradient(circle at 85% 15%, rgba(47,124,214,0.30), transparent 45%),
               linear-gradient(180deg, #070912 0%, #0a0d18 100%);

  --shadow-card: 0 10px 30px rgba(0,0,0,0.35);
  --radius: 14px;
  --radius-sm: 8px;
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-1);
  color: var(--text-1);
  font-family: "Segoe UI", "Inter", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

h1, h2, h3, h4 {
  color: var(--text-0);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 16px;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 16px; color: var(--text-1); }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--violine-light);
  margin-bottom: 10px;
}

.section {
  padding: 72px 0;
  border-bottom: 1px solid var(--border);
}
.section:last-of-type { border-bottom: none; }
.section-alt { background: var(--bg-0); }

.section-head {
  max-width: 720px;
  margin: 0 0 40px;
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 8, 15, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1400px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: var(--text-0);
  font-size: 1.15rem;
}
.brand img { height: 42px; width: 42px; border-radius: 8px; flex-shrink: 0; }
.brand > span { white-space: nowrap; }
.brand-sub {
  display: block;
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text-2);
  letter-spacing: 0.06em;
  white-space: normal;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: block;
  padding: 9px 11px;
  border-radius: var(--radius-sm);
  color: var(--text-1);
  font-size: 0.88rem;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
  background: var(--surface-2);
  color: var(--text-0);
}

.nav-cta {
  background: var(--grad-brand) !important;
  color: #fff !important;
  margin-left: 8px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  cursor: pointer;
}
.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text-0);
  display: block;
}

@media (max-width: 1500px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg-1);
    border-bottom: 1px solid var(--border);
    padding: 10px 16px 18px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 10px; }
  .nav-cta { margin-left: 0; text-align: center; margin-top: 6px; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--grad-hero);
  padding: 96px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero-copy p.lead {
  font-size: 1.1rem;
  color: var(--text-1);
  max-width: 560px;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.hero-badges span {
  border: 1px solid var(--border-light);
  background: var(--surface);
  color: var(--text-1);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
}
.hero-visual {
  display: flex;
  justify-content: center;
}
.hero-visual img {
  max-width: 340px;
  filter: drop-shadow(0 20px 50px rgba(122,46,107,0.45));
}
.page-hero {
  background: var(--grad-hero);
  padding: 64px 0 56px;
  text-align: center;
}
.page-hero .eyebrow { display: block; }

@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero-visual img { max-width: 220px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 8px 24px rgba(122,46,107,0.35);
}
.btn-outline {
  background: transparent;
  border-color: var(--border-light);
  color: var(--text-0);
}
.btn-outline:hover { border-color: var(--violine-light); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }

/* ---------- Cards / Grids ---------- */
.grid {
  display: grid;
  gap: 24px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: var(--violine-light); transform: translateY(-4px); }

.icon-tile {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--grad-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text-1);
}
.card ul li { margin-bottom: 6px; }

.service-block {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
  align-items: center;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}
.service-block:last-child { border-bottom: none; }
.service-block:nth-child(even) .service-media { order: 2; }
@media (max-width: 800px) {
  .service-block { grid-template-columns: 1fr; }
  .service-block:nth-child(even) .service-media { order: 0; }
}

.value-list {
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 2;
  gap: 12px 32px;
}
.value-list li {
  break-inside: avoid;
  padding: 10px 0 10px 28px;
  position: relative;
  color: var(--text-1);
  border-bottom: 1px dashed var(--border);
}
.value-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--violine-light);
  font-weight: 800;
}
@media (max-width: 600px) { .value-list { columns: 1; } }

/* ---------- Placeholder media (photos / logos à intégrer) ---------- */
.ph {
  background: repeating-linear-gradient(135deg, var(--surface-2), var(--surface-2) 10px, var(--surface) 10px, var(--surface) 20px);
  border: 1.5px dashed var(--border-light);
  border-radius: var(--radius);
  color: var(--text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 12px;
}
.ph-photo { aspect-ratio: 4 / 3; }
.ph-logo { aspect-ratio: 3 / 2; font-size: 0.75rem; }
.ph small { display: block; font-weight: 400; color: var(--text-2); margin-top: 4px; }

.service-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
@media (max-width: 900px) { .logo-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .logo-grid { grid-template-columns: repeat(2, 1fr); } }

.logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.logo-item-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-2);
  text-align: center;
}

/* ---------- Stats / band ---------- */
.band {
  background: var(--grad-brand);
  padding: 44px 0;
}
.band .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  color: #fff;
}
.band h2 { color: #fff; margin: 0; }
.band p { color: rgba(255,255,255,0.85); margin: 4px 0 0; }

/* ---------- Tags / pills list (domaines, tags) ---------- */
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-list span {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-1);
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.contact-item .ic {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}
.contact-item strong { color: var(--text-0); display: block; }

.form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-1);
  margin: 0 0 6px;
}
.form input, .form select, .form textarea {
  width: 100%;
  background: var(--bg-0);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-0);
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.95rem;
  margin-bottom: 18px;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none;
  border-color: var(--violine-light);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-note { font-size: 0.8rem; color: var(--text-2); margin-top: -8px; }

.alert {
  display: none;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
}
.alert:not(:empty) { display: block; }
.alert-error {
  background: rgba(200, 60, 60, 0.12);
  border: 1px solid rgba(200, 60, 60, 0.4);
  color: #ff9d9d;
}
.alert-success {
  background: rgba(60, 180, 120, 0.12);
  border: 1px solid rgba(60, 180, 120, 0.4);
  color: #7fe0b0;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px;
  text-align: center;
}
.cta-banner h2 { margin-bottom: 10px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-0);
  border-top: 1px solid var(--border);
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand img { height: 34px; width: 34px; border-radius: 8px; }
.footer-brand strong { color: var(--text-0); }

.site-footer h4 {
  color: var(--text-0);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: var(--text-2); font-size: 0.92rem; transition: color 0.2s; }
.site-footer a:hover { color: var(--violine-light); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-2);
}

/* ---------- Legal page ---------- */
.legal h2 { margin-top: 34px; }
.legal .fill {
  color: var(--violine-light);
  background: rgba(122,46,107,0.15);
  padding: 1px 6px;
  border-radius: 4px;
  font-style: italic;
}

/* ---------- Breadcrumb-ish list numbering ---------- */
.step-list { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.step-list li {
  counter-increment: step;
  position: relative;
  padding: 14px 0 14px 46px;
  border-bottom: 1px solid var(--border);
}
.step-list li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 12px;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
}
