/* eu-web-compliance — site de présentation. Charte KAYZEN (Outfit, Plus Jakarta Sans, marine et orange brûlé). */

@font-face {
  font-family: "Outfit";
  src: url("/assets/fonts/outfit-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --surface: #f2f5f7;
  --surface-raised: #eaedef;
  --text: #1f2937;
  --muted: #586474;
  --border: #e0e5eb;
  --primary: #b7481f;
  --primary-hover: #9c3b17;
  --on-primary: #ffffff;
  --navy: #1f3b61;
  --navy-deep: #132944;
  --slate: #7d8ca1;
  --gold: #f3bd49;
  --focus: #b7481f;
  --code-bg: #132944;
  --code-text: #f2f5f7;
  --shadow-sm: rgba(31, 59, 97, 0.08) 0 12px 36px 0;
  --shadow-md: rgba(36, 49, 66, 0.06) 0 4px 12px 0, rgba(36, 49, 66, 0.04) 0 1px 3px 0;
  --shadow-lg: rgba(36, 49, 66, 0.18) 0 24px 48px -16px, rgba(36, 49, 66, 0.06) 0 4px 12px 0;
  --font-display: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  --radius-sm: 12px;
  --radius-lg: 24px;
  --container: 1200px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #130e0c;
  --surface: #211c1b;
  --surface-raised: #2d2927;
  --text: #fcf8f6;
  --muted: #b5b0ad;
  --border: #393533;
  --primary: #ec7a4a;
  --primary-hover: #f28b5e;
  --on-primary: #0b0b0c;
  --navy: #fcf8f6;
  --focus: #f3bd49;
  --code-bg: #0b0b0c;
  --shadow-sm: none;
  --shadow-md: none;
  --shadow-lg: none;
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 0.6em;
}

:root[data-theme="dark"] h1,
:root[data-theme="dark"] h2,
:root[data-theme="dark"] h3,
:root[data-theme="dark"] h4 {
  color: var(--text);
}

h1 {
  font-size: clamp(2.25rem, 5vw + 1rem, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.875rem, 2.5vw + 1rem, 3rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}

h3 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--primary-hover);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

code,
kbd,
pre {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

:not(pre) > code {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.1em 0.35em;
  overflow-wrap: anywhere;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10000;
  background: var(--primary);
  color: var(--on-primary);
  padding: 12px 20px;
  border-radius: 9999px;
  font-family: var(--font-display);
  font-weight: 700;
}

.skip-link:focus {
  top: 16px;
  color: var(--on-primary);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 768px) {
  .container {
    padding: 0 24px;
  }
}

/* En-tête */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(180%) blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  color: var(--text);
}

.brand-mark {
  flex: none;
  width: 36px;
  height: 36px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav ul {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 9999px;
}

.main-nav a:hover {
  background: var(--surface);
  color: var(--primary);
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 9999px;
  background: var(--bg);
  color: var(--text);
  font: 600 0.875rem var(--font-display);
  cursor: pointer;
}

.icon-button:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.icon-button svg {
  width: 20px;
  height: 20px;
}

.menu-toggle {
  display: none;
}

@media (max-width: 959px) {
  .menu-toggle {
    display: inline-flex;
  }
  .main-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
  }
  .main-nav.is-open {
    display: block;
  }
  .main-nav ul {
    flex-direction: column;
    padding: 8px 16px 16px;
  }
  .main-nav a {
    width: 100%;
  }
  .header-github-label {
    display: none;
  }
}

/* Boutons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 32px;
  border-radius: 9999px;
  border: 2px solid transparent;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: box-shadow 200ms ease, transform 150ms ease, background-color 200ms ease;
}

.button:active {
  transform: scale(0.97);
}

.button-primary {
  background: var(--primary);
  color: var(--on-primary);
}

.button-primary:hover {
  background: var(--primary-hover);
  color: var(--on-primary);
  box-shadow: 0 18px 40px -14px rgba(183, 72, 31, 0.55), 0 4px 12px -4px rgba(183, 72, 31, 0.35);
}

.button-ghost {
  background: transparent;
  color: var(--text);
  border-color: color-mix(in srgb, var(--text) 25%, transparent);
}

.button-ghost:hover {
  border-color: var(--text);
  color: var(--text);
  background: var(--surface);
}

.button svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Sections */

.section {
  padding: 72px 0;
}

.section-surface {
  background: var(--surface);
}

.section-navy {
  background: var(--navy-deep);
  color: #ffffff;
}

.section-navy h2,
.section-navy h3 {
  color: #ffffff;
}

.section-navy p {
  color: rgba(255, 255, 255, 0.85);
}

.section-navy a {
  color: var(--gold);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-navy .eyebrow {
  color: var(--gold);
}

.lead {
  font-size: 1.1875rem;
  color: var(--muted);
  max-width: 46rem;
}

.section-head {
  max-width: 48rem;
  margin-bottom: 40px;
}

/* Bandeau d'accueil */

.hero {
  padding: 64px 0 72px;
  background: var(--surface);
}

.hero-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.15fr 1fr;
  }
}

.hero h1 em {
  font-style: normal;
  color: var(--primary);
}

.hero .lead {
  margin-bottom: 32px;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}

.badges li {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 9999px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 40px;
  margin: 40px 0 0;
}

.hero-facts div {
  display: flex;
  flex-direction: column;
}

.hero-facts dt {
  font-size: 0.8125rem;
  color: var(--muted);
}

.hero-facts dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

/* Carte « terminal » */

.terminal {
  background: var(--code-bg);
  color: var(--code-text);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.75);
}

.terminal-dots {
  display: inline-flex;
  gap: 6px;
  margin-right: 8px;
}

