/* MIYA Conseil IT – feuille de style du site */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:      #2563EB;
  --blue-dk:   #1D4ED8;
  --blue-50:   #EFF5FF;
  --blue-100:  #DBE7FE;
  --ink:       #0F172A;
  --ink-2:     #1E293B;
  --text:      #334155;
  --mid:       #64748B;
  --border:    #E2E8F0;
  --bg-soft:   #F8FAFC;
  --white:     #FFFFFF;
  --green:     #15803D;
  --amber:     #B45309;
  --radius:    8px;
  --radius-lg: 14px;
  --max:       1160px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.05);
  --shadow-md: 0 1px 2px rgba(15,23,42,.04), 0 8px 24px rgba(15,23,42,.06);
}

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--blue); }
:focus-visible { outline: 3px solid #93C5FD; outline-offset: 2px; border-radius: 4px; }
.icon { width: 22px; height: 22px; }

/* ── NAVIGATION ── */
nav.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 2rem;
  height: 68px; display: flex; align-items: center; gap: 2rem; max-width: calc(var(--max) + 4rem);
}
.logo {
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.15rem;
  color: var(--ink); text-decoration: none; letter-spacing: -0.02em; flex-shrink: 0;
}
.logo span { color: var(--blue); }
.nav-links { display: flex; align-items: center; gap: 1.75rem; margin-left: auto; }
.nav-links > a, .nav-drop-btn {
  color: var(--text); text-decoration: none; font-size: 0.9rem; font-weight: 500;
  background: none; border: 0; cursor: pointer; font-family: inherit; padding: 0.4rem 0;
  display: inline-flex; align-items: center; gap: 0.3rem;
}
.nav-links > a:hover, .nav-drop-btn:hover { color: var(--blue); }
.nav-drop { position: relative; }
.nav-drop-btn svg { width: 14px; height: 14px; transition: transform .2s; }
.nav-drop-menu {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  min-width: 260px; background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 0.5rem;
  display: none;
}
.nav-drop-menu::before { content: ''; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.nav-drop:hover .nav-drop-menu, .nav-drop:focus-within .nav-drop-menu, .nav-drop.open .nav-drop-menu { display: block; }
.nav-drop:hover .nav-drop-btn svg, .nav-drop.open .nav-drop-btn svg { transform: rotate(180deg); }
.nav-drop-menu a {
  display: block; padding: 0.55rem 0.8rem; border-radius: 6px;
  color: var(--ink); text-decoration: none; font-size: 0.88rem; font-weight: 500;
}
.nav-drop-menu a small { display: block; color: var(--mid); font-size: 0.76rem; font-weight: 400; }
.nav-drop-menu a:hover { background: var(--blue-50); color: var(--blue-dk); }
.nav-drop-menu hr { border: 0; border-top: 1px solid var(--border); margin: 0.4rem 0.3rem; }
.nav-cta {
  background: var(--blue); color: var(--white) !important; padding: 0.55rem 1.15rem;
  border-radius: var(--radius); font-size: 0.88rem; font-weight: 600; text-decoration: none;
  transition: background .2s; flex-shrink: 0;
}
.nav-cta:hover { background: var(--blue-dk); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--border); border-radius: var(--radius); padding: 0.45rem 0.7rem; font: 600 0.85rem 'Inter', sans-serif; color: var(--ink); cursor: pointer; }

