/* Feuille de style partagee par les pages d'offre.
   Les tokens reprennent ceux de index.html pour garder une identite unique.
   --c = couleur d'accent propre a chaque offre (definie par .theme-*). */

:root {
  --bg: #3c3c59;
  --bg2: #0f0f18;
  --bg3: #13131f;
  --bg-border: rgba(255,255,255,0.07);
  --border: #e5e5f580;
  --border-accent: rgba(99,179,237,0.3);
  --text: #e8e8f0;
  --text-muted: #e1e1ed;
  --text-dim: #e5e5f5;
  --accent: #63b3ed;
  --accent2: #7ee8a2;
  --c: #63b3ed;
}

.theme-feature   { --c: #a78bfa; }
.theme-migration { --c: #63b3ed; }
.theme-llm       { --c: #7ee8a2; }
.theme-cicd      { --c: #f6ad55; }
.theme-cms       { --c: #f687b3; }
.theme-vitrine   { --c: #34d399; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 0; opacity: 0.5;
}

body::after {
  content: '';
  position: fixed; inset: 0;
  background-image:
    linear-gradient(var(--bg-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--bg-border) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none; z-index: 0;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 30%, transparent 80%);
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 40px; position: relative; z-index: 1; }
.narrow { max-width: 820px; }

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 20px 0;
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
nav .container { display: flex; align-items: center; justify-content: space-between; }
.nav-logo { font-family: 'DM Mono', monospace; font-size: 16px; color: var(--accent); letter-spacing: 0.05em; text-decoration: none; }
.nav-links { display: flex; gap: 32px; list-style: none; align-items: center; }
.nav-links a { font-size: 16px; color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { font-family: 'DM Mono', monospace; font-size: 15px; color: var(--accent) !important; border: 1px solid var(--border-accent); padding: 8px 16px; border-radius: 4px; }

/* FIL D'ARIANE */
.breadcrumb { padding: 130px 0 0; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; font-family: 'DM Mono', monospace; font-size: 12px; color: var(--text-dim); }
.breadcrumb a { color: var(--text-dim); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--c); }
.breadcrumb li + li::before { content: '/'; margin-right: 10px; opacity: 0.5; }

/* EN-TETE DE PAGE */
.page-head { padding: 32px 0 72px; }
.eyebrow { font-family: 'DM Mono', monospace; font-size: 12px; color: var(--c); letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 24px; display: flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ''; display: inline-block; width: 28px; height: 1px; background: var(--c); }
h1 { font-family: 'Instrument Serif', serif; font-size: clamp(38px, 5.5vw, 68px); line-height: 1.08; font-weight: 400; margin-bottom: 28px; }
h1 em { font-style: italic; color: var(--c); }
.lead { font-size: 19px; color: var(--text-muted); max-width: 640px; line-height: 1.8; margin-bottom: 36px; }
.lead strong { color: var(--text); font-weight: 500; }

.meta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.meta-chip { font-family: 'DM Mono', monospace; font-size: 12px; color: var(--text-muted); border: 1px solid var(--border); border-radius: 100px; padding: 7px 16px; }
.meta-chip b { color: var(--c); font-weight: 500; }

.actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.btn-primary { font-family: 'DM Mono', monospace; font-size: 13px; background: var(--c); color: #0a0a0f; padding: 14px 28px; border-radius: 4px; text-decoration: none; font-weight: 500; letter-spacing: 0.03em; transition: opacity 0.2s, transform 0.2s; display: inline-block; }
.btn-primary:hover { opacity: 0.85; transform: translateY(-1px); }
.btn-ghost { font-family: 'DM Mono', monospace; font-size: 12px; color: var(--text-muted); text-decoration: none; border: 1px solid var(--border); padding: 13px 22px; border-radius: 4px; transition: color 0.2s, border-color 0.2s; }
.btn-ghost:hover { color: var(--text); border-color: var(--c); }

/* SECTIONS */
section { padding: 56px 0; }
.section-tag { font-family: 'DM Mono', monospace; font-size: 11px; color: var(--c); letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 16px; display: flex; align-items: center; gap: 12px; }
.section-tag::before { content: ''; display: inline-block; width: 20px; height: 1px; background: var(--c); }
h2 { font-family: 'Instrument Serif', serif; font-size: clamp(28px, 3.4vw, 42px); font-weight: 400; line-height: 1.15; margin-bottom: 20px; }
h2 em { font-style: italic; color: var(--c); }
h3 { font-family: 'Outfit', sans-serif; font-weight: 500; font-size: 17px; margin-bottom: 10px; }
p { color: var(--text-muted); margin-bottom: 18px; }
p:last-child { margin-bottom: 0; }
section > .container > p { max-width: 720px; }

/* CARTES */
.card { background: var(--bg2); border: 1px solid var(--border); border-radius: 12px; padding: 32px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* SYMPTOMES */
.symptom { background: var(--bg2); border: 1px solid var(--border); border-left: 3px solid var(--c); border-radius: 0 10px 10px 0; padding: 24px 28px; }
.symptom p { font-size: 14px; line-height: 1.75; margin: 0; }
.symptom strong { color: var(--text); font-weight: 500; display: block; margin-bottom: 6px; }

/* LIVRABLES */
.deliverables { list-style: none; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.deliverables li { padding: 22px 28px; border-bottom: 1px solid var(--border); background: var(--bg2); display: flex; gap: 18px; align-items: flex-start; }
.deliverables li:last-child { border-bottom: none; }
.deliverables .idx { font-family: 'DM Mono', monospace; font-size: 11px; color: var(--c); padding-top: 3px; min-width: 26px; }
.deliverables .body h3 { margin-bottom: 6px; }
.deliverables .body p { font-size: 14px; margin: 0; line-height: 1.7; }

/* ETAPES */
.steps { list-style: none; }
.steps li { display: flex; gap: 22px; padding: 24px 0; border-bottom: 1px solid var(--border); }
.steps li:last-child { border-bottom: none; }
.steps .num { font-family: 'DM Mono', monospace; font-size: 11px; color: var(--c); min-width: 30px; padding-top: 4px; }
.steps p { font-size: 14px; margin: 0; line-height: 1.7; }

/* STACK */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-family: 'DM Mono', monospace; font-size: 11px; padding: 6px 13px; border-radius: 100px; border: 1px solid var(--border); color: var(--text-muted); }

/* FAQ */
.faq details { border: 1px solid var(--border); border-radius: 10px; background: var(--bg2); margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 20px 26px; font-weight: 500; font-size: 16px; list-style: none; display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: 'DM Mono', monospace; color: var(--c); font-size: 18px; flex-shrink: 0; }
.faq details[open] summary::after { content: '\2013'; }
.faq .answer { padding: 0 26px 22px; }
.faq .answer p { font-size: 14px; line-height: 1.75; }

/* HORS PERIMETRE */
.scope-out { border: 1px dashed var(--border); border-radius: 12px; padding: 28px 32px; background: rgba(0,0,0,0.15); }
.scope-out ul { list-style: none; }
.scope-out li { font-size: 14px; color: var(--text-muted); padding: 7px 0 7px 26px; position: relative; }
.scope-out li::before { content: '\00d7'; position: absolute; left: 0; color: var(--text-dim); font-family: 'DM Mono', monospace; }

/* CTA FINAL */
.cta { background: var(--bg2); border: 1px solid var(--border); border-radius: 16px; padding: 64px; text-align: center; position: relative; overflow: hidden; }
.cta::before { content: ''; position: absolute; bottom: -120px; left: 50%; transform: translateX(-50%); width: 420px; height: 420px; background: radial-gradient(circle, var(--c) 0%, transparent 70%); opacity: 0.07; pointer-events: none; }
.cta h2 { margin-bottom: 16px; }
.cta p { max-width: 520px; margin: 0 auto 32px; }
.cta .actions { justify-content: center; }

/* AUTRES OFFRES */
.other-offres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.other-offre { background: var(--bg2); border: 1px solid var(--border); border-radius: 10px; padding: 22px 24px; text-decoration: none; display: block; transition: border-color 0.25s, background 0.25s; }
.other-offre:hover { background: var(--bg3); }
.other-offre .k { font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 8px; display: block; }
.other-offre .t { font-family: 'Instrument Serif', serif; font-size: 19px; color: var(--text); line-height: 1.25; }
.other-offre.o-feature   { --c: #a78bfa; }
.other-offre.o-migration { --c: #63b3ed; }
.other-offre.o-llm       { --c: #7ee8a2; }
.other-offre.o-cicd      { --c: #f6ad55; }
.other-offre.o-cms       { --c: #f687b3; }
.other-offre.o-vitrine   { --c: #34d399; }
.other-offre .k { color: var(--c); }
.other-offre:hover { border-color: var(--c); }

/* FOOTER */
footer { border-top: 1px solid var(--border); padding: 32px 0; margin-top: 40px; }
footer .container { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-left { font-family: 'DM Mono', monospace; font-size: 12px; color: var(--text-dim); }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { font-family: 'DM Mono', monospace; font-size: 12px; color: var(--text-dim); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--text-muted); }

/* RESPONSIVE */
@media (max-width: 900px) {
  .container { padding: 0 24px; }
  .grid-2, .grid-3, .other-offres { grid-template-columns: 1fr; }
  .nav-links li:not(:last-child) { display: none; }
  .breadcrumb { padding-top: 110px; }
  .cta { padding: 40px 28px; }
  section { padding: 44px 0; }
}
