/*
 * ===========================================================================
 * ORIQ IA : GUIDES. Feuille autonome (hors bundle Vite), servie telle quelle.
 * Reprend les tokens du site (src/styles/tokens.css) : blanc pur, noir
 * profond, bleu Oriq #0066FF, Inter, logo Crimson Pro 600. Pages de lecture :
 * colonne ~46rem, typographie d'article soignee, header et footer du site.
 * ===========================================================================
 */
/* Polices auto-hébergées (voir /fonts/). Inter = police variable 100-900. */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/fonts/inter-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Crimson Pro"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/fonts/crimson-pro-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --bg: #ffffff;
  --bg-2: #fafafa;
  --ink: #0a0c10;
  --surface-2: #f2f5f9;
  --line: #e9ecf2;
  --line-strong: #d7dce6;
  --text: #0a0c10;
  --text-soft: #3b4356;
  --text-muted: #59637a;
  --brand: #0066FF;
  --cta: #0066FF;
  --cta-hover: #0066FF;
  --shadow-cta: 0 18px 40px -10px rgba(0, 102, 255, 0.55);
  --shadow-card: 0 1px 2px rgba(10, 12, 16, 0.05), 0 10px 32px -18px rgba(10, 12, 16, 0.16);
  --shadow-card-hover: 0 2px 6px rgba(10, 12, 16, 0.06), 0 22px 48px -18px rgba(10, 12, 16, 0.24);
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 24px;
  --dur-fast: 160ms;
  --dur: 380ms;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(1.25rem, 0.75rem + 3vw, 4.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }
img { max-width: 100%; height: auto; }
::selection { background: var(--brand); color: #fff; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--brand); color: #fff; font-weight: 700;
  padding: 0.6rem 1rem; border-radius: 0 0 var(--radius-sm) 0;
}
.skip:focus { left: 0; }

/* --- Header : identique au site (logo + nav complete + CTA) --- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  gap: clamp(1rem, 2vw, 2rem);
  padding: 1.05rem var(--gutter);
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--line);
}

.brand { display: inline-flex; align-items: center; gap: 14px; flex: none; text-decoration: none; }
.brand__name {
  font-family: "Crimson Pro", Georgia, serif;
  font-weight: 600; font-size: 24px; letter-spacing: -0.025em; line-height: 1;
}
.brand__name b, .site-footer__brand b { color: var(--brand); font-weight: 600; }
.brand__dot {
  position: relative; width: 13px; height: 13px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #0066FF 0%, #0066FF 100%);
  flex: none;
  box-shadow: 0 0 0 1px rgba(0, 102, 255, 0.04);
}
.brand__dot::before,
.brand__dot::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 13px; height: 13px; border-radius: 50%;
  background: rgba(0, 102, 255, 0.12);
  transform: translate(-50%, -50%);
  animation: oriqHalo 2.6s ease-out infinite;
  pointer-events: none;
}
.brand__dot::after { animation-delay: 1.3s; }
@keyframes oriqHalo {
  0%   { width: 13px; height: 13px; opacity: 0.45; }
  100% { width: 38px; height: 38px; opacity: 0; }
}

.nav {
  display: flex; align-items: center;
  gap: clamp(0.9rem, 1.6vw, 1.8rem);
  font-size: 0.92rem; font-weight: 600;
  min-width: 0; flex-wrap: nowrap;
}
.nav a { color: var(--text-soft); text-decoration: none; transition: color var(--dur-fast) var(--ease); position: relative; white-space: nowrap; }
.nav a:hover { color: var(--text); }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -5px;
  width: 100%; height: 2px; border-radius: 2px; background: var(--brand);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"]::after { transform: scaleX(1); }

.site-header__actions { display: flex; align-items: center; gap: 0.7rem; flex: none; }
.nav__ghost {
  font-size: 0.9rem; font-weight: 700; color: var(--text); text-decoration: none;
  border: 1.5px solid var(--line-strong);
  padding: 0.6rem 1.1rem; border-radius: var(--radius-sm);
  transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
  white-space: nowrap;
}
.nav__ghost:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-1px); }
.nav__cta {
  color: #fff !important;
  background: var(--cta); text-decoration: none;
  padding: 0.62rem 1.2rem; border-radius: var(--radius-sm); font-weight: 800; font-size: 0.9rem;
  box-shadow: 0 10px 28px -8px rgba(0, 102, 255, 0.5);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur-fast) var(--ease);
  white-space: nowrap;
}
.nav__cta:hover { transform: translateY(-1px); background: var(--cta-hover); box-shadow: var(--shadow-cta); }
@media (max-width: 1060px) { .nav { display: none; } }
@media (max-width: 640px) { .nav__ghost { display: none; } }

/* --- Fil d'Ariane --- */
.crumbs {
  max-width: 46rem; margin: 0 auto;
  padding: clamp(1.4rem, 3vw, 2.2rem) clamp(1.25rem, 4vw, 2rem) 0;
  font-size: 0.85rem; color: var(--text-muted);
}
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.45rem; }
.crumbs li { display: inline-flex; align-items: center; gap: 0.45rem; }
.crumbs li + li::before { content: "/"; color: var(--line-strong); }
.crumbs a { color: var(--text-soft); text-decoration: none; font-weight: 600; }
.crumbs a:hover { color: var(--brand); }
.crumbs [aria-current="page"] { color: var(--text-muted); font-weight: 600; }

