@import url('../../brand/design-system/colors_and_type.css');

/* Cockpit RDV — styles app (tokens: brand/design-system/colors_and_type.css) */

:root {
  --fg: var(--ink);
  --fg-2: var(--ink-secondary);
  --fg-3: var(--ink-muted);
  --line: var(--border);
  --bg-2: var(--surface-subtle);
  --ok: var(--success);
  --font: var(--font-sans);
  --r: var(--radius-md);
  --tap: 48px;
  --nav-h: 56px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Cockpit — élévation & atmosphère */
  --elev-1: 0 1px 2px rgba(11, 20, 36, 0.04), 0 1px 3px rgba(11, 20, 36, 0.03);
  --elev-2: 0 2px 8px rgba(11, 20, 36, 0.05), 0 8px 24px rgba(11, 20, 36, 0.04);
  --elev-3: 0 4px 16px rgba(11, 20, 36, 0.08), 0 16px 40px rgba(11, 20, 36, 0.06);
  --elev-hover: 0 6px 20px rgba(11, 20, 36, 0.08), 0 2px 6px rgba(11, 20, 36, 0.04);
  --header-surface: color-mix(in srgb, var(--surface) 92%, transparent);
  --inset-field: inset 0 1px 2px rgba(11, 20, 36, 0.04);
  --col-prepare: var(--ink-muted);
  --col-ready: var(--success);
  --col-progress: var(--accent);
  --col-past: var(--secondary);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

html, body {
  max-width: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink);
  background:
    radial-gradient(ellipse 90% 55% at 100% -8%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 58%),
    radial-gradient(ellipse 55% 45% at 0% 105%, color-mix(in srgb, var(--secondary) 6%, transparent), transparent 52%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

body.sheet-open { overflow: hidden; }

body.rdv-active .view.is-active[data-view="rdv-flow"] .screen-body--rdv-flow {
  padding-bottom: 24px;
}

body.rdv-active .view.is-active[data-view="rdv-flow"] .rdv-footer {
  margin-bottom: calc(56px + var(--safe-b));
}

#view-rdv-flow {
  overflow: hidden;
}

#view-rdv-flow .screen-body--rdv-flow {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
}

.rdv-step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.rdv-step-head .step-title {
  margin: 0;
  flex: 1;
  min-width: 0;
}

.rdv-rec-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 14px 0 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  background: var(--surface);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--fg);
  cursor: pointer;
  box-shadow: var(--shadow-card-xs);
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.rdv-rec-btn:hover,
.rdv-rec-btn:focus-visible {
  border-color: var(--error);
  outline: none;
}

.rdv-rec-btn__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--error);
  flex-shrink: 0;
  transition: transform 0.15s;
}

.rdv-rec-btn__label {
  line-height: 1;
}

.rdv-rec-btn.is-recording {
  border-color: var(--error);
  background: var(--error-surface);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--error) 18%, transparent);
}

.rdv-rec-btn.is-recording .rdv-rec-btn__dot {
  animation: rdv-rec-pulse 1.1s ease-in-out infinite;
}

@keyframes rdv-rec-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.55;
    transform: scale(0.85);
  }
}

.rdv-flow__step[hidden] {
  display: none;
}

.rdv-flow__step {
  margin-bottom: 16px;
  padding: 22px 18px 26px;
  border: 1px solid color-mix(in srgb, var(--border) 88%, transparent);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--elev-1);
  scroll-margin-top: 112px;
  transition: box-shadow 0.2s var(--ease);
}

.rdv-flow__step:first-child {
  margin-top: 4px;
}

.rdv-flow__step:last-child {
  margin-bottom: 8px;
}

.rdv-footer--flow {
  grid-template-columns: 1fr;
}

/* Carnet notes — pendant tout le RDV */
.rdv-notes-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 8px 16px calc(8px + var(--safe-b));
  background: var(--header-surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  box-shadow: 0 -4px 24px rgba(11, 20, 36, 0.06);
}

.rdv-notes-dock[hidden] {
  display: none;
}

.rdv-notes-dock__preview {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  color: var(--fg-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rdv-notes-dock__preview.has-text {
  color: var(--fg);
  font-weight: 500;
}

.rdv-notes-sheet {
  position: fixed;
  inset: 0;
  z-index: 55;
  pointer-events: none;
  visibility: hidden;
}

.rdv-notes-sheet.is-open {
  pointer-events: auto;
  visibility: visible;
}

.rdv-notes-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--brand-midnight) 48%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}

.rdv-notes-sheet.is-open .rdv-notes-sheet__backdrop {
  opacity: 1;
}

.rdv-notes-sheet__panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 78dvh;
  padding: 16px 16px calc(16px + var(--safe-b));
  background: var(--surface);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: var(--shadow-modal);
  transform: translateY(100%);
  transition: transform 0.28s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rdv-notes-sheet.is-open .rdv-notes-sheet__panel {
  transform: translateY(0);
}

.rdv-notes-sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rdv-notes-sheet__head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.rdv-notes-sheet__panel textarea {
  flex: 1;
  min-height: 200px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
  resize: vertical;
  background: var(--bg-2);
}

.rdv-notes-sheet__panel textarea:focus {
  outline: 2px solid var(--fg);
  background: var(--bg);
}

