/* Convention des Managers SMAC 2027 · DA « Au Premier Plan » (Raleway, rouge #C01B1D) */
:root {
  --red: #C01B1D;
  --red-soft: #fbeeee;
  --dark: #1c0505;
  --ink: #2b1d1c;
  --mute: #6f605e;
  --line: #e6dcda;
  --bg: #f6f2f1;
  --white: #fff;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: 'Raleway', Arial, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.5; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--red); }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

/* En-tête */
.site-head { background: var(--dark); color: var(--white); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 28px; min-height: 60px; }
.site-head .logo { height: 28px; width: auto; display: block; }
.nav { display: flex; gap: 24px; font-size: 14px; font-weight: 500; }
.nav a { color: var(--white); opacity: .75; text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.nav a:hover { opacity: 1; }
.nav a[aria-current="page"] { opacity: 1; border-bottom-color: var(--red); }
.lang { display: flex; gap: 4px; }
.lang button { background: none; border: 1px solid rgba(255,255,255,.35); color: var(--white); border-radius: 3px; padding: 4px 8px; font-size: 11px; font-weight: 700; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--white); color: var(--dark); border-color: var(--white); }

main { flex: 1; }
.boot, .notice { max-width: 640px; margin: 64px auto; padding: 0 16px; text-align: center; color: var(--mute); }
.notice h1 { color: var(--dark); font-size: 26px; font-weight: 800; margin-bottom: 12px; }

/* Mise en page : colonne KV pleine hauteur (jusqu'en bas du site) + colonne de contenu avec le pied de page */
.layout { flex: 1; display: flex; align-items: stretch; }
.kv { width: 400px; flex: none; background: var(--dark); color: var(--white); }
.kv-in { position: sticky; top: 0; }
.kv img { width: 100%; height: auto; display: block; }
.col { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.col main { flex: 1; }
.prog { padding: 26px 30px; display: flex; flex-direction: column; gap: 16px; }
.prog div { display: flex; gap: 14px; font-size: 14px; line-height: 1.45; }
.prog b { min-width: 72px; background: var(--red); text-align: center; padding: 3px 6px; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; align-self: flex-start; }
.welcome { flex: 1; padding: 56px 56px; display: flex; flex-direction: column; max-width: 820px; }
.kicker { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--red); font-weight: 700; }
.hello { font-size: 34px; font-weight: 800; color: var(--dark); margin-top: 8px; line-height: 1.2; }
.welcome-text { margin-top: 18px; font-size: 16px; white-space: pre-line; }
.status { margin-top: 22px; background: var(--white); border-left: 4px solid var(--dark); padding: 12px 16px; font-size: 14px; }
.status.yes { border-left-color: #2e7d32; }
.status.no { border-left-color: var(--mute); }
.cta { margin-top: 26px; align-self: flex-start; background: var(--red); color: var(--white); border: 0; font-weight: 800; font-size: 17px; letter-spacing: .4px; padding: 16px 34px; border-radius: 3px; box-shadow: 0 6px 18px rgba(192,27,29,.3); cursor: pointer; text-decoration: none; }
.cta:hover { filter: brightness(1.06); }
.deadline { margin-top: 12px; font-size: 14px; color: var(--mute); }
.deadline b { color: var(--dark); }

/* Formulaire */
.form { flex: 1; padding: 32px 48px 48px; max-width: 860px; }
.steps { display: flex; gap: 8px; margin-bottom: 22px; list-style: none; }
.steps li { flex: 1; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; font-weight: 700; color: var(--mute); border-top: 4px solid var(--line); padding-top: 7px; }
.steps li.on { color: var(--red); border-color: var(--red); }
.steps li.done { color: var(--dark); border-color: var(--dark); }
.steps li.skip { opacity: .4; text-decoration: line-through; }
h2 { font-size: 24px; font-weight: 800; color: var(--dark); margin-bottom: 16px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 16px 18px; margin-bottom: 12px; }
.card.trad { border: 1.5px solid var(--red); }
fieldset.card { min-width: 0; }
fieldset.card > legend { float: left; width: 100%; padding: 0; }
fieldset.card > legend + * { clear: both; }
.q { font-size: 15px; font-weight: 700; color: var(--dark); margin-bottom: 10px; display: block; }
.q small { display: block; font-weight: 400; color: var(--mute); font-size: 13px; margin-top: 2px; }
.req { color: var(--red); }
.opts { display: flex; gap: 10px; flex-wrap: wrap; }
.opt { flex: 1 1 200px; border: 1.5px solid var(--line); border-radius: 4px; padding: 11px 13px; font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 10px; cursor: pointer; background: var(--white); }
.opt input { accent-color: var(--red); width: 16px; height: 16px; }
.opt:has(input:checked) { border-color: var(--red); background: var(--red-soft); color: var(--red); }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > * { flex: 1 1 220px; }
.lbl { font-size: 13px; font-weight: 700; color: var(--dark); margin-bottom: 6px; display: block; }
.field { width: 100%; border: 1.5px solid var(--line); border-radius: 4px; padding: 10px 12px; font-size: 14px; background: var(--white); }
.field:focus, .opt:focus-within, .tag:focus-within { outline: 2px solid var(--red); outline-offset: 1px; }
textarea.field { min-height: 90px; resize: vertical; }
.field.err { border-color: var(--red); background: #fff8f8; }
.errmsg { color: var(--red); font-size: 13px; font-weight: 600; margin-top: 8px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { border: 1.5px solid var(--line); border-radius: 16px; padding: 6px 13px; font-size: 13px; font-weight: 600; display: inline-flex; gap: 7px; align-items: center; cursor: pointer; background: var(--white); }
.tag input { accent-color: var(--red); }
.tag:has(input:checked) { border-color: var(--red); color: var(--red); background: var(--red-soft); }
.info { display: flex; gap: 12px; align-items: flex-start; background: var(--white); border-left: 4px solid var(--dark); padding: 12px 16px; font-size: 14px; margin-bottom: 12px; }
.actions { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; gap: 12px; }
.back { background: none; border: 0; font-size: 14px; font-weight: 600; color: var(--mute); cursor: pointer; }
.btn { background: var(--red); color: var(--white); border: 0; font-weight: 700; font-size: 15px; letter-spacing: .3px; padding: 13px 28px; border-radius: 3px; cursor: pointer; }
.btn:disabled { background: #cfc4c2; cursor: not-allowed; }
.privacy { font-size: 12.5px; color: var(--mute); margin-top: 14px; }
.done-box { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 24px; }
.done-box p + p { margin-top: 10px; }

/* Contact */
.contact .hello { margin-top: 0; }
.contact-intro { margin: 12px 0 26px; font-size: 15px; }
.contact-intro a { font-weight: 600; word-break: break-all; }

.site-foot { min-height: 56px; display: flex; align-items: center; justify-content: center; gap: 18px; font-size: 12.5px; color: var(--mute); padding: 12px 16px; text-align: center; flex-wrap: wrap; }
.site-foot a { color: var(--mute); }

@media (max-width: 860px) {
  .site-head { padding: 10px 16px; flex-wrap: wrap; }
  .nav { order: 3; width: 100%; gap: 18px; overflow-x: auto; font-size: 13px; }
  .layout { flex-direction: column; }
  .kv { width: 100%; }
  .kv-in { position: static; }
  body:not([data-view="home"]) .kv { display: none; }   /* mobile : KV sur l'accueil seulement */
  .welcome, .form { padding: 28px 16px 40px; }
  .hello { font-size: 27px; }
  .steps li { font-size: 10px; }
  .cta { align-self: stretch; text-align: center; }
}
