@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 400 600; font-display: swap; src: url("../fonts/fraunces-latin.woff2") format("woff2"); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 600; font-display: swap; src: url("../fonts/inter-latin.woff2") format("woff2"); }
/* NEXUS IA Sport : feuille de style éditoriale (magazine). Thème clair par défaut, sombre selon le système. */
:root {
  --paper: #f7f4ee;
  --paper-2: #efeae0;
  --card: #fffdf9;
  --ink: #15140f;
  --ink-2: #3a372f;
  --muted: #6d675b;
  --line: #e2dccf;
  --accent: #1d4d3b;
  --accent-ink: #f7f4ee;
  --gold: #a07a33;
  --shadow: 0 1px 2px rgba(21, 20, 15, .05), 0 12px 32px -18px rgba(21, 20, 15, .25);
  --serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1200px;
  --read: 700px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #11110f; --paper-2: #181815; --card: #1b1b18; --ink: #ece7dc; --ink-2: #cfc9bc; --muted: #9b9486;
    --line: #2c2b26; --accent: #8cc4a8; --accent-ink: #10110f; --gold: #cfa95e;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 16px 40px -20px rgba(0,0,0,.6); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #11110f; --paper-2: #181815; --card: #1b1b18; --ink: #ece7dc; --ink-2: #cfc9bc; --muted: #9b9486;
  --line: #2c2b26; --accent: #8cc4a8; --accent-ink: #10110f; --gold: #cfa95e;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 16px 40px -20px rgba(0,0,0,.6); color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
/* Image de fond : terrain et trajectoires de passes, très discrets et fixes derrière le contenu. */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: url("../images/fond-terrain.svg") center / cover no-repeat; opacity: .16; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body::before { filter: invert(1) hue-rotate(180deg); opacity: .11; } }
:root[data-theme="dark"] body::before { filter: invert(1) hue-rotate(180deg); opacity: .11; }
@media (max-width: 600px) { body::before { opacity: .1; } }
@media print { body::before { display: none; } }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { width: min(var(--wrap), calc(100% - 32px)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
.eyebrow, .kicker { font: 600 .72rem/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -.015em; line-height: 1.12; margin: 0; font-optical-sizing: auto; }

/* En-tête */
.lx-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.lx-bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; }
.lx-logo { display: flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--ink); white-space: nowrap; }
.lx-logo b { font: 600 1.55rem/1 var(--serif); letter-spacing: .02em; }
.lx-logo span { font: 600 .66rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.lx-nav { display: flex; align-items: center; gap: 22px; }
.lx-nav a { font: 500 .88rem/1 var(--sans); color: var(--ink-2); text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; }
.lx-nav a:hover, .lx-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--gold); }
.lx-theme { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 50%; cursor: pointer; }
.lx-theme:hover { background: var(--paper-2); }
.lx-menu { display: none; }
.lx-menu summary { list-style: none; cursor: pointer; font: 600 .82rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; }
.lx-menu summary::-webkit-details-marker { display: none; }
.lx-menu nav { position: absolute; right: 16px; left: 16px; top: 64px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 10px; display: grid; }
.lx-menu nav a { padding: 12px 14px; text-decoration: none; border-radius: 8px; font-weight: 500; }
.lx-menu nav a:hover { background: var(--paper-2); }
@media (max-width: 960px) { .lx-bar { gap: 8px; } .lx-nav { display: none; } .lx-menu { display: block; } .lx-theme { margin-left: auto; } }
.lx-progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--gold); transition: width .1s linear; }

