/* ============================================================
   VOCALIA — Layout de l'application
   Dépend de design-system.css (tokens + composants).
   ============================================================ */

/* Taille par défaut des icônes SVG injectées */
.icon { width: 20px; height: 20px; }
.icon-slot { display: inline-flex; align-items: center; justify-content: center; }

/* ============================================================
   ÉCRAN DE CONNEXION
   ============================================================ */
.auth {
  min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: var(--sp-6);
  position: relative; overflow: hidden;
}
.auth::before {
  content: ""; position: absolute; inset: -30% 0 auto 0; height: 460px;
  background: radial-gradient(55% 60% at 50% 0, color-mix(in srgb, var(--wine) 9%, transparent), transparent 70%);
  pointer-events: none;
}
.auth__card {
  position: relative; z-index: 1;
  width: 100%; max-width: 400px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  padding: var(--sp-8) var(--sp-6) var(--sp-6);
  text-align: center;
}
.auth__badge {
  width: 66px; height: 66px; border-radius: var(--r-lg); margin: 0 auto var(--sp-5);
  background: var(--grad); display: grid; place-items: center;
  box-shadow: var(--shadow-wine);
}
.auth__badge .icon { width: 34px; height: 34px; color: #fff; }
.auth__title { font-size: var(--fs-2xl); font-weight: var(--fw-extrabold); }
.auth__tagline { color: var(--ink-2); font-size: var(--fs-base); margin: 6px 0 var(--sp-6); }
.auth form { text-align: left; }
.auth .field:last-of-type { margin-bottom: var(--sp-5); }
.auth__foot { text-align: center; font-size: var(--fs-sm); color: var(--ink-2); margin-top: var(--sp-5); }
.auth__foot a { font-weight: var(--fw-bold); }

/* Messages login (IDs conservés) */
.error-message {
  display: none; margin-top: var(--sp-3); padding: 10px 12px;
  background: var(--bad-soft); border: 1px solid var(--bad-line); border-radius: var(--r-sm);
  color: #B91C1C; font-size: var(--fs-sm); font-weight: var(--fw-semibold); text-align: center;
}
.loading {
  display: none; align-items: center; justify-content: center; gap: var(--sp-2);
  margin-top: var(--sp-4); color: var(--ink-2); font-size: var(--fs-sm); font-weight: var(--fw-medium);
}
.loading .loading-spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2.5px solid color-mix(in srgb, var(--wine) 25%, transparent);
  border-top-color: var(--wine); animation: voc-spin .8s linear infinite;
}

/* ============================================================
   SHELL DE L'APP
   ============================================================ */
.app-shell { min-height: 100dvh; display: flex; flex-direction: column; }

/* Barre supérieure */
/* Bloc collé en haut (barre supérieure + barre module) : reste fixe au scroll. */
.app-topstack { position: sticky; top: 0; z-index: var(--z-header); }
.topbar {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: calc(12px + env(safe-area-inset-top)) clamp(16px, 4vw, 40px) 12px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: var(--sp-2); }
.brand__mark {
  width: 34px; height: 34px; border-radius: var(--r-sm); background: var(--grad);
  display: grid; place-items: center; flex: none;
}
.brand__mark .icon { width: 19px; height: 19px; color: #fff; }
.brand__name { font-size: var(--fs-lg); font-weight: var(--fw-extrabold); letter-spacing: -.02em; }
.brand__edition {
  font-size: 9px; font-weight: var(--fw-extrabold); letter-spacing: .08em; text-transform: uppercase;
  color: var(--amber-deep); background: color-mix(in srgb, var(--amber) 14%, transparent);
  padding: 2px 6px; border-radius: 5px; margin-left: 4px; vertical-align: middle;
}
.topbar__spacer { flex: 1; }
.user-info { display: flex; align-items: center; gap: var(--sp-2); }
.user-info__meta { display: none; text-align: right; line-height: 1.25; min-width: 0; max-width: 40vw; }
@media (min-width: 560px) { .user-info__meta { display: block; } }
#userName { font-size: var(--fs-sm); font-weight: var(--fw-bold); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-role { font-size: var(--fs-xs); color: var(--ink-3); font-weight: var(--fw-semibold); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar .logout {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-sm);
  background: var(--surface-2); color: var(--ink-2); transition: background var(--t), color var(--t);
}
.topbar .logout:hover { background: var(--bad-soft); color: var(--bad); }
.topbar .logout .icon { width: 19px; height: 19px; }

/* Zone principale */
.app-main {
  flex: 1; width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--sp-6) clamp(16px, 4vw, 24px) 140px; /* espace pour la tab bar flottante */
}
@media (min-width: 768px) {
  .app-main { max-width: 1040px; margin: 0 auto; padding-left: clamp(24px, 3vw, 48px); padding-right: clamp(24px, 3vw, 48px); padding-bottom: var(--sp-10); }
}
/* Sidebar retirée : navigation par le hub + barre du haut. */
.sidebar, .sidebar-backdrop { display: none !important; }
.topbar__burger { display: none !important; }

/* ============================================================
   MENU LATÉRAL (sidebar desktop)
   ============================================================ */
.sidebar {
  position: fixed; top: 0; left: 0; bottom: 0; width: var(--sidebar-w); z-index: var(--z-header);
  flex-direction: column; gap: 3px; padding: var(--sp-5) var(--sp-3);
  background: var(--surface); border-right: 1px solid var(--line);
}
.sidebar__brand { display: flex; align-items: center; gap: var(--sp-2); padding: 4px 10px var(--sp-5); }
.sidebar__brand .brand__mark { width: 34px; height: 34px; border-radius: var(--r-sm); background: var(--grad); display: grid; place-items: center; flex: none; }
.sidebar__brand .brand__mark .icon { width: 19px; height: 19px; color: #fff; }
.sidebar__brand .brand__name { font-size: var(--fs-lg); font-weight: var(--fw-extrabold); letter-spacing: -.02em; }
.sidebar__nav { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.side-link {
  display: flex; align-items: center; gap: var(--sp-3); width: 100%;
  padding: 11px 12px; border-radius: var(--r-sm); font-size: var(--fs-base); font-weight: var(--fw-semibold);
  color: var(--ink-2); text-align: left; transition: background var(--t), color var(--t);
}
.side-link .icon { width: 20px; height: 20px; flex: none; }
.side-link:hover { background: var(--surface-2); color: var(--ink); }
.side-link.active { background: color-mix(in srgb, var(--wine) 10%, transparent); color: var(--wine); }
.side-link.logout { color: var(--ink-3); margin-top: auto; }
.side-link.logout:hover { background: var(--bad-soft); color: var(--bad); }
/* Mobile : la sidebar devient un tiroir hors-écran, ouvert par le hamburger */
@media (max-width: 767px) {
  .sidebar { width: min(280px, 82vw); z-index: var(--z-modal); box-shadow: var(--shadow-lg);
    transform: translateX(-100%); transition: transform var(--t); }
  .sidebar.open { transform: translateX(0); }
  /* La tab bar du bas EST la navigation mobile (sync JS la met en display:flex). */
}
.sidebar-backdrop { display: none; position: fixed; inset: 0; z-index: var(--z-backdrop); background: rgba(20,10,15,.45); }
.sidebar-backdrop.show { display: block; }
@media (min-width: 768px) { .sidebar-backdrop { display: none !important; } }
/* Hamburger (visible seulement sur mobile, la topbar étant masquée en desktop) */
.topbar__burger { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-sm); background: var(--surface-2); color: var(--ink-2); flex: none; }
.topbar__burger .icon { width: 22px; height: 22px; }

.screen { animation: voc-screen-in var(--t) both; }
@keyframes voc-screen-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.screen-head { margin-bottom: var(--sp-5); }
.screen-head h1 { font-size: var(--fs-2xl); font-weight: var(--fw-extrabold); }
.screen-head p { color: var(--ink-2); font-size: var(--fs-base); margin-top: 2px; }
.section-label {
  font-size: var(--fs-xs); font-weight: var(--fw-bold); letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-3); margin: var(--sp-6) 2px var(--sp-3);
}

/* ============================================================
   ENREGISTREUR (page brouillons)
   ============================================================ */