/* ── HERO ── */
.hero-wrap { border-bottom: 1px solid var(--border); background:
  radial-gradient(circle at 1px 1px, #E2E8F0 1px, transparent 0) 0 0 / 28px 28px; }
.hero {
  max-width: calc(var(--max) + 4rem); margin: 0 auto; padding: 5.5rem 2rem 5rem;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 4rem; align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; font-weight: 600; color: var(--blue-dk);
  background: var(--white); border: 1px solid var(--blue-100); border-radius: 999px;
  padding: 0.3rem 0.8rem; margin-bottom: 1.5rem;
}
.hero-eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #22C55E; }
.hero h1 {
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: clamp(2.1rem, 3.9vw, 3rem); line-height: 1.08; letter-spacing: -0.03em;
  color: var(--ink); margin-bottom: 1.5rem;
}
.hero h1 em { font-style: normal; color: var(--blue); }
.hero-desc { color: var(--text); font-size: 1.1rem; max-width: 44ch; margin-bottom: 2.25rem; }
.hero-actions { display: flex; gap: 0.85rem; flex-wrap: wrap; }
.btn-primary, .btn-ghost {
  padding: 0.85rem 1.6rem; border-radius: var(--radius); font-weight: 600; font-size: 0.95rem;
  text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem;
  transition: background .2s, border-color .2s, color .2s;
}
.btn-primary { background: var(--blue); color: var(--white); box-shadow: 0 1px 2px rgba(37,99,235,.3); }
.btn-primary:hover { background: var(--blue-dk); }
.btn-ghost { color: var(--ink); background: var(--white); border: 1px solid #CBD5E1; }
.btn-ghost:hover { border-color: var(--ink); }
.hero-trust {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: 2.25rem; padding-top: 1.5rem;
  border-top: 1px solid var(--border); font-size: 0.85rem; color: var(--mid);
}
.hero-trust span { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero-trust svg { width: 16px; height: 16px; color: var(--blue); }

/* ── TERMINAL ── */
.terminal {
  background: #0B1220; border-radius: var(--radius-lg); overflow: hidden; width: 100%;
  box-shadow: 0 30px 60px -20px rgba(15,23,42,.35), 0 0 0 1px rgba(15,23,42,.08);
}
.term-bar { background: #111A2E; padding: 0.8rem 1rem; display: flex; align-items: center; gap: 0.45rem; border-bottom: 1px solid rgba(255,255,255,.06); }
.dot { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; }
.dot-r { background: #FF5F57; } .dot-y { background: #FEBC2E; } .dot-g { background: #28C840; }
.term-title { flex: 1; text-align: center; font-size: 0.75rem; color: #7C8AA5; font-family: 'JetBrains Mono', monospace; margin-right: 40px; }
.term-body {
  padding: 1.4rem 1.5rem; font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.8rem; line-height: 1.85; height: 330px; overflow: hidden;
}
.term-line { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.term-prompt { color: #60A5FA; flex-shrink: 0; }
.term-cmd { color: #E2E8F0; word-break: break-word; }
.cursor { display: inline-block; width: 8px; height: 15px; background: #60A5FA; vertical-align: middle; animation: blink 1s step-end infinite; margin-left: 2px; }
@keyframes blink { 50% { opacity: 0; } }

/* ── CHIFFRES ── */
.stats-band { background: var(--white); border-bottom: 1px solid var(--border); }
.stats-inner { max-width: calc(var(--max) + 4rem); margin: 0 auto; padding: 0 2rem; display: grid; grid-template-columns: repeat(4, 1fr); }
.stats-inner > div { padding: 2.25rem 1.5rem; border-left: 1px solid var(--border); }
.stats-inner > div:first-child { border-left: 0; padding-left: 0; }
.stat-val { font-family: 'Inter', sans-serif; font-weight: 700; font-size: clamp(1.8rem, 3.4vw, 2.4rem); color: var(--ink); letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-val span { color: var(--blue); font-size: 0.55em; margin-left: 3px; font-weight: 600; letter-spacing: 0; }
.stat-lbl { font-size: 0.86rem; color: var(--mid); margin-top: 0.4rem; line-height: 1.45; max-width: 24ch; }

/* ── SECTIONS ── */
section { padding: 6rem 2rem; }
.section-inner { max-width: var(--max); margin: 0 auto; }
.section-eyebrow { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); margin-bottom: 0.85rem; }
.section-title { font-family: 'Syne', sans-serif; font-weight: 700; font-size: clamp(1.75rem, 3.6vw, 2.5rem); letter-spacing: -0.03em; line-height: 1.12; color: var(--ink); margin-bottom: 1rem; }
.section-sub { color: var(--mid); font-size: 1.08rem; max-width: 56ch; margin-bottom: 3.25rem; }

/* ── SERVICES ── */
#services { background: var(--bg-soft); border-bottom: 1px solid var(--border); }
.services-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.25rem; }
.services-grid > .service-card { grid-column: span 2; }
.services-grid > .service-card:nth-child(n+7) { grid-column: span 3; }
.service-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.85rem; box-shadow: var(--shadow-sm); transition: border-color .2s, box-shadow .2s; min-width: 0;
  display: flex; flex-direction: column;
}
.service-card:hover { border-color: var(--blue-100); box-shadow: var(--shadow-md); }
.service-icon {
  width: 44px; height: 44px; background: var(--blue-50); color: var(--blue); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; flex-shrink: 0;
}
.service-card h3 { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.08rem; color: var(--ink); margin-bottom: 0.6rem; letter-spacing: -0.01em; line-height: 1.3; }
.service-card p { color: var(--mid); font-size: 0.92rem; line-height: 1.65; }
.service-card a { color: var(--blue); font-weight: 600; text-decoration: none; white-space: nowrap; }
.service-card a:hover { text-decoration: underline; }
.service-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: auto; padding-top: 1.25rem; }
.tag { font-size: 0.72rem; font-weight: 600; padding: 0.22rem 0.6rem; border-radius: 999px; background: var(--bg-soft); color: var(--text); border: 1px solid var(--border); }
.service-card-featured { position: relative; border-color: var(--blue-100); }
.service-featured-icon-col { display: contents; }
.badge-new { position: absolute; top: 1.85rem; right: 1.85rem; font-size: 0.72rem; font-weight: 700; color: var(--white); background: var(--blue); border-radius: 999px; padding: 0.2rem 0.65rem; }

/* ── POURQUOI ── */
.why-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 4.5rem; align-items: center; }
.why-list { list-style: none; display: flex; flex-direction: column; gap: 1.6rem; }
.why-item { display: flex; gap: 1rem; }
.why-check { width: 28px; height: 28px; background: var(--blue-50); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--blue); }
.why-check svg { width: 16px; height: 16px; }
.why-text strong { display: block; font-weight: 600; color: var(--ink); margin-bottom: 0.2rem; font-size: 1rem; }
.why-text span { color: var(--mid); font-size: 0.92rem; }
.why-visual { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2.25rem; box-shadow: var(--shadow-md); min-width: 0; }
.profile-line { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.profile-avatar { width: 56px; height: 56px; border-radius: 14px; background: var(--ink); display: flex; align-items: center; justify-content: center; color: white; font-family: 'Inter', sans-serif; font-weight: 700; font-size: 1.1rem; flex-shrink: 0; }
.profile-name { font-weight: 700; color: var(--ink); font-size: 1.05rem; }
.profile-role { color: var(--mid); font-size: 0.86rem; }
.why-visual p { color: var(--text) !important; }
.profile-certs { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 1.4rem; }
.cert-badge { font-size: 0.74rem; font-weight: 600; padding: 0.25rem 0.7rem; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-soft); color: var(--ink); }
.cert-badge.main { background: var(--blue); border-color: var(--blue); color: var(--white); }
.profile-exp { margin-top: 1.4rem; padding-top: 1.25rem; border-top: 1px solid var(--border); color: var(--mid); font-size: 0.86rem; line-height: 1.65; }

/* ── CARTES CERTIFICATION / RÉFÉRENCES ── */
#certification { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.incident-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 2.5rem; display: grid; grid-template-columns: 1.15fr 1fr; gap: 3rem; align-items: start;
  min-width: 0; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
}
.incident-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--blue); }
.incident-card.wp::before { background: var(--green); }
.incident-card.patula::before { background: #D97706; }
.incident-label { display: inline-block; font-size: 0.74rem; font-weight: 600; padding: 0.22rem 0.65rem; border-radius: 999px; background: var(--blue-50); color: var(--blue-dk); margin-bottom: 1rem; }
.incident-label.wp { background: #ECFDF3; color: var(--green); }
.incident-label.patula { background: #FFF7ED; color: var(--amber); }
.incident-card h3 { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.35rem; color: var(--ink); letter-spacing: -0.02em; line-height: 1.25; margin-bottom: 0.8rem; }
.incident-card p { color: var(--mid); font-size: 0.94rem; line-height: 1.7; }
.incident-results-label { font-size: 0.88rem; color: var(--ink); font-weight: 600; margin-top: 1.25rem; display: block; }
.incident-results { margin-top: 0.6rem; list-style: none; color: var(--text); font-size: 0.9rem; line-height: 1.6; display: grid; gap: 0.45rem; }
.incident-results li { position: relative; padding-left: 1.5rem; }
.incident-results li::before { content: ''; position: absolute; left: 0; top: 0.5em; width: 9px; height: 5px; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg); }
.incident-results strong { color: var(--ink); }
.incident-link { display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 1.4rem; font-size: 0.9rem; color: var(--blue); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--blue-100); padding-bottom: 1px; }
.incident-link:hover { border-color: var(--blue); }
.timeline-label { font-size: 0.78rem; font-weight: 700; color: var(--mid); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1.1rem; display: block; }
.timeline { list-style: none; display: flex; flex-direction: column; }
.tl-item { display: flex; gap: 1rem; position: relative; padding-bottom: 1.3rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ''; position: absolute; left: 8px; top: 22px; width: 2px; bottom: 2px; background: var(--border); }
.tl-item:last-child::before { display: none; }
.tl-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--white); border: 2px solid var(--blue); flex-shrink: 0; margin-top: 3px; }
.tl-dot.ok { background: var(--green); border-color: var(--green); box-shadow: inset 0 0 0 3px var(--white); }
.tl-content strong { font-size: 0.9rem; font-weight: 600; color: var(--ink); display: block; }
.tl-content span { font-size: 0.84rem; color: var(--mid); }
#incident { background: var(--white); }
.case-link-center { text-align: center; margin-top: 1.75rem; }
.case-link-center a { font-size: 0.92rem; color: var(--blue); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--blue-100); }
.wp-case-block { margin-top: 5rem; padding-top: 4rem; border-top: 1px solid var(--border); }
.scores-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; margin-bottom: 1.25rem; }
.score-box { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 10px; padding: 1rem 0.9rem; min-width: 0; }
.score-box-label { font-size: 0.74rem; color: var(--mid); font-weight: 600; margin-bottom: 0.25rem; }
.score-box-val { font-family: 'Inter', sans-serif; font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.score-box-sub { font-size: 0.76rem; color: var(--mid); }
.scores-note { font-size: 0.8rem; color: var(--mid); font-style: italic; line-height: 1.55; }

/* ── CONTACT ── */
#contact { background: var(--ink); padding: 0; }
.contact-inner { max-width: calc(var(--max) + 4rem); margin: 0 auto; padding: 6rem 2rem; display: grid; grid-template-columns: 1fr 1fr; gap: 4.5rem; align-items: center; }
.contact-inner .section-eyebrow { color: #93C5FD; }
.contact-inner .section-title { color: var(--white); margin-bottom: 0.85rem; }
.contact-inner .section-sub { color: #CBD5E1; margin-bottom: 2rem; }
.contact-link { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--white); text-decoration: none; font-weight: 600; font-size: 1rem; border-bottom: 1px solid rgba(255,255,255,0.3); padding-bottom: 2px; word-break: break-word; }
.contact-link:hover { border-color: var(--white); }
.contact-points { list-style: none; margin-top: 2rem; display: grid; gap: 0.7rem; color: #CBD5E1; font-size: 0.92rem; }
.contact-points li { display: flex; gap: 0.6rem; align-items: center; }
.contact-points svg { width: 18px; height: 18px; color: #93C5FD; flex-shrink: 0; }
.contact-form-area { background: var(--white); border-radius: var(--radius-lg); padding: 2.25rem; min-width: 0; box-shadow: 0 30px 60px -20px rgba(0,0,0,.5); }
.form-row { margin-bottom: 1.1rem; }
.form-row label { display: block; font-size: 0.86rem; font-weight: 600; color: var(--ink); margin-bottom: 0.4rem; }
.form-row input, .form-row textarea {
  width: 100%; background: var(--white); border: 1px solid #CBD5E1; border-radius: var(--radius);
  padding: 0.7rem 0.9rem; color: var(--ink); font-family: 'Inter', sans-serif; font-size: 0.95rem; outline: none; transition: border-color .2s, box-shadow .2s; resize: vertical;
}
.form-row input::placeholder, .form-row textarea::placeholder { color: #94A3B8; }
.form-row input:focus, .form-row textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-100); }
.form-submit { width: 100%; background: var(--blue); color: var(--white); border: none; border-radius: var(--radius); padding: 0.9rem; font-family: 'Inter', sans-serif; font-weight: 600; font-size: 0.95rem; cursor: pointer; transition: background .2s; margin-top: 0.4rem; }
.form-submit:hover { background: var(--blue-dk); }
.form-note { font-size: 0.78rem; color: var(--mid); margin-top: 0.8rem; text-align: center; }

/* ── PIED DE PAGE ── */
footer { background: #0B1220; padding: 2.5rem 2rem; border-top: 1px solid rgba(255,255,255,.06); }
.footer-inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2rem; align-items: start; }
.footer-logo { font-family: 'Syne', sans-serif; font-weight: 700; color: var(--white); font-size: 1.05rem; }
.footer-logo span { color: #60A5FA; }
.footer-copy, .footer-siret { font-size: 0.84rem; color: #94A3B8; line-height: 1.7; }
.footer-col-title { font-size: 0.8rem; font-weight: 600; color: var(--white); margin-bottom: 0.6rem; }
.footer-links { list-style: none; display: grid; gap: 0.35rem; }
.footer-links a { color: #94A3B8; text-decoration: none; font-size: 0.86rem; }
.footer-links a:hover { color: var(--white); }

/* ── ADAPTATION ÉCRANS ── */
@media (max-width: 980px) {
  .nav-toggle { display: inline-block; }
  .nav-inner { flex-wrap: wrap; height: auto; min-height: 64px; padding: 0.7rem 1.5rem; gap: 1rem; }
  .nav-links { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem 0 0.75rem; order: 3; }
  .nav-links.open { display: flex; }
  .nav-links > a, .nav-drop-btn { padding: 0.65rem 0; border-bottom: 1px solid var(--border); width: 100%; justify-content: space-between; }
  .nav-drop-menu { position: static; transform: none; display: block; box-shadow: none; border: 0; padding: 0 0 0 0.75rem; min-width: 0; }
  .nav-drop-btn svg { display: none; }
  .nav-cta { order: 2; }
  .hero { grid-template-columns: 1fr; gap: 3rem; padding: 3.5rem 1.5rem 3.5rem; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); padding: 0 1.5rem; }
  .stats-inner > div { padding: 1.75rem 1.25rem; }
  .stats-inner > div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stats-inner > div:nth-child(n+3) { border-top: 1px solid var(--border); }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .services-grid > .service-card, .services-grid > .service-card:nth-child(n+7) { grid-column: auto; }
  .why-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .incident-card { grid-template-columns: 1fr; gap: 2rem; padding: 2rem 1.75rem; }
  .contact-inner { grid-template-columns: 1fr; padding: 4rem 1.5rem; gap: 2.5rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  section { padding: 4rem 1.25rem; }
  .nav-inner { padding: 0.6rem 1.25rem; }
  .logo { font-size: 1.05rem; }
  .hero { padding: 2.75rem 1.25rem; }
  .hero h1 { font-size: 2rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions a { justify-content: center; }
  .services-grid { grid-template-columns: 1fr; }
  .term-body { font-size: 0.7rem; padding: 1.1rem; height: 300px; }
  .stats-inner { padding: 0 1.25rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .contact-form-area { padding: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cursor { animation: none; }
  * { transition: none !important; }
}

/* ════════════════ PAGES INTÉRIEURES (réalisations, démo) ════════════════ */
:root {
  --card: #FFFFFF; --orange: #B45309; --muted: #64748B; --text-dim: #334155; --text-dimmer: #64748B;
  --cyan: #2563EB; --gold: #B45309; --red: #B91C1C;
}
.case-page h2 { font-family: 'Syne', sans-serif; color: var(--ink); letter-spacing: -0.02em; line-height: 1.2; }
.case-page code { font-family: 'JetBrains Mono', monospace; font-size: 0.86em; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 5px; padding: 0.05rem 0.35rem; color: var(--ink); }
.reveal { opacity: 1 !important; transform: none !important; }

/* En-tête de page */
.page-hero { border-bottom: 1px solid var(--border); background: radial-gradient(circle at 1px 1px, #E2E8F0 1px, transparent 0) 0 0 / 28px 28px; }
.page-hero-inner { max-width: calc(var(--max) + 4rem); margin: 0 auto; padding: 4.25rem 2rem 4rem; }
.page-hero-inner.split { display: grid; grid-template-columns: 1fr 1.05fr; gap: 3.5rem; align-items: center; }
.crumb { font-size: 0.86rem; color: var(--mid); margin-bottom: 1.4rem; display: flex; gap: 0.45rem; align-items: center; flex-wrap: wrap; }
.crumb a { color: var(--mid); text-decoration: none; }
.crumb a:hover { color: var(--blue); }
.page-hero .hero-eyebrow { margin-bottom: 1.25rem; }
.page-hero h1 { font-family: 'Syne', sans-serif; font-weight: 700; font-size: clamp(2rem, 3.6vw, 2.8rem); line-height: 1.1; letter-spacing: -0.03em; color: var(--ink); max-width: 22ch; }
.page-hero-inner.split h1 { max-width: none; }
.page-hero h1 .accent, .page-hero h1 span, .page-hero h1 em { color: var(--blue); font-style: normal; }
.page-hero .lead { font-size: 1.1rem; color: var(--text); max-width: 58ch; margin-top: 1.25rem; }

/* Sections des pages */
.case-section { padding: 4.5rem 2rem; border-top: 1px solid var(--border); }
.case-section:first-of-type { border-top: 0; }
.case-section.alt { background: var(--bg-soft); }
.case-section > .inner { max-width: var(--max); margin: 0 auto; }
.case-section h2 { font-size: clamp(1.55rem, 3vw, 2.1rem); margin-bottom: 1rem; }
.case-section .intro { color: var(--mid); font-size: 1.04rem; max-width: 62ch; margin-bottom: 2rem; }
.section-label, .section-tag { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); margin-bottom: 0.85rem; display: block; }
.note-box { margin-top: 1.75rem; padding: 1.15rem 1.4rem; background: var(--white); border: 1px solid var(--border); border-left: 3px solid var(--orange); border-radius: 10px; font-size: 0.9rem; color: var(--mid); }
.note-box strong { color: var(--ink); }
.small-note { font-size: 0.82rem; color: var(--mid); margin-top: 1rem; }

/* Terminal (pages VPS et WordPress) */
.terminal, .term { background: #0B1220; border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 30px 60px -24px rgba(15,23,42,.35), 0 0 0 1px rgba(15,23,42,.08); font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 0.78rem; line-height: 1.8; color: #E2E8F0; }
.terminal-bar, .term-bar { background: #111A2E; padding: 0.75rem 1rem; display: flex; align-items: center; gap: 0.45rem; border-bottom: 1px solid rgba(255,255,255,.06); }
.terminal-bar .dot, .term-dot { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; display: inline-block; }
.dot-red, .term-dot.r { background: #FF5F57; } .dot-yellow, .term-dot.y { background: #FEBC2E; } .dot-green, .term-dot.g { background: #28C840; }
.terminal-title, .term-label { flex: 1; text-align: center; font-size: 0.74rem; color: #7C8AA5; margin-right: 40px; }
.terminal-body { padding: 1.25rem 1.4rem; overflow-x: auto; }
.term > :not(.term-bar) { padding-left: 1.4rem; padding-right: 1.4rem; }
.term > .term-bar + * { padding-top: 1.1rem; }
.term > :last-child { padding-bottom: 1.2rem; }
.term br { display: block; content: ''; margin-top: 0.4rem; }
.t-prompt, .term-prompt { color: #60A5FA; margin-right: 0.4rem; }
.t-cmd, .term-cmd { color: #E2E8F0; word-break: break-word; }
.t-ok, .term-out.green { color: #4ADE80; word-break: break-word; }
.t-dim, .term-comment { color: #7C8AA5; }
.term-out.red { color: #F87171; } .term-out.orange { color: #FBBF24; }
.term-out { word-break: break-word; }
.term-line { display: flex; gap: 0.45rem; align-items: baseline; }
.term-line .term-cmd { min-width: 0; }
.cursor { display: inline-block; width: 8px; height: 14px; background: #60A5FA; vertical-align: middle; animation: blink 1s step-end infinite; margin-left: 3px; }

/* Avant / après */
.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 2rem; }
.ba-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.75rem; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.ba-card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: #DC2626; }
.ba-card.after::before { background: var(--green); }
.ba-label, .ba-card-title { font-weight: 700; color: var(--ink); font-size: 0.98rem; margin-bottom: 1rem; }
.ba-item { display: flex; gap: 0.7rem; align-items: flex-start; padding: 0.55rem 0; border-top: 1px solid var(--border); font-size: 0.92rem; color: var(--text); }
.ba-label + .ba-item, .ba-card-title + .ba-item { border-top: 0; }
.mk { width: 18px; height: 18px; flex-shrink: 0; margin-top: 0.15rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.mk::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.mk-bad { color: #DC2626; background: #FEF2F2; } .mk-warn { color: #D97706; background: #FFFBEB; } .mk-info { color: var(--mid); background: var(--bg-soft); }
.mk-ok { color: var(--green); background: #ECFDF3; }
.mk-ok::after { width: 8px; height: 4px; border-radius: 0; background: none; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg) translate(1px, -1px); }

/* Chronologie verticale (VPS, WordPress, Patula) */
.p-vps .timeline, .p-wp .timeline, .p-patula .timeline { display: block; list-style: none; margin: 2rem 0 0 0.45rem; padding-left: 2rem; border-left: 2px solid var(--border); }
.p-vps .tl-item, .p-wp .tl-item, .p-patula .tl-item { display: block; position: relative; padding: 0 0 1.9rem; gap: 0; }
.p-vps .tl-item:last-child, .p-wp .tl-item:last-child, .p-patula .tl-item:last-child { padding-bottom: 0; }
.p-vps .tl-item::before, .p-wp .tl-item::before, .p-patula .tl-item::before { display: none; }
.p-vps .tl-dot, .p-wp .tl-dot, .p-patula .tl-dot { position: absolute; left: calc(-2rem - 9px); top: 0.2rem; width: 16px; height: 16px; border-radius: 50%; background: var(--white); border: 2px solid var(--blue); margin: 0; }
.p-vps .tl-item:last-child .tl-dot, .p-wp .tl-item:last-child .tl-dot, .p-patula .tl-item:last-child .tl-dot { background: var(--green); border-color: var(--green); box-shadow: inset 0 0 0 3px var(--white); }
.tl-time { display: block; font-size: 0.8rem; font-weight: 700; color: var(--blue); margin-bottom: 0.2rem; font-variant-numeric: tabular-nums; }
.tl-title, .p-patula .tl-content strong { display: block; font-weight: 600; color: var(--ink); font-size: 1rem; }
.tl-desc, .p-patula .tl-content span { display: block; color: var(--mid); font-size: 0.92rem; margin-top: 0.2rem; max-width: 70ch; }

/* Scores (VPS) */
.p-vps .scores-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 2rem 0 1.25rem; }
.score-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.score-value, .score-val { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 2rem; letter-spacing: -0.03em; color: var(--green); line-height: 1.15; }
.score-label { font-size: 0.86rem; font-weight: 600; color: var(--ink); margin-top: 0.3rem; }
.score-tool, .score-arrow { font-size: 0.8rem; color: var(--mid); margin-top: 0.2rem; }
.nikto-highlight { display: flex; align-items: center; justify-content: center; gap: 2rem; flex-wrap: wrap; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem 2rem; text-align: center; }
.nikto-highlight > div[style] { font-size: 1.3rem !important; }
.nikto-num { font-weight: 700; font-size: 1.9rem; color: var(--ink); letter-spacing: -0.02em; line-height: 1.1; }
.nikto-label { font-size: 0.8rem; color: var(--mid); }

/* En-têtes déployés (VPS) */
.headers-list { margin-top: 1.75rem; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.header-row { display: grid; grid-template-columns: 28px minmax(220px, 280px) 1fr; gap: 0.75rem; align-items: center; padding: 0.85rem 1.25rem; border-top: 1px solid var(--border); font-size: 0.92rem; }
.header-row:first-child { border-top: 0; }
.h-check { color: var(--green); font-weight: 700; }
.h-name { font-family: 'JetBrains Mono', monospace; font-size: 0.84rem; color: var(--ink); }
.h-desc { color: var(--mid); }

/* Garanties / livrables */
.guarantee-grid, .guarantees { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin-top: 2rem; }
.guarantee-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.6rem; box-shadow: var(--shadow-sm); }
.gc-icon, .guarantee-icon { width: 42px; height: 42px; background: var(--blue-50); color: var(--blue); border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.gc-icon svg, .guarantee-icon svg { width: 21px; height: 21px; }
.gc-title, .guarantee-title { font-weight: 700; color: var(--ink); margin-bottom: 0.4rem; }
.gc-desc, .guarantee-desc { color: var(--mid); font-size: 0.92rem; }

/* WordPress : scores, encadrés, tableau */
.scores { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 2rem 0 1.25rem; }
.score-val.same { color: var(--mid); }
.p-wp .score-label { text-transform: none; }
.warning, .discovery { border-radius: var(--radius-lg); padding: 1.5rem 1.6rem; margin: 1.75rem 0; font-size: 0.94rem; color: var(--text); }
.warning { background: #FFFBEB; border: 1px solid #FDE68A; }
.discovery { background: #F0FDF4; border: 1px solid #BBF7D0; }
.warning-title, .discovery-title { font-weight: 700; font-size: 0.86rem; letter-spacing: 0.04em; margin-bottom: 0.6rem; display: flex; align-items: center; gap: 0.5rem; }
.warning-title { color: #92400E; } .discovery-title { color: #166534; }
.warning-title svg, .discovery-title svg { width: 18px; height: 18px; flex-shrink: 0; }
.cmp-table { width: 100%; border-collapse: collapse; margin-top: 1.75rem; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; font-size: 0.92rem; }
.cmp-table th { text-align: left; background: var(--bg-soft); color: var(--ink); font-weight: 600; padding: 0.85rem 1.1rem; border-bottom: 1px solid var(--border); }
.cmp-table td { padding: 0.8rem 1.1rem; border-top: 1px solid var(--border); vertical-align: top; }
.cmp-table td:first-child { color: var(--ink); font-weight: 500; }
.status-bad { color: #B91C1C; } .status-ok { color: var(--green); } .status-warn { color: var(--amber); }

/* Patula */
.hero-meta { display: flex; flex-wrap: wrap; gap: 0; margin-top: 2.25rem; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.meta-item { padding: 1rem 1.4rem; border-left: 1px solid var(--border); display: flex; flex-direction: column; gap: 0.2rem; flex: 1 1 140px; }
.meta-item:first-child { border-left: 0; }
.meta-label { font-size: 0.76rem; color: var(--mid); font-weight: 600; }
.meta-value { font-weight: 600; color: var(--ink); font-size: 0.95rem; }
.meta-value.gold { color: var(--amber); }
.live-badge { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.82rem; color: var(--green); background: #ECFDF3; border-radius: 999px; padding: 0.1rem 0.6rem; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #22C55E; }
.ps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 2rem; }
.ps-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.75rem; box-shadow: var(--shadow-sm); }
.ps-card h3 { display: flex; align-items: center; gap: 0.6rem; font-size: 1.05rem; color: var(--ink); margin-bottom: 0.7rem; }
.ps-card p { color: var(--mid); font-size: 0.94rem; }
.tag-prob, .tag-sol { width: 28px; height: 28px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; }
.tag-prob { background: #FFFBEB; color: #D97706; } .tag-sol { background: #ECFDF3; color: var(--green); }
.tag-prob svg, .tag-sol svg { width: 16px; height: 16px; }
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2rem; }
.num-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; display: flex; flex-direction: column; gap: 0.3rem; }
.num-val { font-weight: 700; font-size: 2rem; letter-spacing: -0.03em; color: var(--ink); line-height: 1.1; }
.num-label { font-size: 0.86rem; color: var(--mid); }
.stack-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 2rem; }
.stack-item { display: flex; gap: 1rem; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem 1.4rem; }
.stack-icon { width: 40px; height: 40px; flex-shrink: 0; background: var(--blue-50); color: var(--blue); border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.stack-icon svg { width: 20px; height: 20px; }
.stack-name { display: block; font-weight: 600; color: var(--ink); }
.stack-desc { display: block; color: var(--mid); font-size: 0.9rem; margin-top: 0.15rem; }
.results-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 2rem; margin-top: 2rem; }
.result-item { display: flex; gap: 0.85rem; padding: 1rem 0; border-top: 1px solid var(--border); }
.result-check { width: 26px; height: 26px; flex-shrink: 0; border-radius: 8px; background: #ECFDF3; color: var(--green); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.8rem; }
.result-item strong { display: block; color: var(--ink); }
.result-item span:not(.result-check) { display: block; color: var(--mid); font-size: 0.9rem; }

/* M365 / CIECONGO */
.method-list { display: grid; gap: 1rem; margin-top: 0.5rem; }
.method-step { display: flex; gap: 1.25rem; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem 1.6rem; box-shadow: var(--shadow-sm); }
.method-num { width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px; background: var(--blue); color: var(--white); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.method-step h3 { font-size: 1.02rem; color: var(--ink); margin-bottom: 0.35rem; }
.method-step p { color: var(--mid); font-size: 0.93rem; }
.takeaway { background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: var(--radius-lg); padding: 1.75rem 2rem; color: var(--text); font-size: 1.04rem; line-height: 1.75; max-width: 80ch; }
.takeaway strong { color: var(--ink); }
.tl-list { display: grid; gap: 0.25rem; }
.tl-list .tl-item { padding-bottom: 0.9rem; }
.p-m365 .scores-grid, .p-cie .scores-grid { grid-template-columns: repeat(3, 1fr); }
.p-m365 .score-box-val, .p-cie .score-box-val { color: var(--blue); }

/* Bandeau d'appel et navigation entre études */
.cta-band { background: var(--ink); padding: 5rem 2rem; }
.cta-band .inner { max-width: var(--max); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { font-family: 'Syne', sans-serif; color: var(--white); font-size: clamp(1.5rem, 2.8vw, 2rem); letter-spacing: -0.02em; max-width: 30ch; }
.cta-band p { color: #CBD5E1; margin-top: 0.6rem; }
.case-nav { max-width: var(--max); margin: 0 auto; padding: 2.25rem 2rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.case-nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: 0.95rem; display: flex; flex-direction: column; gap: 0.15rem; }
.case-nav a small { color: var(--mid); font-weight: 500; font-size: 0.8rem; }
.case-nav a:hover { color: var(--blue); }
.case-nav a.next { text-align: right; margin-left: auto; }

/* Démo BRVM */
.status-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; margin-top: 1.75rem; color: var(--mid); font-size: 0.92rem; }
.status-bar button { font: 600 0.88rem 'Inter', sans-serif; padding: 0.5rem 1rem; border-radius: var(--radius); border: 1px solid #CBD5E1; background: var(--white); color: var(--ink); cursor: pointer; }
.status-bar button:hover { border-color: var(--ink); }
.status-bar button:disabled { opacity: .6; cursor: default; }
.p-brvm .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #94A3B8; margin-right: 0.5rem; vertical-align: 1px; }
.p-brvm .dot.live { background: #22C55E; }
.movers { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-bottom: 2rem; }
.movers[hidden], .board[hidden], .empty-state[hidden] { display: none !important; }
.mover-col { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem 1.5rem; }
.mover-col h2 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.mover-row { display: flex; justify-content: space-between; padding: 0.55rem 0; border-top: 1px solid var(--border); font-variant-numeric: tabular-nums; }
.mover-ticker { font-weight: 600; color: var(--ink); }
.board { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; font-size: 0.94rem; font-variant-numeric: tabular-nums; }
.board caption { text-align: left; color: var(--mid); font-size: 0.88rem; padding-bottom: 0.75rem; caption-side: top; }
.board th { text-align: left; background: var(--bg-soft); padding: 0.8rem 1.1rem; color: var(--ink); font-weight: 600; cursor: pointer; user-select: none; border-bottom: 1px solid var(--border); }
.board td { padding: 0.7rem 1.1rem; border-top: 1px solid var(--border); }
.board .num { text-align: right; }
.up { color: var(--green); } .down { color: #B91C1C; } .flat { color: var(--mid); }
.empty-state { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; color: var(--text); margin-bottom: 2rem; }
.about-demo { margin-top: 2.5rem; color: var(--text); max-width: 70ch; }
.about-demo p { margin-bottom: 0.9rem; }
.disclaimer { color: var(--mid); font-size: 0.84rem; margin-top: 1.5rem; }

@media (max-width: 980px) {
  .page-hero-inner.split { grid-template-columns: 1fr; gap: 2.5rem; }
  .p-vps .scores-grid, .p-m365 .scores-grid, .p-cie .scores-grid { grid-template-columns: repeat(2, 1fr); }
  .scores, .numbers { grid-template-columns: repeat(2, 1fr); }
  .header-row { grid-template-columns: 24px 1fr; }
  .h-desc { grid-column: 2; }
}
@media (max-width: 640px) {
  .page-hero-inner { padding: 3rem 1.25rem; }
  .case-section { padding: 3.5rem 1.25rem; }
  .ba-grid, .guarantee-grid, .guarantees, .ps-grid, .stack-grid, .results-grid, .movers { grid-template-columns: 1fr; }
  .p-vps .scores-grid { grid-template-columns: 1fr; }
  .cmp-table { font-size: 0.84rem; } .cmp-table th, .cmp-table td { padding: 0.65rem 0.7rem; }
  .meta-item { border-left: 0; border-top: 1px solid var(--border); flex-basis: 50%; }
  .terminal, .term { font-size: 0.7rem; }
}

/* menu References : defilement quand la liste depasse l ecran */
.nav-drop-menu { max-height: calc(100vh - 100px); overflow-y: auto; overscroll-behavior: contain; }
@media (max-width: 980px) { .nav-drop-menu { max-height: none; overflow: visible; } }