.rdv-notes-sheet__hint {
  margin: 0;
  font-size: 12px;
  color: var(--fg-3);
}

/* Views — une seule visible */
.view {
  display: none;
  min-height: 100dvh;
  flex-direction: column;
}

.view.is-active {
  display: flex;
  position: relative;
  z-index: 1;
}

/* Top bar commune */
.topbar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 8px 16px;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  background: var(--header-surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--elev-1);
}

.topbar__back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0 -8px 0 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--fg);
  cursor: pointer;
  box-shadow: var(--elev-1);
  transition: background 0.15s var(--ease), border-color 0.15s, box-shadow 0.15s, transform 0.12s;
}

.topbar__back:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
}

.topbar__back:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.topbar__title {
  flex: 1;
  min-width: 0;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar__meta {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-3);
  font-variant-numeric: tabular-nums;
}

/* Contenu scrollable */
.screen-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 20px 24px;
  -webkit-overflow-scrolling: touch;
}

.view.is-active > .screen-body,
.view.is-active > .dash-header + .screen-body {
  animation: cockpit-enter 0.4s var(--ease) both;
}

@keyframes cockpit-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.screen-body--narrow {
  max-width: 560px;
  margin: 0 auto;
  width: 100%;
}

.screen-body--dash {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 16px 20px 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Brief commercial — lecture longue, plus large que les formulaires */
.screen-body--playbook {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-left: 20px;
  padding-right: 20px;
}

@media (min-width: 600px) {
  .screen-body--playbook {
    padding-left: 28px;
    padding-right: 28px;
  }
}

@media (min-width: 768px) {
  .screen-body--playbook {
    max-width: min(960px, calc(100% - 48px));
    margin: 0 auto;
    padding-left: 32px;
    padding-right: 32px;
  }
}

/* Dashboard header */
.dash-header {
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 16px;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 75%, transparent);
  background: var(--header-surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--elev-1);
  position: relative;
}

.dash-header::after {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    var(--accent) 0%,
    color-mix(in srgb, var(--accent) 40%, transparent) 35%,
    transparent 100%
  );
  opacity: 0.55;
}

.dash-header__start {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.dash-header__playbook {
  flex-shrink: 0;
  margin-bottom: 2px;
}

.dash-header__brand h1 {
  margin: 0;
  padding-left: 11px;
  border-left: 3px solid var(--accent);
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.1;
}

.dash-header__brand p {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--fg-2);
}

.btn--compact {
  min-height: 40px;
  padding: 0 14px;
  font-size: 14px;
}

/* Dashboard — tableau kanban */
.dash-board {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 16px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.dash-col {
  flex: 0 0 300px;
  width: 300px;
  max-height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--border) 85%, transparent);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--surface) 88%, var(--surface-subtle));
  scroll-snap-align: start;
  box-shadow: var(--elev-2);
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.2s var(--ease), border-color 0.2s;
}

.dash-col::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--col-prepare);
  opacity: 0.85;
}

.dash-col--prepare::before { background: var(--col-prepare); }
.dash-col--ready::before { background: var(--col-ready); }
.dash-col--progress::before { background: var(--col-progress); }
.dash-col--past::before { background: var(--col-past); }

.dash-col--ready {
  background: color-mix(in srgb, var(--success-muted) 22%, var(--surface));
}

.dash-col--progress {
  background: color-mix(in srgb, var(--accent-muted) 35%, var(--surface));
}

.dash-col--past {
  background: color-mix(in srgb, var(--secondary-muted) 28%, var(--surface));
}

.dash-col__head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 2px 4px;
}

.dash-col__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink-muted);
  box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 12%, transparent);
}

.dash-col--prepare .dash-col__dot { background: var(--ink-muted); }
.dash-col--ready .dash-col__dot { background: var(--success); }
.dash-col--progress .dash-col__dot { background: var(--accent); }
.dash-col--past .dash-col__dot { background: var(--secondary); }

.dash-col__title {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.dash-col__count {
  margin-left: auto;
  min-width: 22px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  color: var(--ink-secondary);
  background: var(--surface);
  border: 1px solid var(--neutral-border);
  box-shadow: var(--elev-1);
  font-variant-numeric: tabular-nums;
}

.dash-col__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 2px;
}

.dash-drop-hint,
.dash-drag-hint {
  flex-shrink: 0;
  margin: 0 0 10px;
  padding: 0 4px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--fg-3);
}

.dash-section--drop-target {
  outline: 2px dashed var(--accent);
  outline-offset: 2px;
  background: color-mix(in srgb, var(--accent) 8%, var(--surface-subtle));
}

.rdv-list__item--draggable {
  cursor: grab;
  -webkit-user-drag: element;
}

.rdv-list__item--draggable:active {
  cursor: grabbing;
}

.rdv-list > li.is-dragging .rdv-card {
  opacity: 0.45;
}

/* Cartes individuelles dans le board (override du conteneur liste) */
.dash-board .rdv-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: none;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

.dash-board .rdv-card {
  border: 1px solid color-mix(in srgb, var(--border) 90%, transparent);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--elev-1);
  transition: box-shadow 0.2s var(--ease), border-color 0.2s, transform 0.2s var(--ease);
}

.dash-board .rdv-list > li:last-child .rdv-card {
  border-bottom: 1px solid var(--border);
}

