/* Eurosports – bulletin d'inscription. Utilise les variables du thème si présentes. */
.esv-bulletin-wrap {
  --e-blue: var(--blue, #1d6fb8);
  --e-ink: var(--ink, #0e2a47);
  --e-sun: var(--sun, #ffc20e);
  --e-sky: var(--sky, #eef4fa);
  --e-line: var(--line, #d6e2ee);
  --e-muted: var(--muted, #56708a);
  color: var(--e-ink);
}
.esv-intro { font-size: 1.1rem; color: var(--e-muted); max-width: 62ch; }
.esv-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Étapes */
.esv-steps-nav { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; counter-reset: none; }
.esv-steps-nav li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--e-sky); color: var(--e-muted); font-weight: 600; font-size: .95rem; }
.esv-steps-nav li span { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--e-line); font-weight: 800; }
.esv-steps-nav li.is-reachable { cursor: pointer; }
.esv-steps-nav li.is-current { background: var(--e-ink); color: #fff; }
.esv-steps-nav li.is-current span { background: var(--e-sun); border-color: var(--e-sun); color: var(--e-ink); }
.esv-steps-nav li.is-done span { background: var(--e-blue); border-color: var(--e-blue); color: #fff; }
@media (max-width: 640px) { .esv-steps-nav li { font-size: 0; justify-content: center; padding: 8px; } .esv-steps-nav li span { font-size: .95rem; } }

.esv-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
@media (max-width: 960px) { .esv-layout { grid-template-columns: 1fr; } .esv-summary { order: -1; position: static !important; } }

.esv-step { border: 0; padding: 0; margin: 0 0 32px; min-width: 0; }
.esv-js .esv-step { display: none; }
.esv-js .esv-step.is-active { display: block; }
.esv-step legend { font-style: italic; font-weight: 800; font-variation-settings: "wdth" 112; font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 18px; padding: 0; line-height: 1.1; }
.esv-h3 { font-size: 1.15rem; margin: 28px 0 12px; }
.esv-note { color: var(--e-muted); font-size: .95rem; }
.esv-muted { color: var(--e-muted); }

/* Départs */
.esv-departs { display: grid; gap: 10px; }
.esv-depart { display: block; cursor: pointer; }
.esv-depart input { position: absolute; opacity: 0; pointer-events: none; }
.esv-depart-body { display: grid; grid-template-columns: 58px 1fr auto; gap: 16px; align-items: center; padding: 14px 18px; border: 2px solid var(--e-line); border-radius: 14px; background: #fff; transition: border-color .15s, background .15s; }
.esv-depart:hover .esv-depart-body { border-color: var(--e-blue); }
.esv-depart input:checked + .esv-depart-body { border-color: var(--e-ink); background: var(--e-sky); box-shadow: inset 6px 0 0 var(--e-sun); }
.esv-depart input:focus-visible + .esv-depart-body { outline: 3px solid var(--e-sun); outline-offset: 2px; }
.esv-depart-num { font-weight: 800; font-style: italic; font-size: 1.3rem; color: var(--e-blue); }
.esv-depart-main strong { display: block; font-size: 1.05rem; }
.esv-depart-main span { color: var(--e-muted); font-size: .95rem; }
.esv-depart-price { text-align: right; font-weight: 800; font-size: 1.1rem; }
.esv-depart-price small { display: block; font-weight: 500; font-size: .8rem; color: var(--e-muted); }
@media (max-width: 560px) { .esv-depart-body { grid-template-columns: 1fr auto; } .esv-depart-num { grid-column: 1 / -1; font-size: 1rem; } }

/* Participants */
.esv-participant { border: 1.5px solid var(--e-line); border-radius: 18px; padding: 22px; margin-bottom: 16px; background: #fff; }
.esv-participant-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.esv-participant-head h3 { margin: 0; font-size: 1.2rem; }
.esv-remove { background: none; border: 0; color: #a93226; font: inherit; font-size: .9rem; cursor: pointer; text-decoration: underline; }
.esv-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.esv-chip input { position: absolute; opacity: 0; }
.esv-chip span { display: inline-block; padding: .5em 1.1em; border-radius: 999px; border: 1.5px solid var(--e-line); font-weight: 600; font-size: .95rem; cursor: pointer; }
.esv-chip input:checked + span { background: var(--e-ink); border-color: var(--e-ink); color: #fff; }
.esv-chip input:focus-visible + span { outline: 3px solid var(--e-sun); outline-offset: 2px; }
.esv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.esv-grid .esv-full { grid-column: 1 / -1; }
@media (max-width: 600px) { .esv-grid { grid-template-columns: 1fr; } }
.esv-field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 5px; }
.esv-field label em { font-weight: 400; color: var(--e-muted); }
.esv-field input, .esv-field select, .esv-field textarea { width: 100%; padding: 11px 13px; border: 1.5px solid var(--e-line); border-radius: 10px; font: inherit; color: var(--e-ink); background: #fff; box-sizing: border-box; }
.esv-field input[type=file] { padding: 9px; background: var(--e-sky); }
.esv-field input:focus, .esv-field textarea:focus { outline: none; border-color: var(--e-blue); box-shadow: 0 0 0 4px rgba(29,111,184,.15); }
.esv-field small { color: var(--e-muted); font-size: .8rem; }
.esv-options { display: grid; gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--e-line); }
.esv-toggle { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.esv-toggle input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--e-blue); flex: none; }
.esv-toggle em { font-style: normal; color: var(--e-muted); font-size: .9rem; }
.is-invalid input, .is-invalid textarea, .is-invalid select, input.is-invalid { border-color: #c0392b !important; }
.esv-chips.is-invalid .esv-chip span, .esv-departs.is-invalid .esv-depart-body, .esv-modes.is-invalid .esv-mode { border-color: #c0392b; }
.esv-check.is-invalid span { color: #c0392b; }

/* Règlement */
.esv-table { width: 100%; border-collapse: collapse; margin-bottom: 14px; }
.esv-table td { padding: 10px 4px; border-bottom: 1px solid var(--e-line); }
.esv-table td:last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.esv-table tr.sub td { font-weight: 700; }
.esv-table tr.total td { font-weight: 800; font-size: 1.2rem; background: #fff3c4; padding: 12px; border: 0; }
.esv-pay { background: var(--e-sky); padding: 14px 16px; border-radius: 12px; }
.esv-tbc { background: #f3e8fa; padding: 14px 16px; border-radius: 12px; }
.esv-modes { display: grid; gap: 10px; }
.esv-mode { display: flex; gap: 12px; padding: 14px 16px; border: 1.5px solid var(--e-line); border-radius: 12px; cursor: pointer; }
.esv-mode input { accent-color: var(--e-blue); width: 18px; height: 18px; margin-top: 3px; flex: none; }
.esv-mode small { display: block; color: var(--e-muted); font-size: .88rem; margin-top: 2px; }
.esv-mode:has(input:checked) { border-color: var(--e-ink); background: var(--e-sky); }

/* Validation */
.esv-review-list { display: grid; grid-template-columns: 130px 1fr; gap: 8px 16px; padding: 18px; background: var(--e-sky); border-radius: 14px; margin: 0 0 20px; }
.esv-review-list dt { color: var(--e-muted); }
.esv-review-list dd { margin: 0; font-weight: 600; }
.esv-check { display: flex; gap: 12px; align-items: flex-start; margin: 14px 0; font-size: .92rem; line-height: 1.5; color: var(--e-muted); cursor: pointer; }
.esv-check input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--e-blue); }
.esv-errors { background: #fdecea; color: #922b21; padding: 14px 18px; border-radius: 12px; margin: 16px 0; }
.esv-errors ul { margin: 6px 0 0; padding-left: 1.2em; }

/* Boutons */
.esv-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.esv-actions .esv-next:only-child { margin-left: auto; }
.esv-btn { display: inline-flex; align-items: center; justify-content: center; padding: .85em 1.6em; border-radius: 999px; border: 2px solid transparent; background: var(--e-sun); color: var(--e-ink); font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; }
.esv-btn:hover { filter: brightness(1.05); }
.esv-btn-line { background: #fff; border-color: var(--e-line); }
.esv-btn-line:hover { border-color: var(--e-blue); color: var(--e-blue); filter: none; }
.esv-btn[disabled] { opacity: .6; cursor: wait; }
.esv-add[hidden] { display: none; }

/* Barre d'action collante : toujours visible en bas de l'écran */
.esv-bar { position: sticky; bottom: 12px; z-index: 6; margin-top: 28px; flex-wrap: nowrap; justify-content: flex-start; align-items: center; gap: 14px; padding: 12px 12px 12px 20px; background: var(--e-ink); color: #fff; border-radius: 18px; box-shadow: 0 14px 34px rgba(14,42,71,.3); }
.esv-bar-info { flex: 1; min-width: 0; font-size: .92rem; line-height: 1.35; }
.esv-bar-info strong { display: block; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.esv-bar-info span { display: block; color: #b9cde2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.esv-bar-info .esv-bar-hint { color: #fff; font-weight: 600; }
.esv-bar .esv-btn { flex: none; }
.esv-bar .esv-btn-line { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.esv-bar .esv-btn-line:hover { color: var(--e-sun); border-color: var(--e-sun); }
.esv-bar[data-bar="1"]:not(.is-ready) .esv-next { opacity: .5; }
.esv-bar.is-pulse .esv-next { animation: esv-pulse 1.1s ease-out 2; }
@keyframes esv-pulse { 0% { box-shadow: 0 0 0 0 rgba(255,194,14,.75); transform: scale(1.04); } 100% { box-shadow: 0 0 0 16px rgba(255,194,14,0); transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .esv-bar.is-pulse .esv-next { animation: none; } }
@media (max-width: 600px) {
  .esv-bar { bottom: 8px; gap: 8px; padding: 10px; border-radius: 16px; }
  .esv-bar-info span { display: none; }
  .esv-bar-info { font-size: .85rem; }
  .esv-bar .esv-btn { padding: .8em 1.1em; }
}

/* Récap latéral */
.esv-summary { position: sticky; top: 110px; background: var(--e-ink); color: #fff; border-radius: 20px; padding: 24px; }
.esv-summary h3 { margin: 0 0 14px; font-size: 1.2rem; color: #fff; }
.esv-summary .esv-muted { color: #b9cde2; }
.esv-sum-trip { margin: 0 0 14px; color: #d8e6f4; font-size: .95rem; }
.esv-sum-trip span { color: var(--e-sun); font-weight: 800; margin-right: 6px; }
.esv-sum-trip strong { display: block; color: #fff; font-size: 1.1rem; }
.esv-sum-list { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin: 0; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.15); }
.esv-sum-list dd { margin: 0; text-align: right; }
.esv-sum-list strong { color: var(--e-sun); font-size: 1.2rem; }
.esv-sum-list dt small { color: #b9cde2; font-size: .8em; white-space: nowrap; }
.esv-sum-list dd { white-space: nowrap; }
.esv-summary .esv-sum-list { column-gap: 0; }
.esv-sum-list dd { padding-left: 12px; }
.esv-sum-list .esv-sum-rule { grid-column: 1 / -1; height: 0; margin: 2px 0; border-top: 1px solid rgba(255,255,255,.3); }
.esv-sum-list .esv-sum-rule.is-dashed { border-top: 1px dashed rgba(255,255,255,.18); }
.esv-sum-list .esv-sum-total { font-weight: 700; color: #fff; align-self: center; }
.esv-summary-help { margin: 18px 0 0; font-size: .88rem; color: #b9cde2; }
.esv-summary-help a { color: var(--e-sun); }
.esv-summary-help { line-height: 1.9; }
.ico-link { display: inline-flex; align-items: center; gap: 7px; }
.ico-link .ico { flex: none; }

/* Confirmation */
.esv-merci { max-width: 720px; }
.esv-merci-head { display: flex; gap: 18px; align-items: center; margin-bottom: 10px; }
.esv-merci-head h2 { margin: 0 0 4px; }
.esv-merci-head p { margin: 0; color: var(--e-muted); }
.esv-merci-ico { width: 56px; height: 56px; border-radius: 50%; background: #1e8449; color: #fff; display: grid; place-items: center; font-size: 1.6rem; font-weight: 800; flex: none; }
.esv-empty { padding: 24px; background: var(--e-sky); border-radius: 16px; }

.esv-depart-price .esv-depart-single { color: var(--e-muted); font-weight: 600; font-size: .78rem; white-space: nowrap; }