.recorder { text-align: center; padding: var(--sp-6) var(--sp-5); }
.record-button {
  width: 104px; height: 104px; border-radius: 50%; margin: var(--sp-2) auto 0;
  background: var(--grad); display: grid; place-items: center; position: relative;
  box-shadow: var(--shadow-wine); cursor: pointer; transition: transform var(--t);
  -webkit-tap-highlight-color: transparent;
}
.record-button:active { transform: scale(.96); }
.record-button .icon, .record-button svg { width: 42px; height: 42px; color: #fff; }
.record-button.recording { background: var(--grad-amber); box-shadow: var(--shadow-amber); }
.record-button.recording::before, .record-button.recording::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--amber) 55%, transparent);
  animation: voc-ripple 2s ease-out infinite;
}
.record-button.recording::after { animation-delay: 1s; }
@keyframes voc-ripple { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.7); opacity: 0; } }

#recordingStatus { margin-top: var(--sp-4); font-size: var(--fs-base); font-weight: var(--fw-semibold); color: var(--ink-2); }

.audio-controls { display: none; gap: var(--sp-2); justify-content: center; margin-top: var(--sp-4); }
.audio-controls.show { display: flex; }
.audio-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px;
  padding: 9px 14px; border-radius: var(--r-full);
  background: var(--surface-2); color: var(--ink-2); font-size: var(--fs-sm); font-weight: var(--fw-semibold);
  transition: background var(--t), color var(--t);
}
.audio-btn:hover { background: var(--surface-3); color: var(--ink); }
.audio-btn .icon { width: 15px; height: 15px; }

.input-options { display: flex; flex-direction: column; align-items: stretch; }
.option-group h4 {
  font-size: var(--fs-sm); font-weight: var(--fw-bold); color: var(--ink-2);
  margin-bottom: var(--sp-3); text-align: center;
}
.option-divider {
  display: flex; align-items: center; gap: var(--sp-3); margin: var(--sp-5) 0;
  color: var(--ink-3); font-size: var(--fs-xs); font-weight: var(--fw-bold); letter-spacing: .12em;
}
.option-divider::before, .option-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.upload-btn {
  width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  padding: 14px; border-radius: var(--r-sm);
  background: var(--surface-2); border: 1.5px dashed var(--line-strong); color: var(--ink-2);
  font-size: var(--fs-base); font-weight: var(--fw-semibold); transition: border-color var(--t), background var(--t), color var(--t);
}
.upload-btn:hover { border-color: var(--wine); color: var(--wine); }
.upload-btn.active { border-style: solid; border-color: var(--good); background: var(--good-soft); color: var(--good); }
.upload-btn .icon { width: 18px; height: 18px; }
#uploadStatus { font-size: var(--fs-sm); color: var(--good); font-weight: var(--fw-semibold); margin-top: var(--sp-2); text-align: center; }

.send-btn {
  display: none; width: 100%; margin-top: var(--sp-5);
  align-items: center; justify-content: center; gap: var(--sp-2);
  padding: 15px; border-radius: var(--r);
  background: var(--grad); color: #fff; font-size: var(--fs-md); font-weight: var(--fw-bold);
  box-shadow: var(--shadow-wine); transition: transform var(--t), box-shadow var(--t);
}
.send-btn.show { display: flex; }
.send-btn:hover:not(:disabled) { transform: translateY(-1px); }
.send-btn:disabled { opacity: .6; }
.send-btn .icon { width: 18px; height: 18px; }

/* ============================================================
   RECHERCHE + STATS (page rapports)
   ============================================================ */
.search-section { margin-bottom: var(--sp-4); }
.search-input {
  width: 100%; background: var(--surface); border: 1.5px solid var(--line-strong);
  border-radius: var(--r-full); padding: 12px 18px; font-size: var(--fs-base);
  transition: border-color var(--t), box-shadow var(--t);
}
.search-input:focus { outline: none; border-color: var(--wine); box-shadow: 0 0 0 3px color-mix(in srgb, var(--wine) 15%, transparent); }

.stats-section { display: flex; gap: var(--sp-3); flex-wrap: wrap; align-items: center; margin-bottom: var(--sp-5); }
.stat-pill {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 10px 14px; font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--ink-2);
  box-shadow: var(--shadow-xs);
}
.stat-pill .icon { width: 16px; height: 16px; color: var(--wine); }
.stat-pill b { color: var(--ink); font-variant-numeric: tabular-nums; }
/* Reste calé à droite même s'il passe seul sur une 2e ligne (survit au flex-wrap) */
#createFolderBtnTop { margin-left: auto; }

/* ============================================================
   LISTES DYNAMIQUES (rendues par data-manager)
   ============================================================ */
.reports-list { display: flex; flex-direction: column; gap: var(--sp-3); }
.reports-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--sp-3); }
.reports-compact-list { display: flex; flex-direction: column; gap: var(--sp-2); }

/* Carte rapport / brouillon / item */
.report-item, .report-card, .report-item-compact {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: var(--sp-4); box-shadow: var(--shadow-xs);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.report-item-compact { cursor: pointer; }
.report-item:hover, .report-card:hover, .report-item-compact:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.report-header { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-3); margin-bottom: var(--sp-2); }
.report-comparison-header { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); margin-bottom: var(--sp-2); }
.report-title, .report-comparison-title, .reports-section-title { font-size: var(--fs-md); font-weight: var(--fw-bold); letter-spacing: -.01em; }
.report-title { display: flex; align-items: center; gap: 7px; min-width: 0; flex: 1; flex-wrap: nowrap; }
.report-title .icon { width: 17px; height: 17px; color: var(--wine); flex: none; }
.report-title-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1; }
.report-actions .grow { flex: 1; }
.reports-section-title { display: flex; align-items: center; gap: 8px; margin: var(--sp-5) 2px var(--sp-3); font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.reports-section-title .icon { width: 16px; height: 16px; color: var(--wine); }
.reports-section-title .count-badge { margin-left: auto; }
.report-date { font-size: var(--fs-xs); color: var(--ink-3); font-weight: var(--fw-medium); flex: none; white-space: nowrap; }
.report-content, .report-comparison-content { font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; }
.report-comparison-layout { display: grid; gap: var(--sp-3); grid-template-columns: 1fr; }
@media (min-width: 640px) { .report-comparison-layout { grid-template-columns: 1fr 1fr; } }
.report-comparison-column { background: var(--surface-2); border-radius: var(--r-sm); padding: var(--sp-3); }
.original-header, .translated-header { font-size: var(--fs-xs); font-weight: var(--fw-bold); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); margin-bottom: var(--sp-2); }

/* Actions (boutons icônes) */
.report-actions, .folder-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: var(--sp-3); }
.action-btn, .edit-btn, .delete-btn, .view-btn, .share-btn, .download-pdf-btn, .move-btn, .validate-btn, .folder-action-btn, .translate-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px;
  padding: 8px 12px; border-radius: var(--r-xs); font-size: var(--fs-sm); font-weight: var(--fw-semibold);
  background: var(--surface-2); color: var(--ink-2); border: 1px solid transparent;
  transition: background var(--t), color var(--t), border-color var(--t), transform var(--t-fast);
}
.action-btn:hover, .edit-btn:hover, .view-btn:hover, .share-btn:hover, .move-btn:hover, .folder-action-btn:hover, .translate-btn:hover { background: var(--surface-3); color: var(--ink); }
.action-btn:active { transform: translateY(1px); }
.action-btn .icon, .edit-btn .icon, .delete-btn .icon, .view-btn .icon, .share-btn .icon, .download-pdf-btn .icon, .move-btn .icon, .validate-btn .icon, .folder-action-btn .icon, .translate-btn .icon { width: 15px; height: 15px; }
.validate-btn { background: var(--grad); color: #fff; box-shadow: var(--shadow-sm); }
.validate-btn:hover { transform: translateY(-1px); }
.download-pdf-btn { background: var(--bad-soft); color: var(--bad); }
.download-pdf-btn:hover { background: color-mix(in srgb, var(--bad) 12%, var(--surface)); }
.delete-btn { background: var(--bad-soft); color: var(--bad); }
.delete-btn:hover { background: color-mix(in srgb, var(--bad) 14%, var(--surface)); }

/* Badges de statut */
.count-badge, .language-badge, .translated-badge, .report-compact-indicator {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: var(--fs-xs); font-weight: var(--fw-bold); padding: 3px 9px; border-radius: var(--r-full);
  background: var(--surface-2); color: var(--ink-2);
}
.language-badge, .translated-badge { background: color-mix(in srgb, var(--info) 12%, transparent); color: var(--info); }
.report-compact-indicator { background: var(--good-soft); color: var(--good); }

/* Dropdown de traduction — ancré au bord droit de la rangée d'actions (reste à l'écran sur mobile) */
.report-actions { position: relative; }
.translate-dropdown { display: inline-block; }
.translate-menu {
  position: absolute; right: 0; left: auto; top: calc(100% + 6px); z-index: var(--z-dropdown);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm);
  box-shadow: var(--shadow-lg); min-width: 180px; max-width: calc(100vw - 24px); overflow: hidden; padding: 4px;
}