.dash-board .rdv-card:hover {
  box-shadow: var(--elev-hover);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.dash-empty {
  margin: 0;
  padding: 18px 14px;
  font-size: 13px;
  color: var(--ink-secondary);
  text-align: center;
  border: 1px dashed color-mix(in srgb, var(--border-strong) 80%, transparent);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  box-shadow: var(--inset-field);
}

.dash-empty[hidden] {
  display: none;
}

.dash-empty--global {
  margin: 16px 20px 0;
}

/* Dashboard — mobile */
@media (max-width: 560px) {
  .dash-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "brand brand"
      "playbook nouveau";
    align-items: stretch;
    gap: 10px 8px;
    padding: 14px 16px 12px;
  }

  .dash-header::after {
    left: 16px;
    right: 16px;
  }

  .dash-header__start {
    display: contents;
  }

  .dash-header__brand {
    grid-area: brand;
    min-width: 0;
  }

  .dash-header__brand h1 {
    font-size: 22px;
    padding-left: 9px;
  }

  .dash-header__brand p {
    margin-top: 3px;
    padding-left: 12px;
    font-size: 12px;
  }

  .dash-header__playbook {
    grid-area: playbook;
    width: 100%;
    max-width: 100%;
    margin-bottom: 0;
    min-height: 40px;
    padding: 0 10px;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .dash-header > .btn--solid.btn--compact {
    grid-area: nouveau;
    width: 100%;
    min-height: 40px;
  }

  .screen-body--dash {
    padding: 12px 16px 0;
    overflow-x: hidden;
  }

  .dash-board {
    gap: 12px;
    padding: 0 0 16px;
    scroll-padding-inline: 0;
    scroll-snap-type: x mandatory;
  }

  .dash-col {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .dash-empty--global {
    margin: 12px 0 16px;
  }

  .dash-board .rdv-card:hover {
    transform: none;
  }

  .rdv-card__name {
    min-width: 0;
    word-break: break-word;
  }

  .rdv-card__head {
    flex-wrap: wrap;
    row-gap: 6px;
  }

  .rdv-card__head-end {
    margin-left: auto;
  }

  .rdv-card__actions {
    flex-direction: column;
  }

  .rdv-card__actions .btn {
    width: 100%;
    line-height: 1.2;
  }

  .dash-col__body {
    padding: 0;
  }
}

@media (max-width: 380px) {
  .dash-header__playbook {
    font-size: 12px;
    padding: 0 8px;
  }

  .dash-header__brand h1 {
    font-size: 20px;
  }
}

/* Brief commercial */
.playbook-body {
  padding-bottom: 48px;
}

.playbook {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.playbook p {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.62;
}

.playbook p:last-child {
  margin-bottom: 0;
}

.playbook strong {
  font-weight: 700;
}

.playbook-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 16px 18px;
  border-radius: calc(var(--r) + 2px);
  background: linear-gradient(135deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 72%, #000) 100%);
  color: var(--accent-ink);
  text-decoration: none;
  box-shadow: var(--shadow-cta);
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.playbook-banner:hover {
  box-shadow: var(--shadow-card), var(--shadow-cta);
}

.playbook-banner:active {
  transform: scale(0.99);
}

.playbook-banner__eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.9;
}

.playbook-banner__link {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  opacity: 0.95;
}

.playbook-banner__link::after {
  content: " ↗";
  font-size: 12px;
  opacity: 0.85;
}

.playbook-section {
  margin: 0;
  padding: 18px 20px;
  border: 1px solid color-mix(in srgb, var(--border) 88%, transparent);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--elev-2);
  transition: box-shadow 0.2s var(--ease);
}

.playbook-section:hover {
  box-shadow: var(--elev-hover);
}

.playbook-section--tech {
  background: linear-gradient(180deg, var(--surface-subtle) 0%, var(--surface) 100%);
  border-color: var(--accent-border);
}

.playbook-section__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.playbook-section__num {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--accent-ink);
  background: var(--accent);
  line-height: 1;
}

.playbook-section__num--tech {
  font-size: 18px;
  background: var(--ink);
}

.playbook-section__title {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.playbook-section__title--sub {
  font-size: 15px;
}

.playbook-section__body > p:last-child,
.playbook-section__body > .playbook-kicker:last-child {
  margin-bottom: 0;
}

.playbook-kicker {
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-2);
}

.playbook-encart {
  margin: 12px 0;
  padding: 14px 14px 14px 16px;
  border-radius: var(--r);
  border-left: 3px solid var(--line);
  background: var(--bg-2);
}

.playbook-encart p {
  margin: 0;
}

.playbook-encart--accent {
  border-left-color: var(--accent);
  background: var(--accent-muted);
}

.playbook-encart--muted {
  border-left-color: var(--fg-3);
}

.playbook-encart--modules,
.playbook-encart--app {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.playbook-encart--modules {
  border-left-color: var(--chip-gear-ink);
  background: var(--chip-gear-bg);
}

.playbook-encart--app {
  border-left-color: var(--chip-drink-ink);
  background: var(--chip-drink-bg);
}

.playbook-encart__icon {
  flex-shrink: 0;
  width: 28px;
  font-size: 18px;
  line-height: 1.4;
  color: var(--accent);
  text-align: center;
}

.playbook-encart--win {
  margin-bottom: 0;
  border-left-color: var(--success);
  background: var(--success-muted);
  text-align: center;
}

.playbook-encart--shield {
  border-left-color: var(--ink-muted);
  background: var(--neutral-muted);
}

.playbook-encart--closing {
  margin-bottom: 0;
  border-left-color: var(--accent);
  background: var(--accent-muted);
}

.playbook-pull {
  margin: 14px 0 0;
  padding: 14px 16px;
  border: none;
  border-radius: var(--radius-md);
  background: var(--brand-midnight);
  color: var(--text-on-dark);
}

.playbook-pull p {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.playbook-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}

@media (max-width: 520px) {
  .playbook-highlights {
    grid-template-columns: 1fr;
  }
}

.playbook-highlight {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
}

.playbook-highlight p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

.playbook-highlight--offer {
  border-color: var(--success-border);
  background: var(--success-muted);
}

.playbook-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

@media (max-width: 600px) {
  .playbook-compare {
    grid-template-columns: 1fr;
  }
}

.playbook-compare__col {
  padding: 12px 14px;
  border-radius: var(--r);
  border: 1px solid var(--line);
}

.playbook-compare__col p {
  margin: 0;
  font-size: 13px;
  line-height: 1.52;
}

.playbook-compare__col--them {
  background: var(--surface-subtle);
  border-color: var(--border-strong);
}

.playbook-compare__col--us {
  background: var(--accent-muted);
  border-color: var(--accent-border);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 12%, transparent);
}

.playbook-quote {
  margin: 0;
}

.playbook-quote__title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-2);
}