/* --- Colonne de lecture --- */
.guide {
  max-width: 46rem;
  margin: 0 auto;
  padding: clamp(1.6rem, 4vw, 2.8rem) clamp(1.25rem, 4vw, 2rem) clamp(3rem, 7vw, 5rem);
}

.guide-kicker {
  font-size: 0.78rem; font-weight: 800;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.8rem;
}

.guide h1 {
  font-size: clamp(1.9rem, 1.4rem + 2vw, 2.7rem);
  line-height: 1.12; font-weight: 800; letter-spacing: -0.025em;
  margin-bottom: 0.8rem;
  text-wrap: balance;
}

.guide-meta { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1.7rem; }

.guide-lede {
  font-size: 1.12rem; line-height: 1.65; color: var(--text-soft);
  margin-bottom: 2.2rem; padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}
.guide-lede b { color: var(--text); }

/* --- Corps d'article --- */
.guide h2 {
  font-size: clamp(1.3rem, 1.15rem + 0.6vw, 1.55rem);
  font-weight: 800; letter-spacing: -0.02em; line-height: 1.25;
  margin: 2.7rem 0 0.95rem;
  padding-top: 2.2rem;
  border-top: 1px solid var(--line);
  text-wrap: balance;
}
.guide h3 {
  font-size: 1.06rem; font-weight: 800; letter-spacing: -0.01em;
  margin: 1.8rem 0 0.5rem;
}
.guide p { margin-bottom: 0.95rem; }
.guide ul, .guide ol { margin: 0 0 1.05rem; padding-left: 1.2rem; }
.guide li { margin-bottom: 0.5rem; }
.guide li::marker { color: var(--brand); font-weight: 700; }
.guide a { color: var(--brand); font-weight: 600; text-decoration: none; }
.guide a:hover { text-decoration: underline; text-underline-offset: 3px; }
.guide strong, .guide b { font-weight: 700; }

/* Encadre : le point cle, en bleu */
.g-note {
  border-left: 3px solid var(--brand);
  background: rgba(0, 102, 255, 0.05);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.3rem;
  margin: 1.3rem 0 1.5rem;
  color: var(--text-soft);
}
.g-note b { color: var(--text); }
.g-note p:last-child { margin-bottom: 0; }

/* Carte neutre (definitions, listes structurees) */
.g-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.5rem;
  margin: 0 0 1.2rem;
}
.g-card p:last-child, .g-card ul:last-child { margin-bottom: 0; }

/* --- Boutons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-weight: 800; font-size: 0.98rem;
  padding: 0.9rem 1.6rem; border-radius: var(--radius);
  border: 0; cursor: pointer; font-family: inherit; text-decoration: none !important;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur) var(--ease),
              background var(--dur-fast) var(--ease);
}
.btn--primary { background: var(--cta); color: #fff !important; box-shadow: var(--shadow-cta); }
.btn--primary:hover { background: var(--cta-hover); transform: translateY(-2px); }
.btn--primary:active { transform: translateY(0); }

/* Encart CTA de milieu d'article */
.g-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem 1.5rem;
  background: rgba(0, 102, 255, 0.05);
  border: 1px solid rgba(0, 102, 255, 0.16);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.7rem;
  margin: 2.3rem 0;
}
.g-cta__txt { flex: 1 1 20rem; }
.g-cta__txt b { display: block; font-size: 1.05rem; letter-spacing: -0.01em; }
.g-cta__txt span { color: var(--text-soft); font-size: 0.95rem; }
.g-cta .btn { flex: none; }