/* Section « Traductions » (bloc dépliable sous un rapport) */
.translations-section { margin-top: var(--sp-2); }
.translations-header {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2);
  padding: 8px 4px; font-size: var(--fs-sm); font-weight: var(--fw-bold); color: var(--ink-2); cursor: pointer;
}
.translations-header .icon { width: 15px; height: 15px; color: var(--info); }
.translations-header .toggle-icon .icon { transition: transform var(--t); }
.translations-list { display: flex; flex-direction: column; gap: var(--sp-2); }
.translations-section:not(.expanded) .translations-list { display: none; }
.translations-section:not(.expanded) .translations-header .toggle-icon .icon { transform: rotate(-90deg); }
.translate-option {
  display: flex; align-items: center; gap: var(--sp-2); width: 100%;
  padding: 10px 12px; border-radius: var(--r-xs); font-size: var(--fs-sm); font-weight: var(--fw-medium);
  color: var(--ink); transition: background var(--t);
}
.translate-option:hover { background: var(--surface-2); }
.icon-translate .icon, .icon-dropdown .icon, .toggle-icon .icon { width: 15px; height: 15px; }
.icon-spinner .icon { width: 15px; height: 15px; animation: voc-spin .9s linear infinite; }

/* Dossiers */
/* .folder-card-grid est un CONTENEUR (grille), pas une carte : 1 colonne sur mobile, 2+ ensuite */
.folder-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--sp-3); }
.folder-card {
  display: flex; align-items: center; gap: var(--sp-3);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: var(--sp-4); box-shadow: var(--shadow-xs); cursor: pointer;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.folder-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.folder-card > .folder-actions { margin-top: 0; } /* carte horizontale : pas de décalage vertical */
.folder-icon { width: 40px; height: 40px; border-radius: var(--r-sm); flex: none; display: grid; place-items: center; background: var(--grad); color: #fff; }
.folder-icon .icon { width: 20px; height: 20px; }
.folder-icon--sm { width: 30px; height: 30px; border-radius: var(--r-xs); }
.folder-icon--sm .icon { width: 16px; height: 16px; }
.breadcrumb { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; margin-bottom: var(--sp-5); }
.breadcrumb__current { display: flex; align-items: center; gap: var(--sp-2); min-width: 0; }
.breadcrumb__name { font-size: var(--fs-lg); font-weight: var(--fw-extrabold); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.breadcrumb__actions { display: flex; gap: 6px; }
.folder-card-content { display: flex; align-items: center; gap: var(--sp-3); flex: 1; min-width: 0; }
.folder-info { flex: 1; min-width: 0; }
.folder-name { font-size: var(--fs-md); font-weight: var(--fw-bold); line-height: 1.25; word-break: break-word;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.folder-count { font-size: var(--fs-xs); color: var(--ink-3); font-weight: var(--fw-medium); }
.folder-card.expanded { border-color: var(--wine); }

/* Spinner générique dans le contenu injecté */
.loading-spinner {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2.5px solid color-mix(in srgb, var(--wine) 25%, transparent);
  border-top-color: var(--wine); animation: voc-spin .8s linear infinite;
}

/* ============================================================
   PAGE PROFIL
   ============================================================ */
.profile-section {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: var(--sp-5); box-shadow: var(--shadow-xs); margin-bottom: var(--sp-4);
}
.profile-section h2, .profile-section h3 { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-md); font-weight: var(--fw-bold); margin-bottom: var(--sp-4); }
.profile-section h2 .icon, .profile-section h3 .icon { flex: none; }
.input-field {
  width: 100%; background: var(--surface); border: 1.5px solid var(--line-strong);
  border-radius: var(--r-sm); padding: 12px 14px; font-size: var(--fs-base); color: var(--ink);
  transition: border-color var(--t), box-shadow var(--t);
}
.input-field:focus { outline: none; border-color: var(--wine); box-shadow: 0 0 0 3px color-mix(in srgb, var(--wine) 15%, transparent); }
.input-field:read-only { background: var(--surface-2); color: var(--ink-2); }

.plan-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--fs-sm); font-weight: var(--fw-extrabold); letter-spacing: .04em;
  padding: 6px 14px; border-radius: var(--r-full);
}
.plan-badge.free { background: var(--surface-2); color: var(--ink-2); }
.plan-badge.pro { background: var(--grad-amber); color: #fff; box-shadow: var(--shadow-amber); }

.reports-meter { margin: var(--sp-5) 0; }
.reports-meter__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--sp-2); }
.reports-meter__head span:first-child { font-weight: var(--fw-semibold); color: var(--ink-2); font-size: var(--fs-sm); }
.reports-meter__count { font-weight: var(--fw-bold); font-size: var(--fs-lg); color: var(--wine); font-variant-numeric: tabular-nums; }
#nextResetInfo { font-size: var(--fs-sm); color: var(--ink-3); margin-top: var(--sp-3); }

/* Liste des appareils */
#devicesList { display: flex; flex-direction: column; gap: var(--sp-2); }
.device-row {
  display: flex; align-items: center; gap: var(--sp-3);
  background: var(--surface-2); border-radius: var(--r-sm); padding: 12px 14px;
}
.device-row .icon { width: 20px; height: 20px; color: var(--wine); flex: none; }
.device-row__meta { flex: 1; min-width: 0; }
.device-row__meta b { font-size: var(--fs-sm); font-weight: var(--fw-bold); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.device-row__meta small { font-size: var(--fs-xs); color: var(--ink-3); }
.device-row .action-btn { flex: none; }
.device-banner { padding: 12px 14px; border-radius: var(--r-sm); background: var(--surface-2); margin-bottom: var(--sp-3); font-size: var(--fs-sm); }
.device-banner strong { color: var(--ink); }
.device-banner__warn { display: flex; align-items: center; gap: 6px; margin-top: 8px; padding: 8px 10px; border-radius: var(--r-xs); background: var(--warn-soft); color: var(--warn); font-size: var(--fs-xs); font-weight: var(--fw-semibold); }

#deleteAccountBtn {
  width: 100%; padding: 13px; border-radius: var(--r-sm);
  background: var(--bad-soft); color: var(--bad); border: 1px solid var(--bad-line);
  font-weight: var(--fw-bold); font-size: var(--fs-base); transition: background var(--t);
}
#deleteAccountBtn:hover { background: color-mix(in srgb, var(--bad) 12%, var(--surface)); }

/* Aliases boutons profil (compat) */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  padding: 13px 18px; border-radius: var(--r-sm); border: none;
  background: var(--grad); color: #fff; font-weight: var(--fw-bold); font-size: var(--fs-base);
  box-shadow: var(--shadow-wine); cursor: pointer; transition: transform var(--t);
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-danger {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  padding: 13px 18px; border-radius: var(--r-sm); border: none;
  background: var(--bad); color: #fff; font-weight: var(--fw-bold); font-size: var(--fs-base); cursor: pointer;
}