.playbook-quote__card {
  padding: 20px 18px;
  border-radius: var(--radius-lg);
  border: 2px solid var(--accent-border);
  background: linear-gradient(160deg, var(--surface) 0%, var(--accent-muted) 100%);
  box-shadow: var(--shadow-card);
}

.playbook-quote__card p {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.01em;
}

.rdv-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--border) 88%, transparent);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--elev-2);
}

.rdv-card {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--surface);
}

.rdv-list > li:last-child .rdv-card {
  border-bottom: none;
}

.rdv-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.rdv-card__name {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.rdv-card__head-end {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 6px;
}

.rdv-card__delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--error);
  opacity: 0.55;
  cursor: pointer;
  transition: opacity 0.12s, background 0.12s;
}

.rdv-card__delete:hover,
.rdv-card__delete:focus-visible {
  opacity: 1;
  background: var(--error-surface);
  outline: none;
}

.rdv-card__delete:active {
  opacity: 0.85;
}

.rdv-card__badge {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--neutral-border);
  background: var(--neutral-muted);
  color: var(--ink-secondary);
}

.rdv-card__badge--ok {
  background: var(--success-muted);
  color: var(--success-ink);
  border-color: var(--success-border);
}

.rdv-card__badge--live {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-muted), 0 2px 6px var(--accent-shadow);
}

.rdv-card__meta {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--fg-2);
}

.rdv-card__date-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-align: left;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent);
  text-underline-offset: 3px;
}

.rdv-card__date-btn--unset {
  color: var(--fg-2);
  font-weight: 500;
  font-style: italic;
  text-decoration-style: dashed;
}

.rdv-card__date-btn:hover,
.rdv-card__date-btn:focus-visible {
  color: var(--accent-hover);
  outline: none;
  text-decoration-color: var(--accent);
}

#rdv-scheduled-picker {
  position: fixed;
  left: -9999px;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

.rdv-card__footer {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.rdv-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1 1 auto;
}

.rdv-card__actions .btn {
  min-height: 40px;
  padding: 0 12px;
  font-size: 13px;
}

.rdv-card__dispo-notes {
  order: -1;
  align-self: flex-end;
  max-width: 100%;
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--fg-2);
  text-align: right;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.field {
  margin-bottom: 24px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-secondary);
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font: inherit;
  font-weight: 500;
  font-size: 15px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--inset-field);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), background 0.15s;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--border-focus);
  background: var(--surface);
  box-shadow: var(--inset-field), 0 0 0 3px var(--accent-muted);
}

.field textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.5;
}

.field__hint {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--fg-2);
}

.field__sublabel {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--fg-2);
}

.field select {
  width: 100%;
  height: var(--tap);
  padding: 0 14px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font: inherit;
  font-weight: 500;
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--inset-field);
  appearance: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field select:focus {
  outline: none;
  border-color: var(--border-focus);
  background: var(--surface);
  box-shadow: var(--inset-field), 0 0 0 3px var(--accent-muted);
}

.field--inline-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.screen-body--form {
  padding-bottom: 32px;
}

.enquete-section {
  margin: 0 0 24px;
  padding: 0;
  border: none;
}

.enquete-section legend {
  display: block;
  width: 100%;
  margin-bottom: 12px;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-secondary);
  border-radius: var(--radius-sm);
  background: var(--surface-subtle);
  border: 1px solid var(--border-subtle);
}

.enquete-section--dispo {
  margin-top: 32px;
  padding-top: 8px;
}

.enquete-section--dispo > .field__hint {
  margin-bottom: 16px;
}

.enquete-section--dispo .dispo-pick {
  margin-bottom: 20px;
}

