/* Twist'air Check-in — formulaire public */

@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-400.woff") format("woff"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-500.woff") format("woff"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-600.woff") format("woff"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins-700.woff") format("woff"); }

:root {
  --yellow: #FDCA37;
  --yellow-600: #F2B91B;
  --yellow-100: #FFF6D9;
  --yellow-50: #FFFBEE;
  --ink: #1D1D1B;
  --ink-2: #3A3936;
  --muted: #6E6C66;
  --line: #E4E1D8;
  --line-2: #D3CFC4;
  --bg: #F7F6F2;
  --card: #FFFFFF;
  --danger: #C2362F;
  --danger-bg: #FDF0EF;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(29, 29, 27, .04), 0 8px 24px rgba(29, 29, 27, .05);
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; }
a { color: var(--ink); text-decoration-color: var(--yellow-600); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }
[hidden] { display: none !important; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px;
}
.skip-link:focus { top: 12px; }

/* ---------- En-tête ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 4px; background: var(--yellow);
}
.site-header__inner {
  max-width: 760px; margin: 0 auto;
  padding: 12px 16px 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.site-logo { display: block; flex-shrink: 1; min-width: 0; }
.site-logo img { display: block; height: 58px; width: auto; max-width: 100%; }

.langs { display: flex; gap: 6px; flex-shrink: 0; }
.lang {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 9px; border-radius: 999px;
  border: 1.5px solid transparent;
  text-decoration: none; color: var(--muted);
  font-size: 13px; font-weight: 600; letter-spacing: .02em;
  transition: background .15s, border-color .15s, color .15s;
}
.lang img { width: 22px; height: auto; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); display: block; }
.lang:hover { background: var(--yellow-50); color: var(--ink); }
.lang.is-active { border-color: var(--yellow); background: var(--yellow-100); color: var(--ink); }

/* ---------- Contenu ---------- */
.site-main { max-width: 760px; margin: 0 auto; padding: 22px 16px 40px; }

.intro { margin: 6px 2px 18px; }
.intro h1 {
  font-size: clamp(30px, 7vw, 40px);
  line-height: 1.1; margin: 0; font-weight: 700; letter-spacing: -.01em;
  display: inline-block; position: relative;
}
.intro h1::after {
  content: ""; display: block; height: 6px; width: 64px; margin-top: 10px;
  background: var(--yellow); border-radius: 999px;
}
.intro__lead { margin: 12px 0 0; color: var(--muted); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 20px 20px;
  margin: 0 0 16px;
  min-width: 0;
}
fieldset.card { margin-inline: 0; }

.step {
  display: flex; align-items: center; gap: 12px;
  font-size: 18px; font-weight: 600; padding: 0; margin: 0 0 16px; float: left; width: 100%;
}
.step + * { clear: both; }
.step__num {
  display: inline-grid; place-items: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--yellow); color: var(--ink);
  font-size: 15px; font-weight: 700; flex-shrink: 0;
}

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; clear: both; }
.field--wide { grid-column: 1 / -1; }
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .card { padding: 20px 16px 18px; }
}

/* ---------- Champs ---------- */
.field { min-width: 0; }
.field > label:not(.check) { display: block; font-size: 14px; font-weight: 500; margin: 0 0 6px; color: var(--ink-2); }
.req { color: var(--danger); font-weight: 600; }

.field input[type="text"],
.field input[type="email"],
.field input[type="date"],
.select select {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  font: inherit; font-size: 16px; color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line-2);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
  -webkit-appearance: none; appearance: none;
  min-width: 0;
}
.field input[type="date"] { display: block; line-height: 50px; }
.field input[type="date"]::-webkit-date-and-time-value { text-align: left; }
.field input::placeholder { color: #A9A59B; }
.field input:hover, .select select:hover { border-color: #BDB8AB; }
.field input:focus, .select select:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(253, 202, 55, .55);
}
.select { position: relative; }
.select::after {
  content: ""; position: absolute; right: 16px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg);
  pointer-events: none;
}
.select select { padding-right: 42px; cursor: pointer; text-overflow: ellipsis; }
.select select:invalid { color: #8F8B80; }
.select select option { color: var(--ink); }

.field.has-error input, .field.has-error .select select { border-color: var(--danger); background: var(--danger-bg); }
.field-error { color: var(--danger); font-size: 13.5px; margin: 6px 0 0; font-weight: 500; }

/* Cases à cocher */
.checks { display: grid; gap: 10px; clear: both; }
.check {
  position: relative;
  display: flex; align-items: flex-start; gap: 12px;
  padding: 13px 14px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  line-height: 1.45;
  font-size: 15px;
}
.check:hover { border-color: var(--line-2); }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.check__box {
  flex-shrink: 0; width: 24px; height: 24px; margin-top: 0;
  border: 2px solid var(--line-2); border-radius: 7px; background: #fff;
  display: grid; place-items: center;
  transition: background .15s, border-color .15s;
}
.check__box::after {
  content: ""; width: 6px; height: 11px; margin-top: -3px;
  border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink);
  transform: rotate(45deg) scale(0); transition: transform .15s;
}
.check input:checked + .check__box { background: var(--yellow); border-color: var(--yellow-600); }
.check input:checked + .check__box::after { transform: rotate(45deg) scale(1); }
.check input:focus-visible + .check__box { box-shadow: 0 0 0 4px rgba(253, 202, 55, .6); border-color: var(--ink); }
.check:has(input:checked) { border-color: var(--yellow); background: var(--yellow-50); }
.check__text a { font-weight: 500; }
.field--check.has-error .check { border-color: var(--danger); background: var(--danger-bg); }
.field--check .field-error { margin: 4px 0 2px 4px; }

