/* ============================================================
   Archiware P5 v1 — page produit, design system NEON.
   S'appuie sur neon-page.css. Classes propres à cette page
   préfixées .arw- pour éviter tout conflit avec le thème.
   ============================================================ */

/* ---------- VISUEL INTERACTIF (en-tête) ---------- */
.arw-vis { background: var(--neon-dark-panel); border: 1px solid var(--neon-dark-hairline); border-radius: 14px; padding: 22px 22px 16px; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.arw-vis-h { display: flex; justify-content: space-between; gap: 12px; font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--neon-dark-text-dim); margin-bottom: 14px; }
.arw-vis-note { opacity: .7; }
.arw-vis-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.arw-vis-tabs button { font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; border: 1px solid rgba(165,206,238,.35); border-radius: 6px; padding: 6px 12px; color: #fff; background: none; cursor: pointer; transition: .2s; }
.arw-vis-tabs button:hover { border-color: var(--neon-accent); }
.arw-vis-tabs button[aria-pressed=true] { background: var(--neon-accent); border-color: var(--neon-accent); }
.arw-flow { display: grid; grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr) 28px minmax(0, 1.1fr); align-items: stretch; gap: 0; }
.arw-node { display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 12px 10px; border: 1px solid var(--neon-dark-hairline-soft); border-radius: 10px; background: rgba(255,255,255,.04); min-width: 0; }
.arw-node small { font-family: 'IBM Plex Mono', monospace; font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--neon-dark-text-dim-soft); }
.arw-node b { font-size: 13px; line-height: 1.35; color: #fff; font-weight: 600; }
.arw-node-mod { border-color: var(--neon-accent); background: rgba(89,148,212,.14); }
.arw-node ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.arw-node li { font-size: 12.5px; line-height: 1.35; color: #fff; padding-left: 12px; position: relative; }
.arw-node li::before { content: ""; position: absolute; left: 0; top: 7px; width: 5px; height: 5px; border-radius: 50%; background: var(--neon-green); }
.arw-arrow { align-self: center; height: 2px; background: repeating-linear-gradient(90deg, var(--neon-accent) 0 6px, transparent 6px 12px); background-size: 12px 2px; animation: arw-flow 1s linear infinite; }
@keyframes arw-flow { to { background-position: 12px 0; } }
.arw-rec { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 10px 12px; border: 1px solid var(--neon-dark-hairline-soft); border-radius: 8px; font-family: 'IBM Plex Mono', monospace; font-size: 11px; }
.arw-rec span { color: var(--neon-dark-text-dim); letter-spacing: .08em; text-transform: uppercase; }
.arw-rec b { color: #fff; font-weight: 500; text-align: right; }
.arw-vis-t { margin: 12px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--neon-dark-text); min-height: 62px; }
.arw-vis-src { margin: 8px 0 0; padding-top: 10px; border-top: 1px solid var(--neon-dark-hairline); font-size: 11px; color: var(--neon-dark-text-dim-soft); }

/* ---------- CARTES ---------- */
.arw-card { background: var(--neon-light-card); border: 1px solid var(--neon-light-hairline); border-radius: 12px; padding: 24px; box-shadow: 0 1px 3px rgba(26,36,47,.06); }
.arw-card h3 { font-size: 15px; color: var(--neon-accent); margin: 0 0 8px; }
.arw-card .arw-card-big { font-size: 22px; color: var(--neon-light-text); margin: 0 0 6px; }
.arw-card .arw-card-sub { font-size: 13px; font-weight: 600; color: var(--neon-accent); margin: 0 0 10px; }
.arw-card p { font-size: 13px; line-height: 1.6; color: var(--neon-light-text-dim); margin: 0 0 10px; }
.arw-card p:last-child { margin-bottom: 0; }
.arw-card-dark { background: rgba(255,255,255,.04); border-color: var(--neon-dark-hairline); box-shadow: none; }
.arw-card-dark .arw-card-big { color: var(--neon-dark-text); }
.arw-card-dark p { color: var(--neon-dark-text-dim); font-size: 13.5px; line-height: 1.65; }
.arw-card-dark a { color: var(--neon-accent); font-weight: 600; }
.arw-fine { font-size: 12px !important; opacity: .85; }
.arw-fine-inline { font-size: 12px; opacity: .8; font-weight: 400; }

.arw-tag { display: inline-block; font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--neon-accent); background: rgba(89,148,212,.12); border-radius: 20px; padding: 3px 12px; margin: 0 0 12px; }

.arw-spec { list-style: none; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--neon-light-hairline); }
.arw-spec li { position: relative; padding: 3px 0 3px 18px; font-size: 12.5px; line-height: 1.55; color: var(--neon-light-text-dim); }
.arw-spec li::before { content: ""; position: absolute; left: 0; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--neon-accent); }
.arw-card-dark .arw-spec { border-top-color: var(--neon-dark-hairline); }
.arw-card-dark .arw-spec li { color: var(--neon-dark-text-dim); font-size: 13px; }

.arw-link { display: block; margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--neon-accent); text-decoration: none; }
.arw-link:hover { text-decoration: underline; }

/* ---------- + MAGIC HOUR / fonctions ---------- */
.arw-plus-card { padding: 26px; }
.arw-plus-num { font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: var(--neon-accent); margin-bottom: 8px; }
.arw-plus-card h3 { font-size: 17px; color: var(--neon-light-text); margin: 0 0 8px; }

