/* ═══════════════════════════════════════════════════
   JMK-Web — Design System & Shared Styles
   Fichier commun à toutes les pages
   v3.0 — skip-link, focus-visible, contraste footer
   ═══════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:         #0b1929;
  --navy-mid:     #112038;
  --blue:         #1a3a6b;
  --accent:       #3d85d4;
  --accent-light: #6aaee8;
  --silver:       #7a96b0;
  --silver-light: #bdd0e2;
  --off-white:    #f4f7fa;
  --white:        #ffffff;
  --text:         #0f1f33;
  --text-mid:     #3d5a78;
  --border:       rgba(61,133,212,0.15);
  --border-dark:  rgba(61,133,212,0.22);
}

html, body { max-width: 100%; overflow-x: clip; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ── A11Y : Skip link ── */
.skip-link {
  position: absolute;
  top: -999px;
  left: 1rem;
  z-index: 999;
  background: var(--accent);
  color: var(--white);
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
}
.skip-link:focus {
  top: 1rem;
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

/* ── A11Y : Focus visible global ── */
*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── UTILITIES ── */
.container { max-width: 1120px; margin: 0 auto; padding: 0 5%; }

.tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: #2d6eb8; margin-bottom: 1rem;
}
.tag::before {
  content: ''; width: 28px; height: 1px;
  background: #2d6eb8; flex-shrink: 0;
}
/* Sections sombres (navy) : accent clair */
#services-preview .tag,
#cta-banner .tag,
.page-header .tag {
  color: var(--accent);
}
#services-preview .tag::before,
#cta-banner .tag::before,
.page-header .tag::before {
  background: var(--accent);
}

.section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700; line-height: 1.15;
  letter-spacing: -0.02em; color: var(--text);
  margin-bottom: 0.9rem;
}

.section-sub {
  font-size: 1rem; font-weight: 400; color: #3d5a78;
  max-width: 500px; line-height: 1.8; margin-bottom: 3rem;
}

.btn {
  display: inline-block; padding: 0.9rem 2rem;
  font-family: 'Inter', sans-serif; font-size: 0.9rem; font-weight: 500;
  border-radius: 5px; text-decoration: none; cursor: pointer;
  transition: all 0.2s; border: none; letter-spacing: 0.02em;
}
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: #2d6eb8; transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: #bdd0e2;
  border: 1px solid rgba(189,208,226,0.45);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-light); }
.btn-outline {
  background: transparent; color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn-outline:hover { background: var(--accent); color: var(--white); }

/* ── NAV ── */
nav {
  position: fixed; top: 0; width: 100%; z-index: 100;
  background: rgba(11,25,41,0.97);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(61,133,212,0.18);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo { text-decoration: none; display: flex; align-items: center; }
.nav-links { display: flex; align-items: center; gap: 2.2rem; list-style: none; }
.nav-links a {
  font-size: 0.84rem; font-weight: 500; letter-spacing: 0.05em;
  color: #bdd0e2; text-decoration: none; text-transform: uppercase;
  transition: color 0.2s; position: relative;
}
.nav-links a:hover { color: var(--white); }
.nav-links a.active { color: var(--white); }
.nav-links a.active::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 100%; height: 2px; background: var(--accent);
}
.nav-cta {
  background: var(--accent) !important; color: var(--white) !important;
  padding: 0.5rem 1.3rem; border-radius: 5px;
  text-transform: none !important; letter-spacing: 0.02em !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: #2d6eb8 !important; }
.nav-cta.active::after { display: none; }

/* Hamburger — <button>, reset des styles natifs */
.nav-burger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px;
  background: none; border: none;
}
.nav-burger span {
  display: block; width: 22px; height: 1.5px;
  background: #bdd0e2; transition: all 0.25s;
}

/* ── BREADCRUMB (HTML visible sur pages internes) ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1.2rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.04em;
}
.breadcrumb a {
  color: rgba(189,208,226,0.8);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--accent-light); }
.breadcrumb-sep {
  width: 12px;
  height: 1px;
  background: rgba(255,255,255,0.2);
  display: inline-block;
}
.breadcrumb-current { color: var(--accent-light); }

/* ── FOOTER ── */
footer {
  background: #060e1a;
  border-top: 1px solid rgba(61,133,212,0.12);
  padding: 3.5rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(61,133,212,0.1);
}
.ft-logo { text-decoration: none; display: inline-flex; align-items: center; margin-bottom: 0.8rem; }
.ft-tagline { font-size: 0.8rem; color: #95aec4; line-height: 1.65; max-width: 220px; }
.ft-col-title {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent-light); margin-bottom: 1rem;
}
.ft-contact, .ft-nav { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.ft-contact li { font-size: 0.78rem; color: #95aec4; }
.ft-contact a, .ft-nav a {
  font-size: 0.78rem; color: #95aec4;
  text-decoration: none; transition: color 0.2s;
}
.ft-contact a:hover, .ft-nav a:hover { color: var(--accent-light); }
.ft-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 0; flex-wrap: wrap; gap: 0.5rem;
}
/* FIX CONTRASTE : #95aec4 (WCAG AA ≥ 4.5:1 sur #060e1a) */
.ft-copy { font-size: 0.76rem; color: #95aec4; }
.ft-ml { font-size: 0.76rem; color: #95aec4; text-decoration: none; transition: color 0.2s; }
.ft-ml:hover { color: var(--accent-light); }

/* ── MOBILE NAV ── */
.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 99;
  background: rgba(11,25,41,0.98);
  flex-direction: column; align-items: center; justify-content: center; gap: 2rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: 'Syne', sans-serif; font-size: 1.5rem; font-weight: 700;
  color: var(--white); text-decoration: none; text-align: center;
}
.mobile-menu a:hover { color: var(--accent-light); }
.mobile-menu .mobile-menu-cta { color: var(--accent-light); }

/* ── RESPONSIVE (shared) ── */
@media (max-width: 700px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; padding-bottom: 2rem; }
  .ft-bottom { flex-direction: column; text-align: center; }
}
