/* COLOR by novatechweb — page publique d'une palette partagée (fond clair et neutre, pour
   présenter les couleurs sans les fausser). */

:root {
  --bg: #f5f4f1;
  --surface: #ffffff;
  --text: #141416;
  --muted: #6b6b73;
  --line: #e3e2de;
  --font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { min-height: 100vh; background: var(--bg); color: var(--text); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
button { font: inherit; }

/* Barre du haut */
.sh-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1320px; margin: 0 auto; padding: 20px 32px; }
.sh-brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.sh-brand img { display: block; width: auto; height: 24px; }
.sh-brand small { color: var(--muted); font-size: 12.5px; font-weight: 500; }
.sh-nav { display: flex; gap: 8px; }

.sh-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); font: 600 13.5px var(--font); text-decoration: none; white-space: nowrap; cursor: pointer; transition: border-color .15s, background-color .15s; }
.sh-btn:hover { border-color: #c4c3be; }
.sh-btn-ghost { background: transparent; }
/* Boutons d'inscription : seulement quand la plateforme est ouverte à la vente (share.js). */
html:not(.can-signup) [data-signup] { display: none; }
.sh-btn-dark { border-color: #141416; background: #141416; color: #fff; }
.sh-btn-dark:hover { border-color: #2c2c31; background: #2c2c31; }
.sh-btn-light { border-color: #fff; background: #fff; color: #141416; }
.sh-btn-light:hover { border-color: #e9e9ec; background: #e9e9ec; }
.sh-btn:focus-visible, .sh-col:focus-visible, .sh-code:focus-visible { outline: 3px solid #3aa2fd; outline-offset: 2px; }

/* En-tête de la palette */
.sh-main { max-width: 1320px; margin: 0 auto; padding: 8px 32px 56px; }
.sh-hero { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; margin: 22px 0 24px; }
.sh-kicker { margin: 0 0 8px; color: var(--muted); font-size: 12.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.sh-hero h1 { margin: 0; font-size: clamp(32px, 4.6vw, 56px); font-weight: 800; letter-spacing: -.03em; line-height: 1.02; }
.sh-meta { margin: 10px 0 0; color: var(--muted); font-size: 15px; }
.sh-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* La palette en grand : cliquer copie le code. */
.sh-palette { display: flex; height: min(58vh, 540px); min-height: 320px; overflow: hidden; border-radius: 24px; box-shadow: 0 1px 2px rgba(20, 20, 22, .06), 0 24px 48px -28px rgba(20, 20, 22, .45); }
.sh-col { position: relative; display: flex; flex: 1 1 0; flex-direction: column; justify-content: flex-end; min-width: 0; padding: 24px 20px; border: 0; background: var(--c); color: var(--on); text-align: left; cursor: copy; transition: flex-grow .35s cubic-bezier(.2, .8, .2, 1); }
.sh-col:hover, .sh-col:focus-visible { flex-grow: 1.7; }
.sh-col b { overflow: hidden; font: 700 clamp(13px, 1.4vw, 19px) var(--mono); letter-spacing: .03em; text-overflow: ellipsis; }
.sh-col small { display: block; overflow: hidden; margin-top: 3px; font-size: 13px; font-weight: 500; opacity: .8; text-overflow: ellipsis; white-space: nowrap; }
.sh-palette.is-dense .sh-col { padding: 18px 10px; }
.sh-palette.is-dense .sh-col b { font-size: 12.5px; }
.sh-palette.is-dense .sh-col small { font-size: 11px; }
.sh-col-hint { position: absolute; top: 18px; left: 20px; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; opacity: 0; transition: opacity .2s; }
.sh-col:hover .sh-col-hint, .sh-col:focus-visible .sh-col-hint { opacity: .75; }

/* Détail des couleurs */
.sh-section { margin-top: 52px; }
.sh-section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; margin-bottom: 18px; }
.sh-section-head h2 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.sh-section-head p { margin: 0; color: var(--muted); font-size: 13.5px; }
.sh-cards { display: grid; grid-template-columns: repeat(var(--cols, 6), minmax(0, 1fr)); gap: 14px; }
.sh-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.sh-card-chip { height: 92px; background: var(--c); }
.sh-card-body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 14px 12px 12px; }
.sh-card-body h3 { overflow: hidden; margin: 0 4px; font-size: 15px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.sh-codes { display: flex; flex-direction: column; gap: 1px; }
.sh-code { display: flex; align-items: baseline; gap: 8px; width: 100%; min-width: 0; overflow: hidden; padding: 5px 6px; border: 0; border-radius: 7px; background: none; color: var(--text); font: 12px var(--mono); text-align: left; white-space: nowrap; cursor: copy; }
.sh-code:hover { background: var(--bg); }
.sh-code span { flex: none; width: 44px; color: var(--muted); font: 700 10.5px var(--font); letter-spacing: .06em; }
.sh-read { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: auto; }
.sh-read span { display: flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 6px; border-radius: 9px; background: var(--c); color: var(--t); font-size: 11.5px; font-weight: 600; white-space: nowrap; box-shadow: inset 0 0 0 1px rgba(20, 20, 22, .06); }
.sh-read b { font-size: 15px; font-weight: 800; }
.sh-read .is-low { opacity: .55; }

/* Encart de présentation de COLOR */
.sh-promo { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; align-items: center; gap: 28px; margin-top: 56px; padding: 26px 30px; border-radius: 22px; background: #141416; color: #fff; }
.sh-promo-strip { display: flex; height: 72px; overflow: hidden; border-radius: 12px; }
.sh-promo-strip i { flex: 1 1 0; background: var(--c); }
.sh-promo-text b { font-size: 18px; font-weight: 800; }
.sh-promo-text p { margin: 4px 0 0; color: #b9b9c2; font-size: 14px; }
.sh-promo-cta { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.sh-link { color: #b9b9c2; font-size: 13px; }
.sh-link:hover { color: #fff; }

/* Lien incomplet */
.sh-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding-top: 12vh; }
.sh-empty h1 { margin: 0; font-size: clamp(28px, 4vw, 44px); font-weight: 800; letter-spacing: -.02em; }
.sh-empty p { max-width: 560px; margin: 0; color: var(--muted); }

.sh-foot { max-width: 1320px; margin: 0 auto; padding: 0 32px 32px; color: var(--muted); font-size: 12.5px; }

.sh-toast { position: fixed; bottom: 24px; left: 50%; z-index: 10; padding: 10px 16px; border-radius: 10px; background: #141416; color: #fff; font-size: 13.5px; font-weight: 600; opacity: 0; pointer-events: none; transform: translate(-50%, 10px); transition: opacity .2s, transform .2s; }
.sh-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1100px) {
  .sh-cards { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .sh-promo { grid-template-columns: minmax(0, 1fr); }
  .sh-promo-strip { height: 40px; }
  .sh-promo-cta { align-items: flex-start; }
}

@media (max-width: 720px) {
  .sh-top, .sh-main, .sh-foot { padding-right: 18px; padding-left: 18px; }
  .sh-nav .sh-btn-ghost { display: none; }
  .sh-palette { flex-direction: column; height: auto; min-height: 0; border-radius: 18px; }
  .sh-col { flex-direction: row; align-items: center; justify-content: space-between; min-height: 72px; padding: 14px 18px; }
  .sh-col:hover, .sh-col:focus-visible { flex-grow: 1; }
  .sh-col small { margin: 0 0 0 12px; }
  .sh-col-hint { display: none; }
  .sh-cards { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .sh-col, .sh-toast { transition: none; }
}