/* ============================================================
   TAB BAR (navigation mobile + desktop)
   ============================================================ */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-tabbar);
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  display: flex; align-items: center; justify-content: space-around;
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.tabbar__inner { width: 100%; max-width: var(--content-max); margin: 0 auto; display: flex; align-items: center; justify-content: space-around; }
.tab {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 11px; font-weight: var(--fw-semibold); color: var(--ink-2);
  padding: 6px 12px; border-radius: var(--r-sm); transition: color var(--t);
  background: none; flex: 1; max-width: 90px;
}
.tab .icon { width: 23px; height: 23px; }
.tab.active, .nav-btn.active { color: var(--wine); }
.tab-fab { flex: none; margin-top: -26px; }
.tab-fab__btn {
  width: 56px; height: 56px; border-radius: 50%; background: var(--grad);
  display: grid; place-items: center; box-shadow: var(--shadow-wine);
  border: 4px solid var(--ground); transition: transform var(--t);
}
.tab-fab__btn:active { transform: scale(.94); }
.tab-fab__btn .icon { width: 26px; height: 26px; color: #fff; }

/* Desktop : barre du haut visible, tab bar du bas masquée */
@media (min-width: 768px) {
  .tabbar { display: none !important; }
}
/* Mobile : 7 onglets sans le FAB -> compacts, chaque libellé sur une ligne */
@media (max-width: 767px) {
  .tab { padding: 6px 2px; max-width: none; font-size: 10px; gap: 2px; }
  .tab .icon { width: 21px; height: 21px; }
  .tab span:last-child { white-space: nowrap; }
}

/* ============================================================
   MODALS (via Utils.createModal)
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0; z-index: var(--z-modal);
  display: flex; align-items: center; justify-content: center; padding: var(--sp-4);
  background: rgba(30,10,18,.5); backdrop-filter: blur(4px);
  transition: opacity .2s ease;
}
.modal-content {
  width: 100%; max-width: 460px; max-height: 90vh; overflow-y: auto; overflow-x: hidden;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  animation: voc-pop var(--t) both;
}
.modal-body { overflow-x: hidden; }
.modal-header {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
  padding: var(--sp-5) var(--sp-5) var(--sp-3);
}
.modal-header h3 { font-size: var(--fs-xl); font-weight: var(--fw-extrabold); }
.modal-close {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-xs);
  background: var(--surface-2); color: var(--ink-3); font-size: 20px; line-height: 1;
  flex: none; transition: background var(--t), color var(--t);
}
.modal-close:hover { background: var(--bad-soft); color: var(--bad); }
.modal-body { padding: 0 var(--sp-5) var(--sp-5); }
.modal-body label { display: block; font-weight: var(--fw-semibold); font-size: var(--fs-sm); margin-bottom: 6px; color: var(--ink-2); }
.modal-footer { display: flex; gap: var(--sp-3); justify-content: flex-end; padding: 0 var(--sp-5) var(--sp-5); }
.modal-footer:empty { display: none; }
.modal-footer .btn-primary, .modal-footer .btn-secondary { flex: 1; }
.modal-input, .modal-textarea, .modal-body select {
  width: 100%; min-width: 0; max-width: 100%; background: var(--surface); border: 1.5px solid var(--line-strong);
  border-radius: var(--r-sm); padding: 12px 14px; font-size: var(--fs-base); color: var(--ink);
  transition: border-color var(--t), box-shadow var(--t);
}
/* iOS : neutralise la largeur intrinsèque des champs (surtout type=date/email) qui pousse la modale. Pas sur les <select> (garde la flèche). */
.modal-input { -webkit-appearance: none; appearance: none; }
.modal-input:focus, .modal-textarea:focus, .modal-body select:focus {
  outline: none; border-color: var(--wine); box-shadow: 0 0 0 3px color-mix(in srgb, var(--wine) 15%, transparent);
}
.modal-textarea { min-height: min(340px, 45vh); resize: vertical; line-height: 1.6; }

/* Fenêtre de lecture d'un rapport */
.report-view-meta {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 12px 14px; margin-bottom: var(--sp-4); font-size: var(--fs-sm); color: var(--ink-2);
}
.report-view-body {
  line-height: 1.7; font-size: var(--fs-md); color: var(--ink);
  max-height: 60vh; overflow-y: auto; padding-right: 4px;
  overflow-wrap: anywhere; word-break: break-word;
}
.report-view-body strong { color: var(--wine); }

.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  padding: 13px 18px; border-radius: var(--r-sm); border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink-2); font-weight: var(--fw-semibold); font-size: var(--fs-base);
  cursor: pointer; transition: background var(--t);
}
.btn-secondary:hover { background: var(--surface-2); }
.modal-hero-icon { width: 56px; height: 56px; border-radius: var(--r-md); display: grid; place-items: center; margin: 0 auto var(--sp-4); }
.modal-hero-icon .icon { width: 28px; height: 28px; }
.modal-hero-icon--danger { background: var(--bad-soft); color: var(--bad); }

/* Bulle explicative en haut de chaque page */
.page-hint{display:flex;gap:8px;align-items:flex-start;background:rgba(139,21,56,0.05);border:1px solid rgba(139,21,56,0.12);border-radius:12px;padding:12px 14px;margin:0 0 18px;font-size:14px;color:var(--ink-2,#5b5b5b);line-height:1.5;}
.page-hint>span{flex:1;}

/* Glisser-déposer d'un rapport dans un dossier */
.report-item-compact.is-draggable { cursor: grab; }
.report-item-compact.is-draggable:active { cursor: grabbing; }
.report-item-compact.is-dragging { opacity: .5; }
.folder-card.drop-target {
  border-color: var(--wine);
  border-style: dashed;
  background: color-mix(in srgb, var(--wine) 10%, var(--surface));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--wine) 18%, transparent);
}

/* Calendrier mensuel de l'agenda */
.voc-calendar {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: var(--sp-4); box-shadow: var(--shadow-xs); margin-bottom: var(--sp-4);
}
.voc-cal-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); margin-bottom: var(--sp-3); }
.voc-cal-title { font-size: var(--fs-md); font-weight: var(--fw-bold); text-transform: capitalize; letter-spacing: -.01em; }
.voc-cal-nav { min-height: 36px; padding: 6px 10px; }
.voc-cal-nav .icon { width: 16px; height: 16px; }
.voc-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.voc-cal-weekdays { margin-bottom: 4px; }
.voc-cal-weekday { text-align: center; font-size: var(--fs-xs); font-weight: var(--fw-bold); text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); padding: 4px 0; }
.voc-cal-cell {
  min-height: 72px; border: 1px solid var(--line); border-radius: var(--r-xs);
  background: var(--surface); padding: 4px; display: flex; flex-direction: column; gap: 3px;
  overflow: hidden;
}
.voc-cal-cell--empty { background: transparent; border-color: transparent; }
.voc-cal-cell--today { border-color: var(--wine); background: color-mix(in srgb, var(--wine) 7%, var(--surface)); }
.voc-cal-daynum { font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: var(--ink-3); }
.voc-cal-cell--today .voc-cal-daynum { color: var(--wine); font-weight: var(--fw-bold); }
.voc-cal-pills { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; min-height: 0; }
.voc-pill {
  display: block; width: 100%; text-align: left; font-size: 11px; font-weight: var(--fw-semibold);
  line-height: 1.3; padding: 2px 5px; border-radius: var(--r-full);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer;
}
.voc-pill--wine { background: color-mix(in srgb, var(--wine) 16%, transparent); color: var(--wine); }
.voc-pill--amber { background: color-mix(in srgb, var(--amber) 22%, transparent); color: var(--amber-deep); }
.voc-pill--neutral { background: var(--surface-2); color: var(--ink-2); }
.voc-pill:hover { filter: brightness(.96); }
@media (max-width: 560px) {
  .voc-cal-cell { min-height: 56px; }
  .voc-cal-weekday { font-size: 10px; }
  .voc-pill { font-size: 10px; padding: 1px 4px; }
}