/* Pied de page */
.lx-footer { margin-top: 96px; background: #12120f; color: #cfc9bc; padding: 64px 0 40px; }
.lx-footer a { color: #ece7dc; text-decoration: none; }
.lx-footer a:hover { color: #cfa95e; }
.lx-foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.lx-foot-grid h2 { font: 600 .72rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #cfa95e; margin-bottom: 16px; }
.lx-foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .92rem; }
.lx-foot-brand b { font: 600 1.7rem/1 var(--serif); color: #fff; }
.lx-foot-brand p { color: #a59f92; font-size: .92rem; max-width: 34ch; margin: 14px 0 0; }
.lx-foot-legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid #2c2b26; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .82rem; color: #8c8577; }
@media (max-width: 820px) { .lx-foot-grid { grid-template-columns: 1fr 1fr; } .lx-foot-brand { grid-column: 1 / -1; } }

/* Accueil */
.lx-masthead { padding: 56px 0 28px; border-bottom: 1px solid var(--line); }
.lx-masthead h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); max-width: 16ch; }
.lx-masthead p { max-width: 60ch; color: var(--ink-2); font-size: 1.1rem; margin: 18px 0 0; }
.lx-masthead .lx-date { font: 500 .8rem/1 var(--sans); color: var(--muted); letter-spacing: .06em; margin-bottom: 18px; text-transform: uppercase; }
.lx-lead-story { display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: center; padding: 48px 0; border-bottom: 1px solid var(--line); }
.lx-lead-story img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; }
.lx-lead-story h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin: 12px 0 16px; }
.lx-lead-story h2 a { text-decoration: none; }
.lx-lead-story p { color: var(--ink-2); font-size: 1.08rem; margin: 0 0 18px; }
@media (max-width: 860px) { .lx-lead-story { grid-template-columns: 1fr; gap: 24px; } }
.lx-section { padding: 56px 0 8px; }
.lx-section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; border-top: 2px solid var(--ink); padding-top: 14px; margin-bottom: 28px; }
.lx-section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.lx-section-head p { margin: 0; color: var(--muted); max-width: 52ch; font-size: .95rem; }
.lx-section-head a { font: 600 .82rem/1 var(--sans); white-space: nowrap; color: var(--accent); text-decoration: none; }