/* Vidéo */
.video {
  margin: 18px 0 4px;
  border-radius: 14px; overflow: hidden; background: #111;
  aspect-ratio: 16 / 9;
}
.video video, .video iframe { display: block; width: 100%; height: 100%; border: 0; background: #111; }

/* Newsletter */
.newsletter { margin-top: 18px; }
.newsletter__label { font-size: 14px; font-weight: 500; color: var(--ink-2); margin: 0 0 6px; }
.check--light { background: #FBFAF7; }

/* Signature */
.field--signature { clear: both; }
.sig {
  position: relative;
  height: 230px;
  border: 2px dashed var(--line-2);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  touch-action: none;
  -webkit-user-select: none; user-select: none;
}
.sig.is-active { border-color: var(--yellow-600); border-style: solid; }
.field--signature.has-error .sig { border-color: var(--danger); background: var(--danger-bg); }
.sig__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: crosshair; z-index: 2; }
.sig__hint {
  position: absolute; inset: 0 0 34px; display: flex; align-items: center; justify-content: center; gap: 8px;
  color: #ABA79C; font-size: 15px; pointer-events: none; z-index: 1; text-align: center; padding: 0 16px;
}
.sig.has-ink .sig__hint { display: none; }
.sig__line {
  position: absolute; left: 22px; right: 22px; bottom: 54px; height: 0;
  border-bottom: 1.5px solid #E2DED3; pointer-events: none; z-index: 1;
}
.sig__line span { position: absolute; left: 0; bottom: 4px; color: #C9C4B7; font-size: 14px; }
.sig__clear {
  position: absolute; right: 10px; bottom: 10px; z-index: 3;
  display: inline-flex; align-items: center; gap: 6px;
  font: inherit; font-size: 13px; font-weight: 600; color: var(--ink-2);
  background: #fff; border: 1.5px solid var(--line); border-radius: 999px;
  padding: 6px 12px; cursor: pointer;
}
.sig__clear:hover { border-color: var(--ink); }
@media (max-width: 560px) { .sig { height: 210px; } }

/* Bouton */
.req-note { color: var(--muted); font-size: 13px; margin: 4px 4px 14px; }
.btn-submit {
  display: flex; width: 100%; align-items: center; justify-content: center; gap: 10px;
  min-height: 58px; padding: 14px 24px;
  font: inherit; font-size: 17px; font-weight: 600; color: var(--ink);
  background: var(--yellow);
  border: 0; border-radius: 999px; cursor: pointer;
  box-shadow: 0 10px 24px rgba(242, 185, 27, .35), inset 0 -2px 0 rgba(0,0,0,.08);
  text-decoration: none;
  transition: transform .1s, background .15s, box-shadow .15s;
}
.btn-submit:hover { background: var(--yellow-600); }
.btn-submit:active { transform: translateY(1px); }
.btn-submit:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.btn-submit[disabled] { opacity: .75; cursor: progress; }
.btn-submit--inline { display: inline-flex; width: auto; }
.btn-submit .spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2.5px solid rgba(29,29,27,.25); border-top-color: var(--ink);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Alertes */
.alert { border-radius: 14px; padding: 13px 16px; margin: 0 0 16px; font-size: 15px; font-weight: 500; }
.alert--error { background: var(--danger-bg); color: var(--danger); border: 1.5px solid #F0C9C6; }
.alert--warn { background: var(--yellow-100); color: #6B5310; border: 1.5px solid #F4DC8E; }
.alert:focus { outline: none; }

/* Anti-robot */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Confirmation */
.success { text-align: center; padding: 40px 22px 34px; margin-top: 10px; }
.success__icon { margin: 0 auto 10px; width: 72px; }
.success h1 { font-size: 32px; margin: 6px 0 8px; }
.success__text { color: var(--ink-2); max-width: 460px; margin: 0 auto 26px; font-size: 16.5px; }

/* Pages de contenu */
.prose h1 { font-size: 28px; line-height: 1.2; margin: 0 0 18px; }
.prose h2 { font-size: 20px; margin: 26px 0 10px; }
.prose h3, .prose h4 { font-size: 17px; margin: 20px 0 8px; }
.prose p, .prose ul { margin: 0 0 14px; }
.prose ul { padding-left: 20px; }
.prose .back { margin-top: 24px; }
.unsub form { margin-top: 18px; }

/* Pied de page */
.site-footer { text-align: center; color: var(--muted); font-size: 13px; padding: 8px 16px 36px; }
.site-footer a { color: var(--muted); }

@media (max-width: 420px) {
  .site-logo img { height: 48px; }
  .lang span { display: none; }
  .lang { padding: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