/* ---------- LISTES, NOTES, TABLEAUX ---------- */
.neon-page .arw-subhead { margin: 48px 0 0; font-size: 20px; color: var(--neon-light-text); }
.neon-page .arw-subhead-dark { color: var(--neon-dark-text); }
.arw-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; }
.arw-chips li { font-family: 'IBM Plex Mono', monospace; font-size: 12px; font-weight: 600; color: var(--neon-dark-text); border: 1px solid var(--neon-dark-hairline-soft); border-radius: 6px; padding: 4px 11px; }
.arw-footnote { margin: 20px 0 0; font-size: 12px; line-height: 1.55; color: var(--neon-light-text-dim); max-width: 880px; }
.arw-footnote-dark { color: var(--neon-dark-text-dim); }
.arw-note { margin-top: 28px; padding: 16px 20px; background: rgba(89,148,212,.08); border-radius: 10px; font-size: 13.5px; line-height: 1.6; color: var(--neon-light-text-dim); }
.arw-note strong { color: var(--neon-light-text); }
.arw-note a { color: var(--neon-accent); font-weight: 600; }

.arw-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.arw-table th, .arw-table td { padding: 12px 10px; text-align: left; border-bottom: 1px solid var(--neon-light-hairline); vertical-align: top; }
.arw-table th { color: var(--neon-accent); font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; }
.arw-table td { color: var(--neon-light-text-dim); line-height: 1.55; }
.arw-table tr:last-child td { border-bottom: none; }
.arw-table-dark th, .arw-table-dark td { border-bottom-color: var(--neon-dark-hairline); }
.arw-table-dark td { color: var(--neon-dark-text-dim); }
.arw-table-dark td:first-child { color: var(--neon-dark-text); font-weight: 600; }
.arw-ref { font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; letter-spacing: .02em; }

/* ---------- FIGURES (si les images sont déposées) ---------- */
.arw-fig { margin: 32px 0 0; max-width: 860px; }
.arw-fig a { display: block; line-height: 0; }
.arw-fig img { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--neon-light-hairline); background: #fff; }
.arw-fig figcaption { margin-top: 10px; font-size: 12.5px; line-height: 1.55; color: var(--neon-light-text-dim); }
.neon-band-dark .arw-fig img { border-color: var(--neon-dark-hairline); }
.arw-fig-wide { max-width: 860px; margin-top: 32px; }
.arw-fig-wide img { border-radius: 8px; }
.arw-card .arw-fig-card { margin: 16px 0 0; max-width: 100%; }
.arw-card .arw-fig-card img { border: 0; border-radius: 8px; max-width: 448px; }
.arw-figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 32px; align-items: start; }
.arw-figs .arw-fig { margin: 0; max-width: none; }
.arw-figs .arw-fig img { border: 0; border-radius: 0; background: transparent; }
.arw-logo { display: inline-block; background: #fff; border-radius: 10px; padding: 10px 18px; margin: 0 0 22px; line-height: 0; }
.arw-logo img { height: 38px; width: auto; display: block; }
.neon-band-dark .arw-fig figcaption { color: var(--neon-dark-text-dim); }

/* ---------- FAQ ---------- */
.arw-faq { margin-top: 28px; max-width: 860px; display: grid; gap: 10px; }
.arw-q { border: 1px solid var(--neon-light-hairline); border-radius: 10px; background: #fff; }
.arw-q summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 20px; font-weight: 600; font-size: 15px; color: var(--neon-light-text); position: relative; }
.arw-q summary::-webkit-details-marker { display: none; }
.arw-q summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 20px; color: var(--neon-accent); transition: transform .2s; }
.arw-q[open] summary::after { content: "–"; }
.arw-q summary:hover { color: var(--neon-accent); }
.arw-q p { margin: 0; padding: 0 20px 18px; font-size: 14px; line-height: 1.7; color: var(--neon-light-text-dim); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 760px) {
    .arw-figs { grid-template-columns: 1fr; }
    .arw-flow { grid-template-columns: 1fr; gap: 0; }
    .arw-arrow { width: 2px; height: 22px; justify-self: center; background: repeating-linear-gradient(180deg, var(--neon-accent) 0 6px, transparent 6px 12px); background-size: 2px 12px; animation: arw-flow-v 1s linear infinite; }
    @keyframes arw-flow-v { to { background-position: 0 12px; } }
    .arw-vis { padding: 18px 16px 14px; }
    .arw-rec { flex-direction: column; gap: 4px; }
    .arw-rec b { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
    .arw-arrow { animation: none; }
}

/* ---------- Modules : cartes complémentaires empilées ---------- */
.arw-stack { display: grid; gap: 20px; }
.arw-stack .arw-card > p { max-width: 760px; }
.arw-card-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); column-gap: 40px; align-items: start; align-content: start; grid-template-rows: repeat(3, min-content) 1fr; }
.arw-card-split > .arw-fig-card { align-self: center; }
.arw-card-split > * { grid-column: 1; }
.arw-card-split > .arw-tag { justify-self: start; }
.arw-card-split > .arw-fig-card { grid-column: 2; grid-row: 1 / span 4; margin: 0; }
.arw-card-split > .arw-fig-card img { max-width: 100%; height: auto; }
@media (max-width: 760px) {
    .arw-card-split { display: block; }
    .arw-card-split > .arw-fig-card { margin-top: 16px; }
}