.dispo-pick__select {
  display: block;
  width: 100%;
  margin-bottom: 8px;
  padding: 8px 10px;
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' fill='none' stroke='%23666' stroke-width='1.2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 32px;
}

.dispo-pick__custom[hidden] {
  display: none;
}

.dispo-pick__custom {
  margin-top: 4px;
}

.dispo-pick .field__sublabel {
  display: block;
  margin: 4px 0 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-3);
}

.enquete-section--dispo .prep-script {
  margin-bottom: 16px;
}

.prep-script__fill {
  font-weight: 600;
}

.prep-script__fill.is-empty {
  color: var(--fg-3);
  font-style: italic;
  font-weight: 500;
}

.intro-models-bar {
  margin-bottom: 20px;
}

.intro-models-bar__active {
  margin: 8px 0 0;
}

/* Modale — aperçu email de clôture */
.cloture-email-modal {
  position: fixed;
  inset: 0;
  z-index: 75;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.cloture-email-modal.is-open {
  display: flex;
}

.cloture-email-modal__backdrop {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--brand-midnight) 55%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.cloture-email-modal__card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: min(640px, 100%);
  max-height: min(92dvh, 860px);
}

.cloture-email-modal__subject {
  margin: 0;
  padding: 10px 16px 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-muted);
  word-break: break-word;
}

.cloture-email-modal__preview-wrap {
  flex: 1;
  min-height: 0;
  margin: 12px 16px 0;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  background: #fafaf7;
}

.cloture-email-modal__preview {
  display: block;
  width: 100%;
  height: min(52dvh, 480px);
  border: 0;
  background: #fafaf7;
}

.cloture-email-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px 0;
}

.cloture-email-modal__steps {
  margin: 10px 16px 14px;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cloture-email-modal__steps li {
  line-height: 1.45;
}

/* Modale — choix de modèles d’introduction */
.intro-models-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.intro-models-modal.is-open {
  display: flex;
}

.intro-models-modal__backdrop {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--brand-midnight) 55%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.intro-models-modal__card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  max-height: min(88dvh, 720px);
  display: flex;
  flex-direction: column;
}

.intro-models-modal__panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.intro-models-modal__panel[hidden] {
  display: none !important;
}

.intro-models-modal__lead {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-secondary);
}

.intro-models-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.intro-model-card-wrap {
  position: relative;
}

.intro-model-card {
  display: block;
  width: 100%;
  padding: 14px 16px;
  padding-right: 44px;
  border: 1px solid color-mix(in srgb, var(--border) 90%, transparent);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--elev-1);
  font: inherit;
  text-align: left;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.18s var(--ease), background 0.18s, box-shadow 0.18s var(--ease), transform 0.18s var(--ease);
}

.intro-model-card:hover,
.intro-model-card:focus-visible {
  border-color: var(--accent-border);
  background: var(--surface-hover);
  box-shadow: var(--elev-hover);
  transform: translateY(-1px);
  outline: none;
}

.intro-model-card:active {
  transform: scale(0.99);
}

.intro-model-card__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.intro-model-card__title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.25;
}

.intro-model-card__badge {
  flex-shrink: 0;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--neutral-muted);
  color: var(--ink-muted);
  border: 1px solid var(--neutral-border);
}

.intro-model-card__badge--custom {
  background: var(--accent-muted);
  color: var(--accent);
  border-color: var(--accent-border);
}

.intro-model-card__preview {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.intro-model-card__delete {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink-muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.intro-model-card__delete:hover,
.intro-model-card__delete:focus-visible {
  background: var(--error-surface);
  color: var(--error);
  outline: none;
}

.intro-models-modal__add {
  margin-top: 4px;
}

.intro-models-modal__create-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

#intro-models-create .field {
  margin-bottom: 16px;
}

#intro-models-create .field:last-of-type {
  margin-bottom: 20px;
}

.field--conditional[hidden] {
  display: none;
}

.field--conditional[data-show-if-social] .field {
  margin-bottom: 16px;
}

.field--conditional[data-show-if-social] .field:last-child {
  margin-bottom: 0;
}

.check-grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
}

/* Surcharge .field label / .field input qui forçait block + width 100% */
.field label.check-line {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-bottom: 0;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: normal;
  color: var(--ink);
  cursor: pointer;
}

.check-line {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  margin: 0;
  padding: 4px 0;
  border-radius: var(--r);
  font-size: 15px;
  cursor: pointer;
  transition: background 0.12s ease;
}

.check-line:hover {
  background: var(--surface-subtle);
}

.check-line__mark {
  flex: 0 0 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
}

.check-line__text {
  flex: 1;
  min-width: 0;
  line-height: 1.35;
  color: var(--ink);
  user-select: none;
}

.field .check-line input[type="checkbox"],
.check-line input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
  border: 1.5px solid var(--border);
  border-radius: 5px;
  background: var(--surface);
  box-shadow: none;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}

.check-line input[type="checkbox"]:checked {
  background-color: var(--accent);
  border-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10' fill='none'%3E%3Cpath d='M1 5.2 4.2 8.4 11 1.6' stroke='%23FFFFFF' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 11px 9px;
}

.check-line input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}

.enquete-recap {
  margin-bottom: 16px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--border) 88%, transparent);
  box-shadow: var(--elev-1);
  font-size: 14px;
  line-height: 1.5;
}

