/* Charte Nova Expertise (nova-expertise.com) — jetons, polices et composants communs (joueur, écran, admin). */

/* Polices locales : fonctionnent sans internet.
   Outfit remplace la police des titres de nova-expertise.com (Hurme Geometric Sans, sous licence payante). */
@font-face { font-family: 'Outfit'; font-weight: 300; font-display: swap; src: url('/vendor/fonts/outfit/outfit-latin-300-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Outfit'; font-weight: 400; font-display: swap; src: url('/vendor/fonts/outfit/outfit-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Outfit'; font-weight: 500; font-display: swap; src: url('/vendor/fonts/outfit/outfit-latin-500-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Outfit'; font-weight: 600; font-display: swap; src: url('/vendor/fonts/outfit/outfit-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Outfit'; font-weight: 700; font-display: swap; src: url('/vendor/fonts/outfit/outfit-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Outfit'; font-weight: 800; font-display: swap; src: url('/vendor/fonts/outfit/outfit-latin-800-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Open Sans'; font-weight: 400; font-display: swap; src: url('/vendor/fonts/open-sans/open-sans-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Open Sans'; font-weight: 400; font-display: swap; src: url('/vendor/fonts/open-sans/open-sans-latin-ext-400-normal.woff2') format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Open Sans'; font-weight: 500; font-display: swap; src: url('/vendor/fonts/open-sans/open-sans-latin-500-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Open Sans'; font-weight: 500; font-display: swap; src: url('/vendor/fonts/open-sans/open-sans-latin-ext-500-normal.woff2') format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Open Sans'; font-weight: 600; font-display: swap; src: url('/vendor/fonts/open-sans/open-sans-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Open Sans'; font-weight: 600; font-display: swap; src: url('/vendor/fonts/open-sans/open-sans-latin-ext-600-normal.woff2') format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Open Sans'; font-weight: 700; font-display: swap; src: url('/vendor/fonts/open-sans/open-sans-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Open Sans'; font-weight: 700; font-display: swap; src: url('/vendor/fonts/open-sans/open-sans-latin-ext-700-normal.woff2') format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Open Sans'; font-weight: 800; font-display: swap; src: url('/vendor/fonts/open-sans/open-sans-latin-800-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Open Sans'; font-weight: 800; font-display: swap; src: url('/vendor/fonts/open-sans/open-sans-latin-ext-800-normal.woff2') format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  /* bleu canard et cyan de nova-expertise.com */
  --primary: #0a7480;
  --primary-d: #075c66;
  --primary-l: #e8f7f8;
  --primary-m: #b6eef2;
  --accent: #32d9e6;
  --accent-d: #14b3c0;
  --green: #3fb36a;
  --green-d: #12844a;
  --green-l: #e5f6ec;
  --ink: #1f2a2e;
  --grey: #555b5e;
  --mute: #80878b;
  --line: #e3e8ea;
  --mist: #f5f7f8;
  --white: #fff;
  --red: #cc2727;
  --red-l: #fde9e9;
  --amber: #f2a93b;
  --radius: 22px;
  --radius-s: 14px;
  --shadow: 0 12px 32px rgba(10, 60, 66, 0.1);
  --shadow-primary: 0 10px 24px rgba(10, 116, 128, 0.22);
  --f-display: 'Outfit', 'Avenir Next', 'Century Gothic', system-ui, sans-serif;
  --f-body: 'Open Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  /* couleurs des propositions A → F (lettres blanches lisibles sur chacune) */
  --opt-0: #0a7480;
  --opt-1: #14b3c0;
  --opt-2: #2f3a3e;
  --opt-3: #2e86de;
  --opt-4: #e58e26;
  --opt-5: #6c5ce7;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }

.display { font-family: var(--f-display); font-weight: 700; letter-spacing: -0.01em; line-height: 1.05; }
/* mot mis en avant : en cyan, comme les titres de nova-expertise.com */
.hl { color: var(--accent-d); }
.hl-green { color: var(--green); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 52px; padding: 0.7em 1.6em; border: 0; border-radius: 999px; cursor: pointer;
  font-family: var(--f-body); font-weight: 700; font-size: 1.05rem;
  background: var(--primary); color: #fff; box-shadow: var(--shadow-primary);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  -webkit-tap-highlight-color: transparent; text-decoration: none;
}
.btn:hover { background: var(--primary-d); }
.btn:active { transform: translateY(2px); box-shadow: 0 4px 10px rgba(10, 116, 128, 0.2); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn-light { background: #fff; color: var(--primary); box-shadow: inset 0 0 0 2px var(--primary); }
.btn-light:hover { background: var(--primary-l); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn-ghost:hover { background: var(--mist); }
.btn-green { background: var(--green-d); box-shadow: 0 10px 24px rgba(18, 132, 74, 0.2); }
.btn-green:hover { background: #0e6e3d; }
.btn-danger { background: var(--red); box-shadow: 0 10px 24px rgba(204, 39, 39, 0.2); }
.btn-sm { min-height: 40px; padding: 0.4em 1.1em; font-size: 0.95rem; }
.btn-block { width: 100%; }

.btn-circle {
  width: 46px; height: 46px; border-radius: 50%; border: 0; background: #fff; color: var(--ink);
  display: inline-grid; place-items: center; cursor: pointer; box-shadow: var(--shadow);
}
.btn-circle:hover { background: var(--primary-l); }

/* ---------- Cartes, champs ---------- */
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span, .label { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--grey); }
.input {
  width: 100%; min-height: 52px; padding: 0.7em 1em; border: 2px solid var(--line); border-radius: var(--radius-s);
  background: #fff; font-size: 1rem; transition: border-color 0.12s;
}
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(50, 217, 230, 0.2); }
textarea.input { min-height: 90px; resize: vertical; }
.hint { font-size: 0.85rem; color: var(--mute); }
.error-text { color: var(--red); font-weight: 600; font-size: 0.92rem; }

.chip {
  display: inline-flex; align-items: center; gap: 0.4em; padding: 0.25em 0.8em; border-radius: 999px;
  background: var(--primary-l); color: var(--primary-d); font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em;
}
.chip-green { background: var(--green-l); color: var(--green-d); }
.chip-grey { background: var(--mist); color: var(--grey); }

.logo { display: block; height: 44px; width: auto; }

/* Vague décorative en pied de page (wave-primary.svg) */
.wave-bottom { position: absolute; left: 0; right: 0; bottom: 0; height: min(20vw, 220px); pointer-events: none;
  background: url('/img/wave-primary.svg') center bottom / 100% 100% no-repeat; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