/* CTA de fin d'article : panneau sombre signature */
.g-final {
  background: linear-gradient(135deg, #0a0c10 0%, #10141d 70%, #002466 160%);
  color: #f2f6ff;
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 4vw, 2.6rem);
  margin: 2.8rem 0 0;
}
.g-final h2, .guide .g-final h2 { border-top: 0; padding-top: 0; margin: 0 0 0.6rem; color: #fff; }
.g-final p { color: #bcc7e0; margin-bottom: 1.3rem; }
.g-final .g-final__hint { font-size: 0.88rem; color: #8791a9; margin: 0.9rem 0 0; }
.g-final a:not(.btn) { color: #7AB0FF; }

/* A lire ensuite */
.g-related { margin-top: 2.6rem; padding-top: 1.8rem; border-top: 1px solid var(--line); }
.g-related h2, .guide .g-related h2 { border-top: 0; padding-top: 0; margin: 0 0 1rem; font-size: 1.15rem; }
.g-related ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.g-related li { margin: 0; }
.g-related a {
  display: block; text-decoration: none;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0.85rem 1.1rem;
  color: var(--text); font-weight: 700; font-size: 0.97rem;
  transition: border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.g-related a span { display: block; color: var(--text-muted); font-weight: 500; font-size: 0.88rem; margin-top: 0.15rem; }
.g-related a:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow-card); text-decoration: none; }

/* ======================= HUB /guides/ ======================= */
.hub {
  max-width: 52rem;
  margin: 0 auto;
  padding: clamp(1.6rem, 4vw, 2.8rem) clamp(1.25rem, 4vw, 2rem) clamp(3rem, 7vw, 5rem);
}
.hub-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 2.8rem); }
.hub-head h1 {
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem);
  line-height: 1.1; font-weight: 800; letter-spacing: -0.025em;
  margin-bottom: 0.9rem; text-wrap: balance;
}
.hub-head h1 b { color: var(--brand); }
.hub-lede { font-size: 1.1rem; color: var(--text-soft); }
.hub-lede a { color: var(--brand); font-weight: 600; text-decoration: none; }
.hub-lede a:hover { text-decoration: underline; }

.hub-group { margin-bottom: clamp(2.2rem, 5vw, 3.2rem); }
.hub-group__head {
  display: flex; align-items: baseline; gap: 0.9rem;
  margin-bottom: 1.2rem;
}
.hub-group__head h2 {
  font-size: 0.82rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--brand); white-space: nowrap;
}
.hub-group__head::after { content: ""; flex: 1; height: 1px; background: var(--line); align-self: center; }

.hub-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.hub-item {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.4rem 3.2rem 1.4rem 1.6rem;
  transition: border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.hub-item:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow-card-hover); }
.hub-item h3 { font-size: 1.12rem; font-weight: 800; letter-spacing: -0.015em; line-height: 1.3; margin-bottom: 0.35rem; }
.hub-item h3 a { text-decoration: none; color: var(--text); }
.hub-item h3 a::after { content: ""; position: absolute; inset: 0; }
.hub-item h3 a:hover { color: var(--brand); }
.hub-item p { color: var(--text-soft); font-size: 0.96rem; margin: 0; }
.hub-item::after {
  content: "→"; position: absolute; right: 1.4rem; top: 1.35rem;
  color: var(--line-strong); font-weight: 700; font-size: 1.1rem;
  transition: color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.hub-item:hover::after { color: var(--brand); transform: translateX(3px); }

.hub-cta { margin-top: 0.6rem; }

/* --- Footer : coherent avec le site --- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: clamp(2.2rem, 5vw, 3.5rem) var(--gutter) 1.6rem;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(16rem, 1.4fr) repeat(3, minmax(9rem, 1fr));
  gap: 2rem;
  max-width: 1560px; margin: 0 auto;
}
.site-footer__brand {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: "Crimson Pro", Georgia, serif; font-weight: 600; font-size: 22px;
  letter-spacing: -0.025em; margin-bottom: 0.8rem;
}
.site-footer__line { color: var(--text-soft); font-size: 0.93rem; max-width: 26rem; }
.site-footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: 0.45rem; }
.site-footer__head {
  font-size: 0.75rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 0.3rem;
}
.site-footer__col a {
  color: var(--text-soft); text-decoration: none; font-weight: 600; font-size: 0.93rem;
  transition: color var(--dur-fast) var(--ease);
}
.site-footer__col a:hover { color: var(--brand); }
.site-footer__note { font-size: 0.85rem; color: var(--text-muted); }
.site-footer__base {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 0.8rem 1.5rem;
  max-width: 1560px; margin: 2.2rem auto 0;
  padding-top: 1.4rem; border-top: 1px solid var(--line);
  font-size: 0.85rem; color: var(--text-muted);
}
.site-footer__legal { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; }
.site-footer__legal a { color: var(--text-soft); text-decoration: none; font-weight: 600; }
.site-footer__legal a:hover { color: var(--brand); }

@media (max-width: 900px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .site-footer__grid { grid-template-columns: 1fr; }
  .g-cta { padding: 1.3rem 1.3rem; }
  .hub-item { padding-right: 2.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .brand__dot::before, .brand__dot::after { animation: none; }
  .hub-item, .g-related a, .btn, .nav__cta, .nav__ghost { transition: none; }
}

/* --- Charte présentation : titres en serif marine (guides, secteurs, agence, formation, cyber) --- */
.guide h1, .guide h2,
.hub-head h1, .hub-group__head h2,
.fp-hero h1, .fp-h2 {
  font-family: "Crimson Pro", Georgia, serif !important;
  font-weight: 700;
  letter-spacing: -0.01em;
}