.enquete-recap__block {
  margin-bottom: 12px;
}

.enquete-recap__block:last-child {
  margin-bottom: 0;
}

.enquete-recap__title {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-3);
}

.enquete-recap__text {
  margin: 0;
  white-space: pre-wrap;
}

.enquete-recap__empty {
  margin: 0;
  color: var(--fg-3);
  font-style: italic;
}

.summary-enquete {
  font-size: 14px;
  line-height: 1.5;
}

.summary-enquete dl {
  margin: 0;
}

.summary-enquete dt {
  margin-top: 10px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-3);
}

.summary-enquete dt:first-child {
  margin-top: 0;
}

.summary-enquete dd {
  margin: 2px 0 0;
  white-space: pre-wrap;
}

/* Screenshots Google */
#eq-google-upload-btn {
  margin-top: 12px;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.screenshot-grid:empty {
  display: none;
}

.screenshot-item {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--line);
}

.screenshot-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.screenshot-item__remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 6px;
  background: color-mix(in srgb, var(--brand-midnight) 72%, transparent);
  color: var(--text-on-dark);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.screenshot-item__remove:focus-visible {
  outline: 2px solid #fff;
}

.enquete-recap .screenshot-grid {
  margin-top: 8px;
}

.enquete-recap .screenshot-item {
  aspect-ratio: 1;
}

.summary-screenshots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.summary-screenshots img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
}

/* Lien résumé sur l'accueil */
.home-summary-link {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px dashed var(--line);
  border-radius: var(--r);
  background: var(--bg-2);
  font: inherit;
  text-align: left;
  color: inherit;
  cursor: pointer;
}

.home-summary-link[hidden] {
  display: none;
}

.home-summary-link__title {
  display: block;
  font-weight: 600;
  font-size: 15px;
}

.home-summary-link__meta {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--fg-3);
}

.home-summary-link svg {
  margin-left: auto;
  flex-shrink: 0;
  color: var(--fg-3);
}

/* Résumé */
.summary-meta {
  margin: 0 0 24px;
  font-size: 14px;
  color: var(--fg-2);
  line-height: 1.5;
}

.summary-block {
  margin-bottom: 14px;
  padding: 16px 18px;
  border: 1px solid color-mix(in srgb, var(--border) 88%, transparent);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--elev-1);
}

.summary-block:last-of-type {
  margin-bottom: 0;
}

.summary-block h3 {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-3);
}

.summary-block__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.summary-block__text.is-empty {
  color: var(--fg-3);
  font-style: italic;
}

.summary-checks {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
  line-height: 1.6;
}

.summary-checks li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.summary-checks .ok {
  color: var(--ok);
  font-weight: 600;
}

.summary-checks .no {
  color: var(--fg-3);
}

.rdv-footer--stack {
  grid-template-columns: 1fr;
}

/* Cartes d'action principales */
.action-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.action-card {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 80px;
  padding: 18px 20px;
  border: 1px solid color-mix(in srgb, var(--border) 90%, transparent);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--elev-2);
  font: inherit;
  text-align: left;
  color: inherit;
  cursor: pointer;
  transition: background 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease), border-color 0.2s;
}

.action-card:hover,
.action-card:focus-visible {
  background: var(--surface-hover);
  border-color: var(--border-strong);
  box-shadow: var(--elev-hover);
  transform: translateY(-2px);
  outline: none;
}

.action-card--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  box-shadow: var(--shadow-cta);
}

.action-card--primary:hover,
.action-card--primary:focus-visible {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.action-card__num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
  background: var(--bg-2);
  color: var(--fg);
}

.action-card--primary .action-card__num {
  background: color-mix(in srgb, var(--accent-ink) 18%, transparent);
  color: var(--accent-ink);
}

.action-card__text strong {
  display: block;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.action-card__text span {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  opacity: 0.75;
}

.action-card--primary .action-card__text span {
  opacity: 0.85;
}

.action-card__arrow {
  margin-left: auto;
  flex-shrink: 0;
  opacity: 0.4;
}

/* Hub préparation */
.prep-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: none;
  background: transparent;
  box-shadow: none;
}

.prep-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 60px;
  padding: 16px 18px;
  border: 1px solid color-mix(in srgb, var(--border) 90%, transparent);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--elev-1);
  font: inherit;
  text-align: left;
  color: inherit;
  cursor: pointer;
  transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease), border-color 0.2s, background 0.2s;
}

.prep-item:hover,
.prep-item:focus-visible {
  border-color: var(--border-strong);
  box-shadow: var(--elev-hover);
  transform: translateY(-1px);
  outline: none;
}

.prep-item.is-ready {
  border-color: color-mix(in srgb, var(--success-border) 70%, var(--border));
  background: color-mix(in srgb, var(--success-muted) 35%, var(--surface));
}

.prep-list + .btn {
  margin-top: 24px;
}

.prep-save-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.prep-item__status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
  flex-shrink: 0;
}

.prep-item.is-ready .prep-item__status {
  background: var(--success);
  box-shadow: 0 0 0 3px var(--success-muted);
}

.prep-item__label {
  flex: 1;
  font-weight: 600;
  font-size: 16px;
}

.prep-item__hint {
  font-size: 12px;
  color: var(--fg-3);
}