/* Cartes */
.lx-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 28px; }
.lx-grid.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .lx-grid, .lx-grid.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .lx-grid, .lx-grid.four { grid-template-columns: 1fr; } }
.lx-card { display: flex; flex-direction: column; gap: 12px; }
.lx-card a.lx-thumb { display: block; overflow: hidden; border-radius: 4px; background: var(--paper-2); }
.lx-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.lx-card:hover img { transform: scale(1.035); }
.lx-card h3 { font-size: 1.28rem; line-height: 1.22; }
.lx-card h3 a { text-decoration: none; }
.lx-card p { margin: 0; color: var(--muted); font-size: .94rem; line-height: 1.55; }
.lx-card .lx-meta { font: 500 .76rem/1 var(--sans); color: var(--muted); letter-spacing: .04em; }
.lx-pills { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 32px; padding: 0; list-style: none; }
.lx-pills a { display: inline-block; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; font: 500 .86rem/1 var(--sans); text-decoration: none; background: var(--card); }
.lx-pills a:hover, .lx-pills a[aria-current="page"] { border-color: var(--ink); color: var(--ink); }
.lx-method { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.lx-method div { border-top: 1px solid var(--line); padding-top: 18px; }
.lx-method h3 { font-size: 1.15rem; margin-bottom: 8px; }
.lx-method p { margin: 0; color: var(--muted); font-size: .94rem; }
@media (max-width: 860px) { .lx-method { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .lx-method { grid-template-columns: 1fr; } }

/* Article */
.lx-crumbs { font: 500 .8rem/1.4 var(--sans); color: var(--muted); padding-top: 28px; }
.lx-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.lx-crumbs li + li::before { content: '/'; margin-right: 8px; color: var(--line); }
.lx-crumbs a { text-decoration: none; }
.lx-article-head { max-width: 880px; margin: 0 auto; padding: 36px 0 28px; text-align: center; }
.lx-article-head h1 { font-size: clamp(2.1rem, 5.2vw, 3.7rem); margin: 18px 0 20px; }
.lx-dek { font: 400 1.22rem/1.55 var(--serif); color: var(--ink-2); max-width: 46ch; margin: 0 auto; }
.lx-byline { margin-top: 26px; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 18px; font: 500 .82rem/1.4 var(--sans); color: var(--muted); }
.lx-hero { margin: 0 auto 8px; max-width: 1040px; }
.lx-hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; }
.lx-hero figcaption { font: 400 .78rem/1.4 var(--sans); color: var(--muted); margin-top: 10px; text-align: right; }
.lx-body { max-width: var(--read); margin: 0 auto; }
.lx-body > p, .lx-body section > p { font: 400 1.14rem/1.78 var(--serif); color: var(--ink); margin: 0 0 1.25em; hyphens: auto; }
.lx-body .lx-lead { font-size: 1.3rem; line-height: 1.65; margin-top: 40px; }
.lx-body .lx-lead::first-letter { float: left; font: 500 4.6rem/.82 var(--serif); padding: 6px 12px 0 0; color: var(--accent); }
.lx-body h2 { font-size: clamp(1.55rem, 3vw, 2rem); margin: 2.1em 0 .7em; }
.lx-toc { margin: 36px 0; padding: 22px 26px; border: 1px solid var(--line); border-radius: 6px; background: var(--card); }
.lx-toc h2 { font: 600 .72rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin: 0 0 14px; }
.lx-toc ol { margin: 0; padding-left: 1.2em; display: grid; gap: 7px; font-size: .97rem; }
.lx-toc a { text-decoration: none; color: var(--ink-2); }
.lx-toc a:hover { color: var(--accent); }
.lx-inline-read { margin: 2em 0; padding: 16px 20px; border-left: 3px solid var(--gold); background: var(--paper-2); font: 500 .98rem/1.5 var(--sans); }
.lx-inline-read span { display: block; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.lx-inline-read a { text-decoration: none; font-family: var(--serif); font-size: 1.12rem; }
.lx-key { margin: 2.6em 0; padding: 28px 30px; background: var(--accent); color: var(--accent-ink); border-radius: 6px; }
.lx-key h2 { font: 600 .72rem/1 var(--sans) !important; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 12px !important; opacity: .85; }
.lx-body .lx-key p { font: 400 1.25rem/1.55 var(--serif); margin: 0; color: var(--accent-ink); }
.lx-faq { margin: 2.6em 0; }
.lx-faq details { border-top: 1px solid var(--line); padding: 16px 0; }
.lx-faq details:last-child { border-bottom: 1px solid var(--line); }
.lx-faq summary { cursor: pointer; font: 500 1.12rem/1.4 var(--serif); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.lx-faq summary::-webkit-details-marker { display: none; }
.lx-faq summary::after { content: '+'; font-family: var(--sans); color: var(--gold); font-size: 1.3rem; line-height: 1; }
.lx-faq details[open] summary::after { content: '−'; }
.lx-faq details p { margin: 12px 0 0; color: var(--ink-2); font-size: 1rem; }
.lx-sources { margin: 2.6em 0; padding: 24px 26px; border: 1px solid var(--line); border-radius: 6px; font-size: .94rem; }
.lx-sources h2 { font-size: 1.3rem !important; margin: 0 0 10px !important; }
.lx-body .lx-sources p { color: var(--muted); margin: 0 0 14px; font: 400 .92rem/1.6 var(--sans); }
.lx-sources ol { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }
.lx-share, .lx-foot-share, .lx-follow { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font: 500 .82rem/1.2 var(--sans); }
.lx-share { margin: 1.4em 0; color: var(--muted); }
.lx-share > span { margin-inline-end: 4px; }
.lx-sh { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 42px; height: 42px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink-2); font: inherit; text-decoration: none; cursor: pointer; transition: color .15s, border-color .15s, background .15s; }
.lx-sh:hover, .lx-sh:focus-visible { color: var(--accent); border-color: var(--accent); }
.lx-sh[hidden] { display: none; }
.lx-sh.is-copied { color: var(--accent); border-color: var(--accent); }
.lx-sh-copied:not(:empty) { font-size: .78rem; }
.lx-share-more { color: var(--accent); margin-inline-start: 6px; text-underline-offset: 3px; }
.lx-foot-share { margin: 28px 0 0; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); color: #cfa95e; }
.lx-foot-share > span { margin-inline-end: 6px; }
.lx-footer .lx-sh { color: #ece7dc; border-color: rgba(255,255,255,.22); }
.lx-footer .lx-sh:hover, .lx-footer .lx-sh:focus-visible { color: #cfa95e; border-color: #cfa95e; }
.lx-lang { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 999px; font: 600 .78rem/1 var(--sans); letter-spacing: .06em; color: var(--ink-2); text-decoration: none; }
.lx-lang:hover, .lx-lang:focus-visible { color: var(--accent); border-color: var(--accent); }
.lx-sharepage { max-width: 760px; padding-top: 34px; padding-bottom: 64px; }
.lx-sharepage-img img { display: block; width: 100%; height: auto; border-radius: 12px; margin: 14px 0 22px; }
.lx-sharepage h1 { margin-bottom: .4em; }
.lx-sharepage h1 a { color: inherit; text-decoration: none; }
.lx-sharepage-h { margin: 1.6em 0 .7em; font-size: 1.15rem; }
.lx-share-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 10px; margin-bottom: 26px; font: 500 .9rem/1.2 var(--sans); }
.lx-share-grid .lx-sh { justify-content: flex-start; height: 48px; padding: 0 16px; border-radius: 10px; }
.lx-next { margin-top: 72px; padding: 56px 0 8px; background: var(--paper-2); border-top: 1px solid var(--line); }
.lx-next .lx-section-head { border-top: 0; padding-top: 0; }

/* Pages simples */
.lx-page { max-width: var(--read); margin: 0 auto; padding: 56px 0 0; }
.lx-page h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 14px 0 22px; }
.lx-page h2 { font-size: 1.6rem; margin: 2em 0 .6em; }
.lx-page p, .lx-page li { font-size: 1.05rem; color: var(--ink-2); }
.lx-page .lx-dek { margin: 0 0 12px; text-align: left; }
.lx-page .lx-table-wrap, .lx-body .lx-table-wrap { overflow-x: auto; margin: 1.2em 0; }
.lx-page table, .lx-body table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.lx-page th, .lx-page td, .lx-body th, .lx-body td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; color: var(--ink-2); }
.lx-page th, .lx-body th { color: var(--ink); font-weight: 600; background: var(--paper-2); }
@media (max-width: 600px) { .lx-body th, .lx-body td { padding: 7px 6px; } .lx-body table { font-size: .86rem; } }
.lx-page pre { white-space: pre-wrap; background: var(--paper-2); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; font-size: .95rem; color: var(--ink); }

/* Formulaire de contact */
.lx-form { margin-top: 36px; padding: 28px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); }
.lx-form .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.lx-form .field { display: grid; gap: 6px; }
.lx-form .full { grid-column: 1 / -1; }
.lx-form label { font: 500 .86rem/1.3 var(--sans); }
.lx-form input[type=text], .lx-form input[type=email], .lx-form select, .lx-form textarea { width: 100%; font: 400 1rem/1.4 var(--sans); padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--ink); }
.lx-form textarea { min-height: 150px; resize: vertical; }
.lx-form .consent { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0; font-size: .9rem; color: var(--ink-2); }
.lx-form .consent input { margin-top: 4px; }
.lx-form button { font: 600 .95rem/1 var(--sans); padding: 15px 26px; border: 0; border-radius: 999px; background: var(--ink); color: var(--paper); cursor: pointer; }
.lx-form button:hover { background: var(--accent); }
.lx-form .submit-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.lx-form .form-note { margin: 0; font-size: .86rem; color: var(--muted); }
@media (max-width: 600px) { .lx-form .form-grid { grid-template-columns: 1fr; } .lx-form { padding: 20px; } }
.lx-contact-points { list-style: none; padding: 0; display: grid; gap: 12px; }
.lx-contact-points strong { display: block; font: 600 .72rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.lx-btn { display: inline-block; font: 600 .9rem/1 var(--sans); padding: 14px 22px; border-radius: 999px; background: var(--ink); color: var(--paper); text-decoration: none; }
.lx-btn:hover { background: var(--accent); color: var(--accent-ink); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .lx-header, .lx-footer, .lx-next, .lx-share, .lx-share-grid, .lx-toc { display: none; } body { background: #fff; } }