.terminal-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
}

.terminal pre {
  margin: 0;
  padding: 20px;
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.t-prompt {
  color: var(--gold);
}

.t-ok {
  color: #8fd6a5;
}

.t-warn {
  color: #f3bd49;
}

.t-muted {
  color: rgba(255, 255, 255, 0.7);
}

/* Grilles et cartes */

.grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 640px) {
  .grid-2,
  .grid-3,
  .grid-5 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid-5 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
}

.section-surface .card {
  background: var(--bg);
}

:root[data-theme="dark"] .section-surface .card {
  background: var(--surface-raised);
}

.card h3 {
  margin-bottom: 8px;
}

.card p:last-child,
.card ul:last-child {
  margin-bottom: 0;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  color: var(--primary);
  margin-bottom: 16px;
}

.card-icon svg {
  width: 26px;
  height: 26px;
}

.card .sources {
  font-size: 0.875rem;
  color: var(--muted);
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1em;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  -webkit-mask: url("/assets/check.svg") center / contain no-repeat;
  mask: url("/assets/check.svg") center / contain no-repeat;
}

/* Étapes */

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 20px;
}

@media (min-width: 1024px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.steps > li {
  counter-increment: step;
  position: relative;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.steps > li::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-deep);
  font-family: var(--font-display);
  font-weight: 800;
  margin-bottom: 16px;
}

/* Tableau */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

caption {
  text-align: left;
  padding: 16px 20px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text);
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
}

thead th {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: var(--surface);
}

tbody th {
  font-family: var(--font-display);
  font-weight: 700;
  white-space: nowrap;
}

/* Onglets d'installation */

.tabs {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 8px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.tab-list [role="tab"] {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 9999px;
  background: transparent;
  color: var(--text);
  font: 600 0.9375rem var(--font-display);
  cursor: pointer;
}

.tab-list [role="tab"]:hover {
  color: var(--primary);
}

.tab-list [role="tab"][aria-selected="true"] {
  background: var(--primary);
  color: var(--on-primary);
}

.tab-panel {
  padding: 28px;
}

.tab-panel > :last-child {
  margin-bottom: 0;
}

.tab-panel ol {
  padding-left: 1.4em;
}

.tab-panel li {
  margin-bottom: 0.75em;
}

/* Bloc de commande copiable */

.command {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0.75em 0 1em;
  padding: 14px 14px 14px 18px;
  background: var(--code-bg);
  color: var(--code-text);
  border-radius: var(--radius-sm);
}

.command pre {
  flex: 1;
  margin: 0;
  padding: 8px 0;
  overflow-x: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 0.875rem;
  line-height: 1.6;
}

.copy-button {
  flex: none;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font: 600 0.8125rem var(--font-display);
  cursor: pointer;
}

.copy-button:hover {
  background: rgba(255, 255, 255, 0.18);
}

.copy-button:focus-visible {
  outline-color: var(--gold);
}

/* Exemples de demandes */

.prompt-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}

@media (min-width: 768px) {
  .prompt-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.prompt-list li {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
}

:root[data-theme="dark"] .prompt-list li {
  background: var(--surface-raised);
}

.prompt-list .mode {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}

.prompt-list q {
  quotes: "« " " »";
  font-style: italic;
}

/* Questions fréquentes */

.faq details {
  border-bottom: 1px solid var(--border);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  padding: 12px 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--primary);
  font-size: 1.25rem;
}

.faq details[open] summary::after {
  content: "−";
}

.faq details > div {
  padding-bottom: 20px;
  color: var(--muted);
}

/* Encadré */

.notice {
  border-left: 4px solid var(--primary);
  background: var(--surface);
  padding: 20px 24px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.notice p:last-child {
  margin-bottom: 0;
}

/* Pages légales */

.legal {
  padding: 56px 0 80px;
}

.legal .container {
  max-width: 820px;
}

.legal h1 {
  font-size: clamp(2rem, 3vw + 1rem, 3rem);
}

.legal h2 {
  font-size: 1.5rem;
  margin-top: 2em;
}

.legal .updated {
  color: var(--muted);
  font-size: 0.9375rem;
}

.legal address {
  font-style: normal;
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin-bottom: 1em;
}

.legal ul {
  padding-left: 1.3em;
}

.legal li {
  margin-bottom: 0.4em;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  font-size: 0.9375rem;
  color: var(--muted);
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
}

/* Pied de page */

.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.8);
  padding: 64px 0 32px;
  font-size: 0.9375rem;
}

.footer-grid {
  display: grid;
  gap: 40px;
  margin-bottom: 48px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
  }
}

.site-footer .brand {
  color: #ffffff;
  margin-bottom: 16px;
}

.site-footer h2 {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #ffffff;
  margin-bottom: 12px;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.35);
}

.site-footer a:hover {
  color: #ffffff;
  text-decoration-color: #ffffff;
}

.site-footer :focus-visible {
  outline-color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.875rem;
}

.footer-bottom p {
  margin: 0;
}

.share-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.share-links a {
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 9999px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.875rem;
}

.share-links a:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Retour en haut */

.back-to-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.back-to-top[hidden] {
  display: none;
}

.back-to-top svg {
  width: 22px;
  height: 22px;
}

/* Région d'annonce pour les lecteurs d'écran */

.status-region {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

@media print {
  .site-header,
  .back-to-top,
  .share-links,
  .copy-button {
    display: none !important;
  }
}

.spaced {
  margin-top: 32px;
}

.license-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  font-size: 0.8125rem;
}

.section-navy .button-primary,
.section-navy .button-primary:hover {
  color: var(--on-primary);
}

@media (max-width: 479px) {
  .header-github {
    display: none;
  }
}