.lead {
  margin: 0 0 20px;
  padding: 14px 16px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg-2);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--accent-muted) 45%, var(--surface));
  border: 1px solid var(--accent-border);
}

.lead-steps .lead {
  margin-bottom: 10px;
}

.lead-steps .lead:last-child {
  margin-bottom: 20px;
}

/* Pré-vol */
.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--border) 85%, transparent);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--elev-1);
  font: inherit;
  text-align: left;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.check-item:hover,
.check-item:focus-visible {
  border-color: var(--border-strong);
  box-shadow: var(--elev-2);
  outline: none;
}

.check-item.is-done {
  border-color: color-mix(in srgb, var(--accent-border) 80%, var(--border));
  background: color-mix(in srgb, var(--accent-muted) 40%, var(--surface));
}

.check-item__box {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  border: 2px solid var(--line);
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.12s, border-color 0.12s;
}

.check-item.is-done .check-item__box {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.check-item__body strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
}

.check-item__body span {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--fg-2);
}

/* Écran RDV — contenu focal */
.rdv-recap-reminder {
  margin: 0 0 20px;
  padding: 16px 16px 16px 18px;
  border: 1px solid var(--accent-border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent-muted) 0%, color-mix(in srgb, var(--accent-muted) 60%, var(--surface)) 100%);
  box-shadow: var(--elev-1);
}

.rdv-recap-reminder__title {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-3);
}

.rdv-recap-reminder__list {
  margin: 0;
  padding-left: 1.15em;
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg);
}

.rdv-recap-reminder__list li + li {
  margin-top: 8px;
}

.rdv-recap-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rdv-recap-actions .btn {
  text-decoration: none;
}

.step-intro {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.step-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(24px, 5vw, 32px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--ink);
}

.step-desc {
  margin: 0 0 24px;
  font-size: 15px;
  color: var(--fg-2);
}

.prep-readonly {
  margin-bottom: 20px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--border) 88%, transparent);
  border-left: 4px solid var(--ink-muted);
  box-shadow: var(--elev-1);
}

.prep-readonly:empty {
  display: none;
}

.prep-readonly__label {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-3);
}

.prep-readonly__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.prep-script {
  margin-bottom: 24px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--border) 88%, transparent);
  border-left: 4px solid var(--accent);
  box-shadow: var(--elev-1);
}

.prep-script__title {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-3);
}

.prep-script__body p {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.55;
}

.prep-script__body p:last-child {
  margin-bottom: 0;
}

.prep-script__cue {
  color: var(--fg-2);
  font-style: italic;
}

.prep-script__reply {
  padding-left: 12px;
  border-left: 2px solid var(--line);
  color: var(--fg-2);
}

.prep-script__var {
  font-weight: 600;
  border-bottom: 1px dashed var(--fg-3);
}

.prep-script__line--douleur {
  line-height: 1.65;
}

.prep-script__select {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 8px 0 4px;
  padding: 8px 10px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--fg);
  background: var(--bg);
  border: 1px dashed var(--fg-3);
  border-radius: var(--r);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' fill='none' stroke='%23666' stroke-width='1.2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 32px;
}

.prep-script__solution {
  font-weight: 600;
  border-bottom: 1px dashed var(--fg-3);
}

.prep-script__solution.is-empty {
  color: var(--fg-3);
  font-style: italic;
  font-weight: 500;
}

.prep-script__inline-douleur {
  display: block;
  margin: 8px 0 4px;
  font-weight: 600;
  line-height: 1.4;
}

.prep-script__select.is-hidden {
  display: none;
}

.prep-script__custom-fields {
  margin: 0 0 20px;
  padding: 12px;
  border-radius: var(--r);
  background: var(--bg);
  border: 1px dashed var(--line);
}

.prep-script__custom-fields .field--compact {
  margin-bottom: 12px;
}

.prep-script__custom-fields .field--compact:last-child {
  margin-bottom: 0;
}

.prep-script__custom-fields label {
  font-size: 11px;
}

.prep-script__custom-fields textarea {
  width: 100%;
  min-height: 56px;
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
  border: 1px solid var(--line);
  border-radius: var(--r);
  resize: vertical;
}

.tool-links {
  list-style: none;
  margin: 0;
  padding: 6px;
  border: 1px solid color-mix(in srgb, var(--border) 90%, transparent);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--elev-1);
}

.tool-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  color: var(--fg);
  text-decoration: none;
  transition: background 0.15s var(--ease), color 0.15s;
}

.tool-link:hover,
.tool-link:focus-visible {
  background: var(--accent-muted);
  color: var(--link);
  outline: none;
}

.tool-link:last-child {
  border-bottom: none;
}

.tool-link__tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-3);
}

.notes-inline {
  margin-top: 16px;
}

.notes-inline textarea {
  width: 100%;
  min-height: 100px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  font: inherit;
  background: var(--bg-2);
}

.notes-inline textarea:focus {
  outline: 2px solid var(--fg);
  background: var(--bg);
}

/* Barre de progression RDV */
.rdv-progress {
  flex-shrink: 0;
  padding: 14px 16px 4px;
  background: var(--header-surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}

.rdv-progress__track {
  display: flex;
  gap: 5px;
  height: 4px;
}

.rdv-progress__dot {
  flex: 1;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--border-strong) 65%, var(--surface-subtle));
  transition: background 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}

