/* ==========================================================
   WellnessTime Plugin — Styles
   ========================================================== */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=DM+Sans:wght@300;400;500&display=swap');

:root {
  --wt-dark:   #2E4A45;
  --wt-mid:    #4A6D67;
  --wt-light:  #7A9E99;
  --wt-pale:   #EAF1F0;
  --wt-cream:  #F7F4F0;
  --wt-sand:   #E0D8CE;
  --wt-text:   #2C2C2A;
  --wt-muted:  #6B7B78;
  --r:         6px;
  --rl:        12px;
}

.wt-page { font-family: 'DM Sans', sans-serif; color: var(--wt-text); }
.wt-page * { box-sizing: border-box; }
.wt-page a { text-decoration: none; color: inherit; }

/* ── MESSAGES ── */
.wt-msg { padding: 12px 16px; border-radius: var(--r); font-size: 14px; margin-bottom: 16px; }
.wt-msg-success { background: #e8f5ee; border: 1px solid #a8d8b8; color: #2a6040; }
.wt-msg-error   { background: #fdf0f0; border: 1px solid #e8b8b8; color: #8b2020; }
.wt-notice { padding: 14px 18px; border-radius: var(--r); margin-bottom: 24px; font-size: 14px; }
.wt-notice-warning { background: #fdf7e8; border: 1px solid #e8d8a8; color: #7a5a10; }

/* ── CHAMPS ── */
.wt-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.wt-field label { font-size: 13px; font-weight: 500; color: var(--wt-dark); }
.wt-field label span { color: var(--wt-mid); }
.wt-field input,
.wt-field select,
.wt-field textarea {
  border: 1.5px solid var(--wt-sand); border-radius: var(--r);
  padding: 11px 14px; font-size: 14px; font-family: 'DM Sans', sans-serif;
  color: var(--wt-text) !important; background: white; outline: none;
  transition: border-color .15s; width: 100%;
  -webkit-text-fill-color: var(--wt-text) !important;
}
.wt-field input:focus,
.wt-field select:focus,
.wt-field textarea:focus { border-color: var(--wt-mid); box-shadow: 0 0 0 3px rgba(74,109,103,.07); }
.wt-field textarea { resize: vertical; min-height: 100px; }
.wt-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wt-field-full { grid-column: 1 / -1; }
.wt-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

/* ── BOUTONS ── */
.wt-btn-submit {
  background: var(--wt-mid); color: white !important; border: none;
  border-radius: var(--r); padding: 13px 28px; font-size: 15px; font-weight: 500;
  cursor: pointer; width: 100%; margin-top: 8px; font-family: 'DM Sans', sans-serif;
  transition: background .15s; -webkit-text-fill-color: white !important;
}
.wt-btn-submit:hover { background: var(--wt-dark); }
.wt-btn-submit:disabled { background: var(--wt-sand); cursor: not-allowed; }
.wt-btn-save {
  background: var(--wt-mid); color: white !important; border: none;
  border-radius: var(--r); padding: 11px 24px; font-size: 14px; font-weight: 500;
  cursor: pointer; font-family: 'DM Sans', sans-serif; transition: background .15s;
  margin-top: 8px; -webkit-text-fill-color: white !important;
}
.wt-btn-save:hover { background: var(--wt-dark); }
.wt-btn-sec {
  background: white; color: var(--wt-muted) !important; border: 1.5px solid var(--wt-sand);
  border-radius: var(--r); padding: 9px 18px; font-size: 14px; cursor: pointer;
  font-family: 'DM Sans', sans-serif; transition: all .15s;
  -webkit-text-fill-color: var(--wt-muted) !important;
}
.wt-btn-sec:hover { border-color: var(--wt-mid); color: var(--wt-mid) !important; }

/* ── CHECK CGU ── */
.wt-check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 16px; padding: 14px; background: var(--wt-cream); border-radius: var(--r); }
.wt-check input[type="checkbox"] { width: 16px; height: 16px; margin-top: 2px; flex-shrink: 0; accent-color: var(--wt-mid); }
.wt-check label { font-size: 13px; color: var(--wt-muted); cursor: pointer; font-weight: 400; }
.wt-check a { color: var(--wt-mid); }
.wt-form-link { text-align: center; font-size: 13px; color: var(--wt-muted); margin-top: 12px; }
.wt-form-link a { color: var(--wt-mid); font-weight: 500; }

/* ── PAGE INSCRIPTION ── */
.wt-inscription-page .wt-form-wrap { display: grid; grid-template-columns: 1fr 340px; gap: 40px; max-width: 900px; margin: 0 auto; padding: 40px 0; }
.wt-form-left h1 { font-family: 'Cormorant Garamond', serif; font-size: 30px; font-weight: 600; color: var(--wt-dark); margin-bottom: 8px; }
.wt-form-sub { font-size: 14px; color: var(--wt-muted); margin-bottom: 24px; line-height: 1.7; }
.wt-promo-box { background: var(--wt-dark); border-radius: var(--rl); padding: 32px; }
.wt-promo-box h2 { font-family: 'Cormorant Garamond', serif; font-size: 36px; font-weight: 600; color: white; margin-bottom: 4px; }
.wt-promo-box p { font-size: 13px; color: var(--wt-light); margin-bottom: 20px; }
.wt-avantages { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.wt-avantages li { font-size: 13px; color: var(--wt-light); }

/* ── PAGE CONNEXION ── */
.wt-connexion-page .wt-login-wrap { display: flex; justify-content: center; padding: 60px 20px; }
.wt-login-box { background: white; border: 1.5px solid var(--wt-sand); border-radius: var(--rl); padding: 40px; width: 100%; max-width: 420px; }
.wt-login-box h1 { font-family: 'Cormorant Garamond', serif; font-size: 26px; font-weight: 600; color: var(--wt-dark); margin-bottom: 6px; }
.wt-login-box p { font-size: 14px; color: var(--wt-muted); margin-bottom: 24px; }
.wt-logo-mark { font-size: 32px; margin-bottom: 16px; }

/* ── DASHBOARD ── */
.wt-dashboard { max-width: 960px; margin: 0 auto; padding: 32px 0 64px; }
.wt-dash-header { display: flex; align-items: center; gap: 20px; margin-bottom: 28px; }
.wt-dash-avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--wt-mid); display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 600; color: white; overflow: hidden; flex-shrink: 0; }
.wt-dash-avatar img { width: 100%; height: 100%; object-fit: cover; }
.wt-dash-header h1 { font-family: 'Cormorant Garamond', serif; font-size: 26px; font-weight: 600; color: var(--wt-dark); margin-bottom: 4px; }
.wt-dash-header p { font-size: 14px; color: var(--wt-muted); }
.wt-dash-actions { display: flex; gap: 8px; margin-left: auto; }
.wt-dash-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 32px; }
.wt-dash-stat { background: white; border: 1.5px solid var(--wt-sand); border-radius: var(--rl); padding: 20px; text-align: center; }
.wt-ds-num { font-family: 'Cormorant Garamond', serif; font-size: 26px; font-weight: 600; color: var(--wt-dark); }
.wt-ds-lbl { font-size: 12px; color: var(--wt-muted); margin-top: 2px; }
.wt-dash-tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--wt-sand); margin-bottom: 28px; }
.wt-dtab { background: #f5f5f5 !important; color: var(--wt-muted) !important; -webkit-text-fill-color: var(--wt-muted) !important; border: 1.5px solid var(--wt-sand) !important; border-bottom: 2px solid transparent !important; border-radius: 6px 6px 0 0 !important; padding: 10px 20px !important; font-size: 14px !important; cursor: pointer !important; font-family: 'DM Sans', sans-serif !important; margin-bottom: -2px !important; transition: all .15s !important; }
.wt-dtab.active { background: white !important; color: var(--wt-mid) !important; -webkit-text-fill-color: var(--wt-mid) !important; border-bottom-color: var(--wt-mid) !important; font-weight: 500 !important; }
.wt-dtab-content { display: none; }
.wt-dtab-content.active { display: block; }

/* Séances éditables */
.wt-seance-row { display: grid; grid-template-columns: 1fr 100px 100px 120px 36px; gap: 8px; align-items: end; margin-bottom: 10px; }
.wt-seance-row input,
.wt-seance-row select { border: 1.5px solid var(--wt-sand); border-radius: var(--r); padding: 9px 12px; font-size: 13px; font-family: 'DM Sans', sans-serif; color: var(--wt-text) !important; -webkit-text-fill-color: var(--wt-text) !important; }
.wt-btn-remove-seance { background: none; border: 1.5px solid #e0b8b8; color: #cc3333 !important; border-radius: var(--r); width: 36px; height: 36px; cursor: pointer; font-size: 14px; }

/* Table RDV */
.wt-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.wt-table th { background: var(--wt-cream); padding: 10px 14px; text-align: left; font-weight: 500; color: var(--wt-dark); border-bottom: 1.5px solid var(--wt-sand); }
.wt-table td { padding: 12px 14px; border-bottom: 1px solid var(--wt-sand); color: var(--wt-text); vertical-align: top; }
.wt-table small { color: var(--wt-muted); font-size: 12px; }
.wt-btn-confirm { background: var(--wt-mid); color: white !important; border: none; border-radius: var(--r); padding: 5px 12px; font-size: 12px; cursor: pointer; margin-right: 4px; }
.wt-btn-cancel  { background: white; color: #cc3333 !important; border: 1px solid #e0b8b8; border-radius: var(--r); padding: 5px 12px; font-size: 12px; cursor: pointer; }
.wt-empty { color: var(--wt-muted); font-size: 14px; padding: 24px 0; text-align: center; }

/* Photo upload */
.wt-photo-wrap { display: flex; gap: 28px; align-items: flex-start; padding: 24px 0; }
.wt-photo-preview { width: 96px; height: 96px; border-radius: 50%; background: var(--wt-pale); display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 600; color: var(--wt-mid); overflow: hidden; flex-shrink: 0; }
.wt-photo-preview img { width: 100%; height: 100%; object-fit: cover; }

/* ── ANNUAIRE ── */
.wt-annuaire-page { max-width: 100%; }
.wt-annuaire-search { display: flex; gap: 8px; padding: 20px; background: var(--wt-cream); border-bottom: 1px solid var(--wt-sand); }
.wt-annuaire-search input { flex: 1; border: 1.5px solid var(--wt-sand); border-radius: var(--r); padding: 10px 14px; font-size: 14px; font-family: 'DM Sans', sans-serif; color: var(--wt-text) !important; -webkit-text-fill-color: var(--wt-text) !important; }
.wt-annuaire-search select { border: 1.5px solid var(--wt-sand); border-radius: var(--r); padding: 10px 14px; font-size: 14px; font-family: 'DM Sans', sans-serif; }
.wt-annuaire-search button { background: var(--wt-mid); color: white !important; -webkit-text-fill-color: white !important; border: none; border-radius: var(--r); padding: 10px 24px; font-size: 14px; font-weight: 500; cursor: pointer; font-family: 'DM Sans', sans-serif; }
.wt-annuaire-layout { display: grid; grid-template-columns: 1fr 360px; height: calc(100vh - 200px); min-height: 500px; }
#wt-google-map { width: 100%; height: 100%; }
.wt-annuaire-list { overflow-y: auto; background: var(--wt-cream); border-left: 1px solid var(--wt-sand); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.wt-results-count { font-size: 13px; color: var(--wt-muted); padding: 4px 0 8px; font-weight: 500; }
.wt-acard { background: white; border: 1.5px solid var(--wt-sand); border-radius: var(--rl); overflow: hidden; cursor: pointer; transition: all .2s; display: block; }
.wt-acard:hover { border-color: var(--wt-mid); box-shadow: 0 4px 16px rgba(74,109,103,.1); }
.wt-acard-top { height: 52px; background: var(--wt-pale); position: relative; }
.wt-acard-av { width: 44px; height: 44px; border-radius: 50%; border: 2px solid white; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; color: white; position: absolute; bottom: -16px; left: 14px; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.wt-acard-body { padding: 24px 14px 14px; }
.wt-acard-n { font-size: 14px; font-weight: 500; color: var(--wt-dark) !important; -webkit-text-fill-color: var(--wt-dark) !important; margin-bottom: 2px; }
.wt-acard-s { font-size: 12px; color: var(--wt-muted) !important; -webkit-text-fill-color: var(--wt-muted) !important; margin-bottom: 8px; }
.wt-acard-ft { display: flex; justify-content: space-between; font-size: 12px; color: var(--wt-muted) !important; -webkit-text-fill-color: var(--wt-muted) !important; border-top: 1px solid var(--wt-sand); padding-top: 8px; }
/* Google Maps info window */
.wt-info-window { font-family: 'DM Sans', sans-serif; font-size: 13px; min-width: 160px; }
.wt-info-window strong { display: block; font-size: 14px; color: var(--wt-dark); margin-bottom: 2px; }
.wt-info-window span { display: block; color: var(--wt-muted); margin-bottom: 2px; }
.wt-iw-link { display: block; color: var(--wt-mid); font-weight: 500; margin-top: 6px; }

/* ── PROFIL PUBLIC ── */
.wt-profil-page { }
.wt-cover { height: 220px; position: relative; overflow: hidden; }
.wt-cover-img { width: 100%; height: 100%; object-fit: cover; opacity: .4; }
.wt-profil-wrap { max-width: 1060px; margin: 0 auto; padding: 0 40px 64px; }
.wt-profil-head { display: flex; align-items: flex-end; justify-content: space-between; margin-top: -48px; margin-bottom: 28px; position: relative; z-index: 2; }
.wt-profil-head-l { display: flex; align-items: flex-end; gap: 20px; }
.wt-profil-avatar { width: 90px; height: 90px; border-radius: 50%; background: var(--wt-mid); border: 4px solid white; display: flex; align-items: center; justify-content: center; font-family: 'Cormorant Garamond', serif; font-size: 28px; font-weight: 600; color: white; overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,.12); flex-shrink: 0; }
.wt-profil-avatar img { width: 100%; height: 100%; object-fit: cover; }
.wt-profil-info { padding-bottom: 4px; }
.wt-profil-info h1 { font-family: 'Cormorant Garamond', serif; font-size: 26px; font-weight: 600; color: var(--wt-dark); margin-bottom: 4px; }
.wt-profil-spec { font-size: 14px; color: var(--wt-muted); margin-bottom: 8px; }
.wt-profil-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.wt-ptag { background: var(--wt-pale); color: var(--wt-mid) !important; -webkit-text-fill-color: var(--wt-mid) !important; border: 1px solid #c5dbd8; font-size: 12px; padding: 4px 12px; border-radius: 20px; }
.wt-profil-stats { display: flex; background: white; border: 1.5px solid var(--wt-sand); border-radius: var(--rl); overflow: hidden; margin-bottom: 32px; }
.wt-ps { flex: 1; padding: 18px 20px; text-align: center; border-right: 1px solid var(--wt-sand); }
.wt-ps:last-child { border-right: none; }
.wt-ps-n { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 600; color: var(--wt-dark); }
.wt-ps-l { font-size: 12px; color: var(--wt-muted); margin-top: 2px; }
.wt-profil-body { display: grid; grid-template-columns: 1fr 300px; gap: 28px; }
.wt-profil-tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--wt-sand); margin-bottom: 24px; }
.wt-ptab { background: #f5f5f5 !important; color: var(--wt-muted) !important; -webkit-text-fill-color: var(--wt-muted) !important; border: 1.5px solid var(--wt-sand) !important; border-bottom: 2px solid transparent !important; border-radius: 6px 6px 0 0 !important; padding: 9px 18px !important; font-size: 14px !important; cursor: pointer !important; font-family: 'DM Sans', sans-serif !important; margin-bottom: -2px !important; }
.wt-ptab.active { background: white !important; color: var(--wt-mid) !important; -webkit-text-fill-color: var(--wt-mid) !important; border-bottom-color: var(--wt-mid) !important; font-weight: 500 !important; }
.wt-ptab-content { display: none; }
.wt-ptab-content.active { display: block; }
.wt-bio-text { font-size: 14px; color: var(--wt-muted); line-height: 1.8; }
.wt-diplomes-text { font-size: 14px; color: var(--wt-muted); line-height: 2; }
.wt-seance-item { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border: 1.5px solid var(--wt-sand); border-radius: var(--rl); background: white; margin-bottom: 10px; }
.wt-si-nom { font-size: 15px; font-weight: 500; color: var(--wt-dark); margin-bottom: 3px; }
.wt-si-desc { font-size: 13px; color: var(--wt-muted); }
.wt-si-r { text-align: right; }
.wt-si-prix { font-family: 'Cormorant Garamond', serif; font-size: 20px; font-weight: 600; color: var(--wt-dark); }
.wt-si-dur { font-size: 12px; color: var(--wt-muted); margin-bottom: 6px; }
.wt-btn-rdv { background: var(--wt-mid); color: white !important; -webkit-text-fill-color: white !important; border: none; border-radius: var(--r); padding: 7px 14px; font-size: 12px; cursor: pointer; font-family: 'DM Sans', sans-serif; }
.wt-avis-item { padding: 18px; border: 1.5px solid var(--wt-sand); border-radius: var(--rl); background: white; margin-bottom: 10px; }
.wt-avis-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.wt-avis-av { width: 36px; height: 36px; border-radius: 50%; background: var(--wt-pale); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 500; color: var(--wt-mid); flex-shrink: 0; }
.wt-avis-name { font-size: 14px; font-weight: 500; color: var(--wt-dark); }
.wt-avis-stars { color: #C8A96A; font-size: 14px; margin-left: auto; }
.wt-avis-txt { font-size: 14px; color: var(--wt-muted); line-height: 1.7; font-style: italic; }
/* RDV Card */
.wt-rdv-card { background: white; border: 2px solid var(--wt-mid); border-radius: var(--rl); overflow: hidden; margin-bottom: 16px; }
.wt-rdv-head { background: var(--wt-mid); padding: 14px 18px; font-size: 14px; font-weight: 500; color: white !important; -webkit-text-fill-color: white !important; display: flex; justify-content: space-between; align-items: center; }
.wt-rdv-dispo { font-size: 12px; background: rgba(255,255,255,.2); color: white !important; -webkit-text-fill-color: white !important; padding: 3px 10px; border-radius: 20px; }
.wt-rdv-price { font-family: 'Cormorant Garamond', serif; font-size: 26px; font-weight: 600; color: var(--wt-dark); padding: 14px 18px 2px; }
.wt-rdv-sub { font-size: 12px; color: var(--wt-muted); padding: 0 18px 14px; }
.wt-rdv-body { padding: 0 18px 18px; border-top: 1px solid var(--wt-sand); padding-top: 16px; }
.wt-btn-rdv-submit { background: var(--wt-mid); color: white !important; -webkit-text-fill-color: white !important; border: none; border-radius: var(--r); padding: 12px; font-size: 14px; font-weight: 500; cursor: pointer; width: 100%; font-family: 'DM Sans', sans-serif; transition: background .15s; margin-top: 4px; }
.wt-btn-rdv-submit:hover { background: var(--wt-dark); }
/* Infos card */
.wt-infos-card { background: white; border: 1.5px solid var(--wt-sand); border-radius: var(--rl); overflow: hidden; }
.wt-info-row { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-bottom: 1px solid var(--wt-sand); font-size: 13px; }
.wt-info-row:last-of-type { border-bottom: none; }
.wt-ir-lbl { font-size: 11px; color: var(--wt-muted); margin-bottom: 1px; }
.wt-info-row div div:last-child { font-weight: 500; color: var(--wt-dark); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .wt-inscription-page .wt-form-wrap { grid-template-columns: 1fr; }
  .wt-promo-box { display: none; }
  .wt-field-row { grid-template-columns: 1fr; }
  .wt-form-grid { grid-template-columns: 1fr; }
  .wt-dash-stats { grid-template-columns: repeat(2,1fr); }
  .wt-seance-row { grid-template-columns: 1fr 80px 80px; }
  .wt-annuaire-layout { grid-template-columns: 1fr; grid-template-rows: 350px 1fr; }
  .wt-profil-body { grid-template-columns: 1fr; }
  .wt-profil-wrap { padding: 0 20px 40px; }
  .wt-dashboard { padding: 20px; }
}