/* Bulle flottante "essai Pro 7 jours" (compte Free) */
.trial-badge{position:fixed;right:18px;bottom:18px;z-index:900;display:flex;align-items:center;gap:8px;background:var(--wine);color:#fff;padding:12px 34px 12px 16px;border-radius:999px;box-shadow:0 8px 24px rgba(0,0,0,.22);cursor:pointer;font-size:14px;font-weight:600;max-width:300px;line-height:1.3;animation:trialPop .3s ease;}
.trial-badge:hover{filter:brightness(1.06);}
.trial-badge__text strong{font-weight:800;}
.trial-badge__close{position:absolute;top:6px;right:8px;background:rgba(255,255,255,.25);border:none;color:#fff;width:20px;height:20px;border-radius:50%;font-size:14px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;}
.trial-badge__close:hover{background:rgba(255,255,255,.45);}
@keyframes trialPop{from{transform:translateY(10px);opacity:0}to{transform:none;opacity:1}}
@media (max-width:520px){.trial-badge{left:12px;right:12px;max-width:none;justify-content:center;}}
/* Sur mobile, la tab bar occupe le bas : on remonte la bulle au-dessus */
@media (max-width:767px){.trial-badge{bottom:calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 12px);}}

/* ============================================================
   DEVIS (QuoteManager) — catalogue, éditeur, tableaux
   ============================================================ */
.devis-nav {
  display: flex; gap: var(--sp-2); flex-wrap: wrap;
  margin-bottom: var(--sp-4);
  border-bottom: 1px solid var(--line);
  padding-bottom: var(--sp-2);
}
.devis-tab {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: var(--r-xs, 8px);
  background: transparent; border: 1px solid transparent;
  color: var(--ink-2); font-weight: var(--fw-semibold, 600); font-size: var(--fs-sm);
  cursor: pointer; transition: background .15s, color .15s;
}
.devis-tab .icon { width: 16px; height: 16px; }
.devis-tab:hover { background: var(--surface-2); color: var(--ink); }
.devis-tab.is-active { background: var(--wine); color: #fff; border-color: var(--wine); }
.devis-tab svg { width: 16px; height: 16px; }

/* Bandeau « Devis détecté » proposé sur un brouillon de rapport */
.devis-suggest {
  display: flex; align-items: center; gap: 10px;
  margin-top: 10px; padding: 10px 12px;
  background: var(--surface-2); border: 1px solid var(--line);
  border-left: 3px solid var(--wine); border-radius: 10px;
}
.devis-suggest .ds-ic { font-size: 18px; line-height: 1; flex: 0 0 auto; }
.devis-suggest .ds-txt { flex: 1; font-size: 13.5px; color: var(--ink); }
.devis-suggest .ds-txt strong { color: var(--wine); }
@media (max-width: 480px) {
  .devis-suggest { flex-wrap: wrap; }
  .devis-suggest .ds-txt { flex-basis: 100%; }
}

/* ===== Réunion ===== */
.mtg-counts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.mtg-count { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 700; font-size: 16px; cursor: pointer; transition: background .15s, color .15s; }
.mtg-count:hover { background: var(--surface-2); }
.mtg-count.is-active { background: var(--wine); color: #fff; border-color: var(--wine); }
.mtg-count-input { width: 72px; text-align: center; }
.mtg-names { display: grid; gap: 8px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .mtg-names { grid-template-columns: 1fr 1fr; } }
.mtg-capture { margin-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.mtg-speakers { display: grid; gap: 10px; grid-template-columns: 1fr; margin-top: 4px; }
@media (min-width: 560px) { .mtg-speakers { grid-template-columns: 1fr 1fr; } }
.mtg-spk { display: flex; align-items: center; gap: 8px; }
.mtg-spk__tag { flex: 0 0 auto; font-size: 12px; font-weight: 700; color: var(--wine); background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.mtg-h { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--wine); margin: 18px 0 6px; }
.mtg-resume { font-size: 15px; color: var(--ink); background: var(--surface-2); border-left: 3px solid var(--wine); border-radius: 8px; padding: 12px 14px; }
.mtg-cr { font-size: 14.5px; color: var(--ink-2); line-height: 1.6; white-space: pre-wrap; }
.mtg-ul { margin: 6px 0 0; padding-left: 18px; }
.mtg-ul li { margin: 4px 0; color: var(--ink-2); }
.mtg-transcript { max-height: 440px; overflow-y: auto; padding-right: 6px; }
.mtg-line { padding: 6px 0; border-bottom: 1px solid var(--line); }
.mtg-line__who { display: inline-block; font-weight: 700; color: var(--wine); margin-right: 6px; }
.mtg-line__txt { color: var(--ink); }

/* ===== Profil — dashboard ===== */
.prof-hero {
  display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap;
  background: linear-gradient(135deg, var(--wine) 0%, var(--wine-deep) 100%);
  color: #fff; border-radius: var(--r-lg); padding: 22px 24px; margin-bottom: 22px;
  box-shadow: var(--shadow);
}
.prof-hero__badge {
  display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .06em;
  background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .45); color: #fff;
  padding: 3px 11px; border-radius: 999px;
}
.prof-hero__name { font-family: var(--font); font-size: 24px; letter-spacing: -.01em; font-weight: 700; margin-top: 10px; line-height: 1.1; }
.prof-hero__price { font-size: 15px; opacity: .95; margin-top: 3px; }
.prof-hero__meta { font-size: 12.5px; opacity: .82; margin-top: 6px; }
.prof-hero__cta { display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }
.btn--light { background: #fff; color: var(--wine); border: none; font-weight: 700; }
.btn--light:hover { background: var(--surface-2); }
.btn--light-ghost { background: rgba(255, 255, 255, .16); color: #fff; border: 1px solid rgba(255, 255, 255, .5); font-weight: 700; }

.prof-h { font-size: 15px; font-weight: 700; color: var(--ink); margin: 6px 0 12px; }

.prof-usage { display: grid; gap: 14px; grid-template-columns: 1fr; margin-bottom: 22px; }
@media (min-width: 560px) { .prof-usage { grid-template-columns: 1fr 1fr; } }
@media (min-width: 860px) { .prof-usage { grid-template-columns: 1fr 1fr 1fr; } }
.usage-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.usage-card__top { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink-2); font-size: 13.5px; }
.usage-card__ic { font-size: 18px; }
.usage-card__val { font-size: 26px; font-weight: 800; color: var(--ink); margin: 6px 0 10px; font-variant-numeric: tabular-nums; }
.usage-card__lim { font-size: 14px; font-weight: 600; color: var(--ink-3); }
.usage-card__hint { font-size: 12px; color: var(--ink-3); margin-top: 8px; }

.feat-grid { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .feat-grid { grid-template-columns: 1fr 1fr; } }
.feat { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.feat.is-off { opacity: .62; }
.feat__ic { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; }
.feat.is-on .feat__ic { background: rgba(16, 185, 129, .15); color: #059669; }
.feat.is-off .feat__ic { background: var(--surface-2); color: var(--ink-3); }
.feat__label { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.feat__note { font-size: 11.5px; color: var(--ink-3); margin-top: 1px; }

.prof-delete { background: none; border: none; color: #dc2626; font-size: 13px; cursor: pointer; text-decoration: underline; padding: 4px 0; }

.devis-table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.devis-table {
  width: 100%; border-collapse: collapse; font-size: var(--fs-sm);
  min-width: 560px;
}
.devis-table th {
  text-align: left; padding: 8px 10px; white-space: nowrap;
  background: var(--surface-2); color: var(--ink-2);
  font-size: 12px; text-transform: uppercase; letter-spacing: .03em;
  border-bottom: 2px solid var(--line-strong);
}
.devis-table td {
  padding: 7px 10px; border-bottom: 1px solid var(--line);
  color: var(--ink); vertical-align: middle;
}
.devis-table tbody tr:hover { background: var(--surface-2); }
.devis-table .ta-r, .ta-r { text-align: right; }
.devis-table--edit td { padding: 4px 6px; }

.devis-input {
  width: 100%; padding: 6px 8px; font-size: var(--fs-sm);
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: 6px;
}
.devis-input:focus {
  outline: none; border-color: var(--wine);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--wine) 15%, transparent);
}
.devis-input.ta-r { text-align: right; }
.devis-input--warn { border-color: var(--warn, #C77700); background: color-mix(in srgb, var(--warn, #C77700) 8%, var(--surface)); }

.devis-head-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-2) var(--sp-4); margin-bottom: var(--sp-4);
}
.devis-head-grid .field { margin-bottom: 0; }

.devis-warn {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px; margin-bottom: var(--sp-4);
  background: color-mix(in srgb, var(--warn, #C77700) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--warn, #C77700) 35%, transparent);
  border-radius: 10px; font-size: var(--fs-sm); color: var(--ink);
}
.devis-warn .icon { width: 20px; height: 20px; flex: none; color: var(--warn, #C77700); margin-top: 1px; }

.devis-totals {
  margin-top: var(--sp-4); margin-left: auto; width: 100%; max-width: 320px;
  display: flex; flex-direction: column; gap: 6px; font-size: var(--fs-md);
}
.devis-totals .row span { color: var(--ink-2); }
.devis-total-ttc {
  margin-top: 6px; padding-top: 8px; border-top: 2px solid var(--wine);
  font-size: 1.15rem;
}
.devis-total-ttc strong { color: var(--wine); }

@media (max-width: 520px) {
  .devis-head-grid { grid-template-columns: 1fr; }
  /* Sous-onglets (Nouveau rapport / Mes rapports, idem Devis & Réunion) :
     on garde les libellés visibles ; ils passent à la ligne si besoin. */
  .devis-tab { padding: 8px 12px; font-size: var(--fs-xs, 13px); }
}

/* ============================================================
   PAGE « CHOISIR UN PLAN » (modale comparatif d'offres)
   ============================================================ */
.plans-overlay{
  position:fixed; inset:0; z-index:9000;
  background:rgba(20,10,15,.55); backdrop-filter:blur(6px);
  display:flex; align-items:flex-start; justify-content:center;
  padding:40px 18px; overflow-y:auto;
  animation:plansFade .18s ease;
}
@keyframes plansFade{ from{opacity:0} to{opacity:1} }
.plans-modal{
  position:relative; width:100%; max-width:1000px;
  background:var(--surface); border-radius:22px;
  box-shadow:var(--shadow-lg); padding:34px 30px 30px;
  animation:plansUp .22s cubic-bezier(.2,.8,.25,1);
}
@keyframes plansUp{ from{opacity:0; transform:translateY(14px)} to{opacity:1; transform:none} }
.plans-close{
  position:absolute; top:16px; right:16px; width:38px; height:38px;
  border:none; border-radius:50%; background:var(--surface-2); color:var(--ink-2);
  cursor:pointer; display:grid; place-items:center; transition:.15s;
}
.plans-close:hover{ background:var(--surface-3); color:var(--ink); }
.plans-close svg{ width:18px; height:18px; }
.plans-title{ margin:0 0 6px; font-size:24px; font-weight:800; color:var(--ink); text-align:center; letter-spacing:-.01em; }
.plans-sub{ margin:0 0 26px; text-align:center; color:var(--ink-3); font-size:14px; }
.plans-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:14px; align-items:stretch; }

.plan-card{
  position:relative; display:flex; flex-direction:column;
  background:var(--surface); border:1.5px solid var(--surface-3);
  border-radius:16px; padding:22px 18px; transition:.18s;
}
.plan-card.is-feat{
  border-color:var(--wine);
  box-shadow:var(--shadow);
  background:linear-gradient(180deg, var(--wine-wash), transparent 60%), var(--surface);
}
.plan-card.is-current{ border-color:var(--ink-3); }
.plan-tag{
  position:absolute; top:-11px; left:50%; transform:translateX(-50%);
  background:var(--grad); color:#fff; font-size:10.5px; font-weight:800;
  letter-spacing:.06em; text-transform:uppercase; padding:4px 12px; border-radius:999px;
  white-space:nowrap; box-shadow:var(--shadow-sm);
}
.plan-name{ font-size:15px; font-weight:800; color:var(--ink); letter-spacing:.02em; }
.plan-price{ margin:8px 0 16px; font-size:26px; font-weight:800; color:var(--ink); line-height:1; }
.plan-price small{ font-size:12.5px; font-weight:600; color:var(--ink-3); margin-left:3px; }
.plan-feats{ list-style:none; margin:0 0 20px; padding:0; display:flex; flex-direction:column; gap:9px; flex:1; }
.plan-feats li{ position:relative; padding-left:22px; font-size:12.7px; line-height:1.35; color:var(--ink-2); }
.plan-feats li::before{
  content:""; position:absolute; left:0; top:2px; width:14px; height:14px; border-radius:50%;
  background:var(--wine) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4 4 10-10'/%3E%3C/svg%3E") center/9px no-repeat;
}
.plan-card.is-feat .plan-feats li::before{ background-color:var(--amber); }

.plan-cta{
  display:flex; align-items:center; justify-content:center; gap:6px;
  width:100%; padding:11px 12px; border-radius:10px; border:1.5px solid var(--wine);
  background:transparent; color:var(--wine); font-size:13.5px; font-weight:700;
  cursor:pointer; transition:.15s; text-decoration:none; text-align:center;
}
.plan-cta:hover{ background:var(--wine); color:#fff; }
.plan-cta.is-feat{ background:var(--grad); border-color:transparent; color:#fff; box-shadow:var(--shadow-sm); }
.plan-cta.is-feat:hover{ filter:brightness(1.06); }
.plan-cta.is-current{ border-color:var(--surface-3); background:var(--surface-2); color:var(--ink-3); cursor:default; }
.plan-cta.is-current svg{ width:15px; height:15px; }
.plan-cta.plan-cta--muted{ border-color:var(--surface-3); color:var(--ink-3); }
.plan-cta.plan-cta--muted:hover{ background:var(--surface-2); color:var(--ink); }

@media (max-width:860px){
  .plans-grid{ grid-template-columns:repeat(2,1fr); }
  .plans-modal{ padding:30px 18px 22px; }
}
@media (max-width:520px){
  .plans-grid{ grid-template-columns:1fr; }
  .plans-overlay{ padding:20px 12px; }
}

/* ============================================================
   ÉCRAN DE CONNEXION — refonte premium (split-screen)
   ============================================================ */
/* #loginPage garde son display piloté par le JS (block/none) ; le layout 2 colonnes
   vit sur .lgn__row pour ne jamais être écrasé par un style inline. */
/* Login = overlay plein écran qui recouvre l'app-shell (toujours présent en dessous). */
#loginPage.lgn{ position:fixed; inset:0; z-index:1000; overflow-y:auto; overflow-x:hidden; background:var(--ground);
  font-family:var(--font); }
/* Tant que le login est visible (pas de display:none inline posé par le JS après connexion),
   on masque l'app-shell : sinon il ajoute 100dvh vides scrollables en dessous. */
#loginPage.lgn:not([style*="display"]) ~ #appShell{ display:none !important; }
.lgn__row{ display:flex; min-height:100vh; min-height:100dvh; }
.lgn *{ box-sizing:border-box; }

/* --- Panneau marque (gauche) --- */
.lgn__brand{ flex:0 0 46%; position:relative; overflow:hidden; color:#fff;
  display:flex; align-items:center; justify-content:center; padding:56px 52px;
  background:
    radial-gradient(760px 420px at 84% -8%, rgba(176,30,75,.45), transparent 60%),
    linear-gradient(158deg, var(--wine) 0%, var(--wine-deep) 100%); }
.lgn__brand::after{ content:""; position:absolute; right:-70px; bottom:-80px; width:360px; height:360px; opacity:.06; pointer-events:none;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M15 17 L26 17 L33 47 Z' fill='white'/%3E%3Cpath d='M49 17 L38 17 L33 47 Z' fill='white'/%3E%3C/svg%3E") no-repeat center/contain; }
.lgn__brandinner{ position:relative; z-index:2; max-width:430px; }
.lgn__logo{ display:flex; align-items:center; gap:13px; margin-bottom:36px; }
.lgn__mark{ width:48px; height:48px; border-radius:13px; background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.22); display:grid; place-items:center; }
.lgn__mark svg{ width:56%; height:56%; }
.lgn__wm{ font-family:var(--font); font-size:27px; font-weight:600; letter-spacing:-.01em; }
.lgn__pitch{ font-family:var(--font); font-size:clamp(27px,3vw,37px); line-height:1.12; font-weight:600; margin:0 0 15px; }
.lgn__pitch em{ font-style:normal; color:#F0B9C9; }
.lgn__sub{ color:#E4C9C2; font-size:16px; line-height:1.55; margin:0 0 32px; }
.lgn__feats{ list-style:none; margin:0 0 34px; padding:0; display:flex; flex-direction:column; gap:14px; }
.lgn__feats li{ display:flex; align-items:center; gap:12px; font-size:14.5px; color:#F1DED8; }
.lgn__feats svg{ width:20px; height:20px; flex:0 0 auto; color:#F0B9C9; }
.lgn__wave{ display:flex; align-items:flex-end; gap:4px; height:34px; margin-bottom:32px; }
.lgn__wave i{ width:4px; height:8px; border-radius:3px; background:linear-gradient(rgba(255,255,255,.92),rgba(255,255,255,.42)); animation:lgnwave 1.15s ease-in-out infinite; }
@keyframes lgnwave{ 0%,100%{ height:7px } 50%{ height:30px } }
.lgn__endorse{ font-size:12px; letter-spacing:.1em; text-transform:uppercase; color:rgba(255,255,255,.6); }

/* --- Panneau formulaire (droite) --- */
.lgn__panel{ flex:1; display:flex; align-items:center; justify-content:center; padding:48px 34px; background:var(--ground); }
.lgn__form{ width:100%; max-width:384px; animation:lgnup .4s cubic-bezier(.2,.8,.25,1); }
@keyframes lgnup{ from{ opacity:0; transform:translateY(12px) } to{ opacity:1; transform:none } }
.lgn__mobilelogo{ display:none; align-items:center; gap:11px; margin-bottom:30px; }
.lgn__mobilelogo .m{ width:46px; height:46px; border-radius:12px; background:var(--wine); display:grid; place-items:center; box-shadow:var(--shadow-sm); }
.lgn__mobilelogo .m svg{ width:54%; height:54%; }
.lgn__mobilelogo .w{ font-family:var(--font); font-size:23px; font-weight:600; color:var(--wine-ink); }
.lgn__h1{ font-family:var(--font); font-size:29px; font-weight:600; color:var(--ink); margin:0 0 7px; letter-spacing:-.01em; }
.lgn__h1sub{ color:var(--ink-2); font-size:15px; margin:0 0 30px; }
.lgn .field{ margin:0 0 18px; }
.lgn__label{ display:block; font-size:11.5px; font-weight:700; letter-spacing:.05em; text-transform:uppercase; color:var(--ink-3); margin-bottom:8px; }
.lgn__input{ position:relative; display:flex; align-items:center; background:var(--surface); border:1.5px solid var(--line-strong); border-radius:13px; transition:border-color .16s, box-shadow .16s; }
.lgn__input:focus-within{ border-color:var(--wine-ink); box-shadow:0 0 0 3px color-mix(in srgb, var(--wine) 15%, transparent); }
.lgn__ic{ display:grid; place-items:center; width:46px; height:48px; color:var(--ink-3); flex:0 0 auto; }
.lgn__ic svg{ width:19px; height:19px; }
.lgn__field{ flex:1; min-width:0; border:none; background:transparent; outline:none; font-family:inherit; font-size:15px; color:var(--ink); padding:14px 6px 14px 0; }
.lgn__field::placeholder{ color:var(--ink-3); }
.lgn__eye{ background:none; border:none; cursor:pointer; width:46px; height:48px; display:grid; place-items:center; color:var(--ink-3); transition:color .15s; }
.lgn__eye:hover{ color:var(--wine-ink); }
.lgn__eye svg{ width:19px; height:19px; }
.lgn__eye .off{ display:none; }
.lgn__eye.on .on{ display:none; }
.lgn__eye.on .off{ display:block; }
#loginPage.lgn #forgotPasswordLink{ color:var(--wine-ink) !important; font-weight:600; text-decoration:none !important; }
#loginPage.lgn #forgotPasswordLink:hover{ text-decoration:underline !important; }
.lgn__submit{ width:100%; display:flex; align-items:center; justify-content:center; gap:9px; margin-top:6px;
  padding:15px; border:none; border-radius:13px; cursor:pointer; font-family:inherit; font-size:15.5px; font-weight:700; color:#fff;
  background:var(--wine); box-shadow:var(--shadow-wine); transition:filter .16s, transform .16s; }
.lgn__submit:hover{ filter:brightness(1.06); transform:translateY(-1px); }
.lgn__submit:active{ transform:translateY(0); }
.lgn__submit svg{ width:18px; height:18px; }
.lgn__foot{ text-align:center; font-size:14px; color:var(--ink-2); margin-top:24px; }
.lgn__foot a{ color:var(--wine-ink); font-weight:700; text-decoration:none; }
.lgn__foot a:hover{ text-decoration:underline; }
/* messages erreur/chargement hérités : on garde de la marge */
.lgn #errorMessage:not(:empty){ margin-top:14px; }
.lgn #loadingMessage{ margin-top:14px; justify-content:center; }

@media (max-width:860px){
  .lgn__row{ flex-direction:column; }
  .lgn__brand{ display:none; }
  .lgn__panel{ min-height:100vh; min-height:100dvh; padding:40px 24px; }
  .lgn__mobilelogo{ display:flex; }
}
@media (prefers-reduced-motion:reduce){
  .lgn__wave i{ animation:none; height:18px; }
  .lgn__form{ animation:none; }
}

/* ============================================================
   CRÉATION DE COMPTE (register) — réutilise .lgn
   ============================================================ */
.lgn__grid2{ display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.lgn__hint{ display:block; font-size:12px; color:var(--ink-3); margin-top:8px; }
/* Force du mot de passe (register.js pose .weak/.medium/.strong) */
.lgn .password-strength{ height:6px; border-radius:4px; background:var(--surface-3); margin-top:10px; position:relative; overflow:hidden; }
.lgn .password-strength::after{ content:""; position:absolute; left:0; top:0; bottom:0; width:0; border-radius:4px; transition:width .25s, background .25s; }
.lgn .password-strength.weak::after{ width:34%; background:#DC2626; }
.lgn .password-strength.medium::after{ width:67%; background:#D97706; }
.lgn .password-strength.strong::after{ width:100%; background:#16A34A; }
/* CGU */
.lgn__terms{ display:flex; align-items:flex-start; gap:11px; margin:6px 0 20px; font-size:13.5px; color:var(--ink-2); line-height:1.45; }
.lgn__terms input[type=checkbox]{ width:18px; height:18px; margin-top:1px; flex:0 0 auto; accent-color:var(--wine-ink); cursor:pointer; }
.lgn__terms a{ color:var(--wine-ink); font-weight:600; text-decoration:underline; }
/* Encart plan gratuit */
.lgn__free{ display:flex; gap:13px; align-items:flex-start; margin-top:22px; padding:16px 18px; background:var(--surface); border:1px solid var(--line); border-radius:14px; }
.lgn__free .fi{ font-size:22px; line-height:1; flex:0 0 auto; }
.lgn__free h3{ margin:0 0 9px; font-size:13.5px; font-weight:700; color:var(--wine-ink); }
.lgn__free ul{ margin:0; padding:0; list-style:none; display:grid; grid-template-columns:1fr 1fr; gap:6px 16px; }
.lgn__free li{ font-size:12.5px; color:var(--ink-2); display:flex; align-items:center; gap:6px; }
.lgn__free li::before{ content:"✓"; color:#16A34A; font-weight:800; }
/* Sélecteur de langue (haut-droite du panneau form) */
.lgn__panel{ position:relative; }
.lgn__lang{ position:absolute; top:18px; right:22px; z-index:5; }
/* Register : panneau form plus haut → la page scrolle, la marque reste collée */
.lgn__brand--sticky{ position:sticky; top:0; align-self:flex-start; height:100vh; }
.lgn__panel--scroll{ align-items:flex-start; padding-top:60px; padding-bottom:48px; }
.lgn__form--wide{ max-width:440px; }
@media (max-width:520px){ .lgn__grid2{ grid-template-columns:1fr; } .lgn__free ul{ grid-template-columns:1fr; } }

/* ============================================================
   POLISH RESPONSIVE MOBILE (préparation démo vidéo iPhone)
   ============================================================ */
/* Lisibilité + cibles tactiles (tous écrans) */
.feat__note { font-size: 12px; }
.plans-close { width: 40px; height: 40px; }

@media (max-width: 767px) {
  /* iOS Safari : police >=16px sur les champs pour bloquer le zoom auto au focus (recadrage disgracieux en démo) */
  .input-field, .modal-input, .modal-textarea,
  .modal-content input, .modal-content textarea, .modal-content select { font-size: 16px; }
  /* Cible tactile confortable pour les sous-onglets (Nouveau rapport / Mes devis / onglets fiche client…) */
  .devis-tab { min-height: 44px; }
  /* Hero plan : boutons pleine largeur quand la carte passe en colonne */
  .prof-hero__cta { width: 100%; }
  .prof-hero__cta > * { width: 100%; box-sizing: border-box; }
  /* Liens de bas de formulaire (login/register) : zone de tap élargie */
  .lgn__foot a { display: inline-block; padding: 8px 6px; }
}

/* ============================================================
   HUB D'ACCUEIL (cartes des outils)
   ============================================================ */
.hub{ max-width:1000px; margin:0 auto; }
.hub__hi{ text-align:center; margin:8px 0 34px; }
.hub__eyebrow{ font-family:var(--font-mono); font-size:11px; font-weight:600; letter-spacing:.14em; text-transform:uppercase; color:var(--ink-3); margin-bottom:10px; }
.hub__hi h1{ font-family:var(--font); font-size:clamp(28px,4vw,40px); font-weight:700; letter-spacing:-.02em; color:var(--ink); margin-bottom:6px; }
.hub__hi p{ color:var(--ink-2); font-size:16px; }
.hub__grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
@media (max-width:760px){ .hub__grid{ grid-template-columns:1fr; gap:12px; } }
.tool-card{ position:relative; aspect-ratio:1/1; border-radius:var(--r-lg); padding:24px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:18px; text-align:center; cursor:pointer;
  border:1px solid var(--line); background:var(--surface); transition:transform .18s, box-shadow .18s, border-color .18s; overflow:hidden; }
.tool-card:hover{ transform:translateY(-4px); box-shadow:var(--shadow); border-color:var(--wine-line); }
.tool-card__ic{ width:88px; height:88px; border-radius:var(--r-md); background:var(--grad); display:grid; place-items:center; box-shadow:var(--shadow-wine); flex:none; }
.tool-card__ic .icon{ width:44px; height:44px; color:#fff; }
.tool-card__kicker{ display:block; font-family:var(--font-mono); font-size:10.5px; font-weight:600; letter-spacing:.14em; text-transform:uppercase; color:var(--ink-3); margin-bottom:6px; }
.tool-card__txt b{ display:block; font-family:var(--font); font-size:21px; font-weight:700; color:var(--ink); }
.tool-card__txt small{ display:block; font-size:13.5px; color:var(--ink-2); line-height:1.45; margin-top:6px; }
.tool-card__go{ position:absolute; top:22px; right:22px; width:34px; height:34px; border-radius:50%; background:var(--surface-2); display:grid; place-items:center; color:var(--wine); transition:.18s; }
.tool-card__go .icon{ width:18px; height:18px; }
.tool-card:hover .tool-card__go{ background:var(--wine); color:#fff; }
.tool-card.is-locked .tool-card__ic{ background:var(--surface-3); box-shadow:none; }
.tool-card.is-locked .tool-card__ic .icon{ color:var(--ink-3); }
.tool-card.is-locked .tool-card__txt b, .tool-card.is-locked .tool-card__txt small{ opacity:.62; }
.tool-card__lock{ position:absolute; top:20px; right:20px; display:flex; align-items:center; gap:5px; background:var(--wine); color:#fff; font-size:11px; font-weight:800; padding:5px 11px; border-radius:999px; }
.tool-card__lock .icon{ width:12px; height:12px; }
.tool-card.is-locked .tool-card__go{ display:none; }
/* Mobile : cartes paysage compactes */
@media (max-width:760px){
  .tool-card{ aspect-ratio:auto; flex-direction:row; align-items:center; justify-content:flex-start; gap:16px; padding:18px 20px; text-align:left; }
  .tool-card__ic{ width:52px; height:52px; border-radius:16px; }
  .tool-card__ic .icon{ width:26px; height:26px; }
  .tool-card__txt{ flex:1; padding-right:38px; }
  .tool-card__txt b{ font-size:19px; }
  .tool-card__go{ top:50%; transform:translateY(-50%); }
  .tool-card:hover .tool-card__go{ transform:translateY(-50%); }
}
.hub__socle{ margin-top:30px; text-align:center; }
.hub__socle-lbl{ font-family:var(--font-mono); font-size:11px; font-weight:600; letter-spacing:.14em; text-transform:uppercase; color:var(--ink-3); margin-bottom:14px; text-align:center; }
/* Socle = barre segmentée (cellules séparées par des hairlines froides) */
.hub__socle-row{ display:inline-flex; justify-content:center; max-width:100%; border:1px solid var(--line); border-radius:var(--r-md); background:var(--surface); overflow:hidden; box-shadow:var(--shadow-xs); }
.socle-chip{ display:flex; align-items:center; gap:10px; padding:13px 22px; border:0; border-left:1px solid var(--line); border-radius:0; background:transparent; cursor:pointer; font-weight:600; color:var(--ink); text-align:left; transition:background .16s, color .16s; }
.socle-chip:first-child{ border-left:0; }
.socle-chip:hover{ background:var(--surface-2); color:var(--wine-ink); box-shadow:inset 2px 0 0 var(--wine); }
.socle-chip .icon{ width:19px; height:19px; color:var(--ink-3); transition:color .16s; }
.socle-chip:hover .icon{ color:var(--wine-ink); }
.socle-chip small{ display:block; font-weight:500; font-size:11.5px; color:var(--ink-3); }
@media (max-width:560px){
  .hub__socle-row{ display:flex; flex-direction:column; width:100%; }
  .socle-chip{ border-left:0; border-top:1px solid var(--line); }
  .socle-chip:first-child{ border-top:0; }
}

/* ============================================================
   BARRE MODULE (retour accueil + switcher) + BANDEAU QUOTA
   ============================================================ */
.modbar{ display:flex; align-items:center; gap:14px; flex-wrap:wrap;
  padding:10px clamp(16px,4vw,40px); background:var(--surface); border-bottom:1px solid var(--line); }
.modbar__back{ display:inline-flex; align-items:center; gap:4px; padding:7px 12px 7px 8px; border-radius:10px; font-weight:600; font-size:14px; color:var(--ink-2); background:var(--surface-2); }
.modbar__back:hover{ color:var(--wine); }
.modbar__back .icon{ width:17px; height:17px; }
.modbar__switch{ display:flex; gap:4px; align-items:center; flex-wrap:wrap; }
.modbar__chip{ display:inline-flex; align-items:center; gap:7px; padding:7px 14px; border-radius:10px; font-size:13.5px; font-weight:600; color:var(--ink-2); border:1px solid transparent; }
.modbar__chip .icon{ width:16px; height:16px; }
.modbar__chip:hover:not(.is-active){ background:var(--surface-2); color:var(--ink); }
.modbar__chip.is-active{ background:color-mix(in srgb,var(--wine) 10%,transparent); color:var(--wine); }
/* Mobile : la tab bar du bas gère le changement de module -> on ne garde que "Accueil". */
@media (max-width:767px){ .modbar__switch{ display:none; } }

.mod-quota{ margin-bottom:16px; }
.mod-quota:empty{ display:none; }
.mod-quota__card{ background:linear-gradient(135deg, var(--wine), var(--wine-deep)); color:#fff; border-radius:var(--r); padding:16px 20px; }
.mod-quota__card.is-pro{ background:var(--surface); color:var(--ink); border:1px solid var(--line); }
.mod-quota__row{ display:flex; align-items:center; gap:10px; font-size:15px; }
.mod-quota__row b{ font-weight:700; }
.mod-quota__ic{ font-size:18px; }
.mod-quota__cta{ margin-left:auto; background:rgba(255,255,255,.16); border:1px solid rgba(255,255,255,.4); color:#fff; font-weight:700; font-size:13px; padding:7px 14px; border-radius:9px; cursor:pointer; transition:.15s; }
.mod-quota__cta:hover{ background:rgba(255,255,255,.28); }
.mod-quota__bar{ height:7px; border-radius:5px; background:rgba(255,255,255,.25); margin-top:12px; overflow:hidden; }
.mod-quota__bar i{ display:block; height:100%; background:#fff; border-radius:5px; }

/* ============================================================
   AGENDA — vue 2 colonnes (liste scrollable + calendrier fixe)
   ============================================================ */
.agenda-split{ display:block; }
.agenda-cal{ margin-top:22px; }
@media (min-width:861px){
  .agenda-split{ display:grid; grid-template-columns:1fr 1fr; gap:22px; align-items:start; }
  /* Gauche : la liste des RDV scrolle indépendamment */
  .agenda-list{ max-height:calc(100dvh - 210px); overflow-y:auto; padding-right:6px; }
  /* Droite : le calendrier reste fixe pendant qu'on scrolle la liste */
  .agenda-cal{ position:sticky; top:16px; margin-top:0; }
}

/* ============================================================
   REGISTER — écran "Compte créé avec succès" (overlay plein écran)
   ============================================================ */
.success-modal-overlay{ position:fixed; inset:0; z-index:2000; display:flex; align-items:center; justify-content:center;
  padding:24px; background:var(--ground); overflow-y:auto; font-family:var(--font);
  animation:voc-pop .3s both; }
.success-modal-content{ background:var(--surface); border:1px solid var(--line); border-radius:var(--r-xl); box-shadow:var(--shadow-lg);
  max-width:440px; width:100%; padding:40px 32px; text-align:center; }
.success-animation{ display:none; }
.success-title{ font-family:var(--font); font-size:26px; font-weight:700; color:var(--ink); margin:4px 0 18px; letter-spacing:-.01em; }
.success-email-icon{ margin:0 auto 6px; line-height:0; }
.success-email-icon svg{ width:60px; height:60px; }
.success-message{ font-size:16px; font-weight:600; color:var(--ink); margin:14px 0 8px; }
.success-submessage{ font-size:14.5px; color:var(--ink-2); line-height:1.55; margin:0 0 24px; }
.success-button{ display:inline-flex; align-items:center; justify-content:center; gap:8px; width:100%; padding:15px;
  border:none; border-radius:13px; cursor:pointer; font-family:inherit; font-size:15.5px; font-weight:700; color:#fff;
  background:var(--wine); box-shadow:var(--shadow-wine); transition:filter .16s, transform .16s; }
.success-button:hover{ filter:brightness(1.06); transform:translateY(-1px); }
.success-note{ margin-top:20px; font-size:12.5px; color:var(--ink-3); display:flex; align-items:flex-start; gap:6px; justify-content:center; line-height:1.5; }