.rdv-progress__dot.is-done {
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 75%, #000));
}

.rdv-progress__dot.is-current {
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-muted), 0 2px 8px var(--accent-shadow);
  transform: scaleY(1.15);
}

.rdv-progress__labels {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 10px;
  font-weight: 500;
  color: var(--fg-3);
}

.rdv-progress__labels span.is-current {
  color: var(--fg);
  font-weight: 600;
}

/* Footer navigation RDV */
.rdv-footer {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 12px 16px calc(12px + var(--safe-b));
  border-top: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  background: var(--header-surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 -4px 20px rgba(11, 20, 36, 0.05);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--tap);
  padding: 0 18px;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 14px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s var(--ease), transform 0.12s var(--ease), box-shadow 0.18s var(--ease), border-color 0.18s, opacity 0.1s;
}

.btn:active { transform: scale(0.98); }

.btn--ghost {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border-strong);
  font-weight: 600;
  box-shadow: var(--elev-1);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: var(--surface-hover);
  border-color: color-mix(in srgb, var(--ink-muted) 40%, var(--border-strong));
  box-shadow: var(--elev-2);
}

.btn--solid {
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 92%, #fff) 0%, var(--accent) 100%);
  color: var(--accent-ink);
  box-shadow: var(--shadow-cta), var(--elev-1);
}

.btn--solid:hover,
.btn--solid:focus-visible {
  background: linear-gradient(180deg, var(--accent-hover) 0%, color-mix(in srgb, var(--accent-hover) 90%, #000) 100%);
  box-shadow: var(--shadow-cta), var(--elev-2);
}

.btn--full {
  grid-column: 1 / -1;
}

.btn:disabled {
  opacity: 0.35;
  pointer-events: none;
}

.btn--link {
  background: none;
  color: var(--fg-2);
  min-height: auto;
  padding: 8px;
  font-size: 14px;
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(80px + var(--safe-b));
  transform: translateX(-50%) translateY(8px);
  padding: 11px 18px;
  border-radius: var(--radius-pill);
  background: var(--brand-midnight);
  color: var(--text-on-dark);
  box-shadow: var(--elev-3);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  z-index: 80;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (min-width: 768px) {
  .screen-body {
    padding: 28px 32px 32px;
  }
}

/* Mobile global — formulaires, flux RDV, topbar */
@media (max-width: 560px) {
  .view {
    max-width: 100vw;
    overflow-x: clip;
  }

  .screen-body {
    padding: 16px 16px 24px;
  }

  .screen-body--narrow {
    padding-left: 16px;
    padding-right: 16px;
  }

  .screen-body--playbook {
    padding-left: 16px;
    padding-right: 16px;
  }

  .topbar {
    padding: 8px 12px;
    gap: 14px;
  }

  .topbar__back {
    margin: 0;
    flex-shrink: 0;
  }

  .topbar__title {
    font-size: 16px;
  }

  .field--inline-2 {
    grid-template-columns: 1fr;
  }

  .rdv-flow__step {
    padding: 18px 14px 22px;
    margin-bottom: 12px;
  }

  .rdv-step-head {
    flex-wrap: wrap;
    gap: 8px;
  }

  .rdv-rec-btn {
    width: 100%;
    justify-content: center;
  }

  .rdv-footer {
    padding: 10px 12px calc(10px + var(--safe-b));
    gap: 8px;
  }

  .prep-save-actions .btn,
  .rdv-footer .btn {
    min-height: 44px;
  }

  .pitch-variants {
    flex-direction: column;
  }

  .cloture-email-modal,
  .intro-models-modal {
    padding: 8px;
  }

  .action-card {
    padding: 16px;
    min-height: 72px;
  }

  .playbook-section {
    padding: 14px 16px;
  }

  .playbook-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 14px 16px;
  }
}

/* Questions générées depuis l’enquête */
.prep-q-meta {
  margin: 0 0 12px;
  font-size: 0.875rem;
  color: var(--fg-3);
}

.prep-q-list {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.prep-q-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--border) 90%, transparent);
  border-radius: var(--r);
  box-shadow: var(--elev-1);
}

.prep-q-item__num {
  flex-shrink: 0;
  font-family: var(--font-display, var(--font));
  font-weight: 600;
  color: var(--fg-2);
  line-height: 1.45;
}

.prep-q-item__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.prep-q-item__ctx {
  font-size: 0.8125rem;
  color: var(--fg-3);
  line-height: 1.35;
}

.prep-q-item__text {
  line-height: 1.45;
}

.prep-q-empty {
  margin: 0 0 24px;
  padding: 16px;
  text-align: center;
  color: var(--fg-3);
  background: var(--bg-2);
  border: 1px dashed var(--line);
  border-radius: var(--r);
}

#rdv-show-questionnaire .prep-q-list {
  margin-top: 8px;
}

.pitch-variants {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.pitch-variant {
  flex: 1;
  min-height: var(--tap);
  padding: 10px 12px;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--fg-2);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.pitch-variant.is-active {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: var(--shadow-cta);
}

.pitch-variant-hint {
  margin: 0 0 16px;
}

.prep-q-perso {
  margin-top: 8px;
}

.prep-readonly--sub {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
