/* Iguana Bay — connexion, espace voyageur, espace propriétaire (palette version 1) */
.ibd, .ibd-auth {
  --ink: #1d3a40; --text: #3d5558; --muted: #71878a; --line: #dfe8e8; --bg: #eef3f3;
  --deep: #2f5a61; --deep-2: #24484e; --soft: #e3eeee; --ok: #1b6b4f; --ok-bg: #e2f3ea;
  --wait: #8a5a00; --wait-bg: #fdf0dc; --off: #8f2f26; --off-bg: #fbe5e2;
  --head: "Josefin Sans", "Outfit", sans-serif;
  color: var(--text); font-size: 15px; line-height: 1.55;
}
.ibd *, .ibd-auth * { box-sizing: border-box; }
.ibd { width: min(1180px, calc(100% - 2.5rem)); margin: 0 auto; padding: 2.2rem 0 5rem; }
.ibd a { color: var(--deep); }
.ibd-eyebrow { margin: 0 0 .3rem; font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); font-family: var(--head); }
.ibd h1, .ibd-auth h1 { font-family: var(--head); font-weight: 600; color: var(--ink); margin: 0; font-size: clamp(1.8rem, 3.4vw, 2.6rem); letter-spacing: 0; line-height: 1.1; }
.ibd-h2 { font-family: var(--head); font-weight: 600; color: var(--ink); font-size: 1.45rem; margin: 2.2rem 0 1rem; letter-spacing: 0; }
.ibd-h3 { font-family: var(--head); font-weight: 600; color: var(--ink); font-size: 1.08rem; margin: 1.4rem 0 .6rem; letter-spacing: 0; }
.ibd-muted { color: var(--muted); }
.ibd-small { font-size: .85rem; }
.ibd-count { font-size: .9rem; color: var(--muted); font-weight: 400; margin-left: .3rem; }

/* En-tête + navigation */
.ibd-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; padding-bottom: 1.4rem; border-bottom: 1px solid var(--line); }
.ibd-nav { display: flex; flex-wrap: wrap; gap: .35rem; }
.ibd-nav a { padding: .55rem 1rem; border-radius: 999px; text-decoration: none; color: var(--text); font-size: .9rem; border: 1px solid transparent; }
.ibd-nav a:hover { background: var(--soft); }
.ibd-nav a.is-on { background: var(--deep); color: #fff; }
.ibd-nav .ibd-logout { border-color: var(--line); color: var(--muted); }

/* Boutons, alertes, badges */
.ibd-btn, .ibd-auth .ibd-btn, .ibd .button.ibd-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .75rem 1.3rem; border-radius: 999px;
  background: var(--deep); color: #fff !important; border: 1px solid var(--deep); font: inherit; font-weight: 600; font-size: .9rem;
  text-decoration: none; cursor: pointer; transition: background .2s; height: auto; line-height: 1.2;
}
.ibd-btn:hover { background: var(--deep-2); }
.ibd-btn-line { background: #fff; color: var(--deep) !important; border-color: #c7d6d6; }
.ibd-btn-line:hover { background: var(--soft); }
.ibd-btn-danger { background: var(--off); border-color: var(--off); }
.ibd-link { font-weight: 600; text-decoration: none; }
.ibd-alert { padding: .8rem 1rem; border-radius: 12px; margin: 1rem 0; font-size: .92rem; background: var(--soft); color: var(--ink); }
.ibd-alert.ok { background: var(--ok-bg); color: var(--ok); }
.ibd-alert.err { background: var(--off-bg); color: var(--off); }
.ibd-alert.warn { background: var(--wait-bg); color: var(--wait); }
.ibd-alert.info { background: #e6eefc; color: #2b4c9b; }
.ibd-badge { display: inline-block; padding: .2rem .65rem; border-radius: 999px; font-size: .76rem; font-weight: 700; white-space: nowrap; }
.ibd-badge.is-ok { background: var(--ok-bg); color: var(--ok); }
.ibd-badge.is-wait { background: var(--wait-bg); color: var(--wait); }
.ibd-badge.is-off { background: var(--off-bg); color: var(--off); }

/* Cartes, listes */
.ibd-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1.4rem 1.5rem; }
.ibd-card .ibd-h3:first-child, .ibd-card .ibd-h2:first-child { margin-top: 0; }
.ibd-empty { background: #fff; border: 1px dashed #cddcdc; border-radius: 18px; padding: 2rem; text-align: center; }
.ibd-empty p { margin: 0 0 .6rem; }
.ibd-list { display: grid; gap: .6rem; }
.ibd-li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: .9rem 1.1rem; text-decoration: none; color: inherit; }
.ibd-li > div:first-child { display: grid; gap: .1rem; }
.ibd-li strong { color: var(--ink); }
.ibd-li-link:hover { border-color: #b8cccc; box-shadow: 0 6px 18px -12px rgba(0,0,0,.25); }
.ibd-li-end { display: flex; align-items: center; gap: .9rem; white-space: nowrap; }
.ibd-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }

/* Voyages (voyageur) */
.ibd-trips { display: grid; gap: 1rem; }
.ibd-trip { display: grid; grid-template-columns: 280px 1fr; background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.ibd-trip img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; }
.ibd-trip-body { padding: 1.3rem 1.5rem; display: grid; gap: .5rem; }
.ibd-trip-top { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.ibd-trip h3 { margin: .2rem 0 0; font-family: var(--head); font-weight: 600; color: var(--ink); font-size: 1.35rem; letter-spacing: 0; }
.ibd-dates { margin: 0; color: var(--text); }
.ibd-info { list-style: none; margin: .3rem 0; padding: .8rem 1rem; background: var(--bg); border-radius: 12px; display: grid; gap: .25rem; font-size: .9rem; }
.ibd-info strong { display: inline-block; min-width: 72px; color: var(--ink); }
.ibd-trip-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: .3rem; }
.ibd-total { font-size: 1.2rem; font-weight: 700; color: var(--ink); }
.ibd-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.ibd-actions-col { flex-direction: column; margin-top: 1rem; }

/* Tableaux */
.ibd-table-wrap { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.ibd-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.ibd-table th { text-align: left; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: .9rem 1rem; border-bottom: 1px solid var(--line); font-weight: 600; background: #fafcfc; }
.ibd-table td { padding: .85rem 1rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ibd-table tr:last-child td { border-bottom: 0; }

/* Formulaires */
.ibd-form { display: grid; gap: .9rem; }
.ibd-form label, .ibd-danger label { display: grid; gap: .35rem; font-size: .84rem; font-weight: 600; color: var(--ink); letter-spacing: 0; text-transform: none; font-family: inherit; }
.ibd-form input[type=text], .ibd-form input[type=email], .ibd-form input[type=password], .ibd-form input:not([type]), .ibd-danger input[type=number] {
  width: 100%; padding: .8rem .95rem; border: 1px solid #cddcdc; border-radius: 12px; background: #fbfdfd; font: inherit; font-weight: 400; color: var(--ink);
}
.ibd-form input:focus, .ibd-danger input:focus { outline: none; border-color: var(--deep); box-shadow: 0 0 0 3px rgba(47,90,97,.15); }
.ibd-check { display: flex !important; align-items: center; gap: .5rem; font-weight: 400 !important; grid-auto-flow: column; }
.ibd-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.ibd-span2 { grid-column: 1 / -1; }
.ibd-narrow { max-width: 680px; }
.ibd-hint { margin: -.3rem 0 0; font-size: .8rem; color: var(--muted); text-align: center; }

/* Propriétaire */
.ibd-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin: 1.6rem 0 .4rem; }
.ibd-kpi { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1.1rem 1.2rem; display: grid; gap: .2rem; }
.ibd-kpi span { font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ibd-kpi strong { font-family: var(--head); font-size: 1.6rem; color: var(--ink); font-weight: 600; }
.ibd-kpi em { font-style: normal; font-size: .84rem; color: var(--muted); }
.ibd-cols { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1rem; margin-top: 1rem; }
.ibd-moves { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.ibd-moves li { display: grid; grid-template-columns: 52px 1fr; gap: .9rem; align-items: center; }
.ibd-moves li > div { display: grid; }
.ibd-date { display: grid; place-items: center; background: var(--bg); border-radius: 12px; padding: .35rem 0; font-size: .74rem; text-transform: uppercase; color: var(--muted); }
.ibd-date b { font-size: 1.2rem; color: var(--ink); line-height: 1; }
.ibd-shortcuts { display: grid; gap: .6rem; }
.ibd-shortcuts a { display: grid; padding: .8rem 1rem; border-radius: 12px; background: var(--bg); text-decoration: none; }
.ibd-shortcuts a:hover { background: var(--soft); }
.ibd-shortcuts strong { color: var(--ink); }
.ibd-shortcuts span { font-size: .84rem; color: var(--muted); }
.ibd-filters { display: flex; justify-content: space-between; gap: .8rem; flex-wrap: wrap; margin-bottom: 1rem; }
.ibd-pills { display: inline-flex; gap: .3rem; padding: .3rem; background: #fff; border: 1px solid var(--line); border-radius: 999px; flex-wrap: wrap; }
.ibd-pills a { padding: .45rem .9rem; border-radius: 999px; text-decoration: none; color: var(--text); font-size: .86rem; }
.ibd-pills a.is-on { background: var(--deep); color: #fff; }
.ibd-detail { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1rem; align-items: start; }
.ibd-detail .ibd-h2 { margin-top: .6rem; }
.ibd-stay { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.ibd-stay > div { background: var(--bg); border-radius: 14px; padding: .8rem 1rem; display: grid; }
.ibd-stay span { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.ibd-stay strong { color: var(--ink); font-size: 1.05rem; }
.ibd-stay em { font-style: normal; font-size: .84rem; color: var(--muted); }
.ibd-quote { background: var(--bg); border-radius: 12px; padding: .8rem 1rem; margin: 0; }
.ibd-dl { display: grid; grid-template-columns: 1fr auto; gap: .45rem 1rem; margin: 0; }
.ibd-dl dt { color: var(--muted); } .ibd-dl dd { margin: 0; text-align: right; color: var(--ink); }
.ibd-strong { font-weight: 700; color: var(--ink) !important; border-top: 1px solid var(--line); padding-top: .45rem; }
.ibd-danger { margin-top: 1.2rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.ibd-danger summary { cursor: pointer; color: var(--off); font-weight: 600; }
.ibd-danger form { display: grid; gap: .8rem; margin-top: .8rem; }

/* Calendrier propriétaire (repris de l'admin) */
.ibd-cal .button { display: inline-flex; padding: .5rem 1rem; border-radius: 999px; border: 1px solid #c7d6d6; background: #fff; color: var(--deep); text-decoration: none; font-size: .88rem; }
.ibd-cal .button-primary { background: var(--deep); color: #fff; border-color: var(--deep); }
.ibd-cal .ibbc-help { border-radius: 12px; font-size: .9rem; }
.ibd-cal .ibbc-note input { padding: .55rem .8rem; border: 1px solid #cddcdc; border-radius: 10px; font: inherit; }
.ibd-cal .ibbc-grid { max-width: none; }
.ibd-cal .ibbc-bar { background: #fff; border-top: 1px solid var(--line); margin: 1rem -1.5rem -1.4rem; padding: 1rem 1.5rem; border-radius: 0 0 18px 18px; }
.ibd-cal .ibbc-month { border-color: var(--line); border-radius: 14px; }

/* Connexion */
.ibd-auth { display: grid; grid-template-columns: 1.05fr 1fr; min-height: calc(100vh - 80px); background: var(--bg); }
.ibd-auth-visual { position: relative; display: flex; align-items: flex-end; padding: clamp(2rem, 5vw, 4rem); color: #fff; background: linear-gradient(180deg, rgba(20,45,50,.05), rgba(20,45,50,.75)), var(--auth-bg) center / cover; }
.ibd-auth-visual h1 { color: #fff; }
.ibd-auth-visual p { max-width: 30rem; color: rgba(255,255,255,.9); margin: .8rem 0 0; }
.ibd-auth-visual .ibd-eyebrow { color: rgba(255,255,255,.8); }
.ibd-auth-card { align-self: center; justify-self: center; width: min(460px, calc(100% - 2.5rem)); margin: 2.5rem 0; background: #fff; border-radius: 22px; padding: 2rem 2rem 1.6rem; box-shadow: 0 30px 60px -36px rgba(20,50,55,.45); }
.ibd-auth-card h2 { font-family: var(--head); font-weight: 600; color: var(--ink); font-size: 1.5rem; margin: 1.3rem 0 .3rem; letter-spacing: 0; }
.ibd-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: .3rem; background: var(--bg); border-radius: 999px; }
.ibd-tabs a { text-align: center; padding: .6rem; border-radius: 999px; text-decoration: none; color: var(--text); font-weight: 600; font-size: .92rem; }
.ibd-tabs a.is-on { background: #fff; color: var(--ink); box-shadow: 0 2px 8px -3px rgba(0,0,0,.2); }
.ibd-auth .ibd-form { margin-top: 1.2rem; }
.ibd-or { display: flex; align-items: center; gap: .8rem; margin: 1.4rem 0 .2rem; color: var(--muted); font-size: .82rem; }
.ibd-or::before, .ibd-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.ibd-auth .ibd-row { font-size: .85rem; }
.ibd-auth .ibd-row a { color: var(--deep); }

/* Page de confirmation de réservation */
.ibb-thanks-account { margin: 1.4rem 0; padding: 1.1rem 1.3rem; border-radius: 14px; background: #e2f3ea; color: #1b4b3a; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.ibb-thanks-account p { margin: 0; }
.ibb-thanks-account .ibb-btn { background: #2f5a61; color: #fff !important; padding: .65rem 1.2rem; border-radius: 999px; text-decoration: none; font-weight: 600; }

@media (max-width: 960px) {
  .ibd-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ibd-cols, .ibd-detail { grid-template-columns: 1fr; }
  .ibd-trip { grid-template-columns: 1fr; }
  .ibd-trip img { min-height: 180px; max-height: 220px; }
  .ibd-auth { grid-template-columns: 1fr; min-height: 0; }
  .ibd-auth-visual { min-height: 220px; }
}
@media (max-width: 640px) {
  .ibd { width: calc(100% - 2rem); }
  .ibd-grid2, .ibd-stay { grid-template-columns: 1fr; }
  .ibd-li { flex-direction: column; align-items: flex-start; }
  .ibd-table thead { display: none; }
  .ibd-table, .ibd-table tbody, .ibd-table tr, .ibd-table td { display: block; width: 100%; }
  .ibd-table tr { padding: .6rem 0; border-bottom: 1px solid var(--line); }
  .ibd-table td { border: 0; padding: .3rem 1rem; }
  .ibd-table td[data-l]::before { content: attr(data-l); display: block; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
  .ibd-auth-card { padding: 1.5rem 1.2rem; }
}
.ibd-kpi strong .woocommerce-Price-amount, .ibd-kpi strong bdi { font: inherit; }

/* Virement bancaire */
.ibd-bank { margin: 1rem 0; padding: 1rem 1.1rem; border-radius: 14px; background: #fdf6e8; border: 1px solid #f0dfb8; font-size: .92rem; }
.ibd-bank > p { margin: 0 0 .8rem; color: #5c4510; }
.ibd-bank .ibd-dl dt { color: #7a6a45; }
.ibd-bank .ibd-dl dd { color: #1d2b2a; text-align: right; word-break: break-all; }
.ibd-bank code { font: 600 .86rem/1.3 ui-monospace, Menlo, monospace; background: #fff; padding: .15rem .4rem; border-radius: 6px; }
.ibd-bank-host { margin: 1rem 0; padding: 1rem; border-radius: 14px; background: #fdf6e8; border: 1px solid #f0dfb8; display: grid; gap: .8rem; }
.ibd-bank-host p { margin: 0; }
.ibd-bank-host .ibd-btn { width: 100%; }
.ibb-bank-thanks { max-width: 640px; margin: 1.5rem 0; }
.ibb-bank-thanks h2 { font-size: 1.25rem; margin: 0 0 .4rem; }
.ibb-bank-thanks .ibd-dl { display: grid; grid-template-columns: auto 1fr; gap: .45rem 1rem; margin: 0; }
.ibb-bank-thanks .ibd-dl dd { margin: 0; }

/* E-mails */
.ibd-row-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.ibd-row-head .ibd-h2 { margin-bottom: .2rem; }
.ibd-mail-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .8rem; margin-bottom: 1.6rem; }
.ibd-mail-card { display: grid; gap: .45rem; padding: 1rem 1.1rem; background: #fff; border: 1px solid var(--line, #d6e6e1); border-radius: 16px; text-decoration: none; color: inherit; transition: border-color .2s, box-shadow .2s, transform .2s; }
.ibd-mail-card:hover { border-color: #2f8f7a; box-shadow: 0 10px 30px -18px rgba(29,43,42,.4); transform: translateY(-1px); }
.ibd-mail-top { display: flex; justify-content: space-between; align-items: center; gap: .6rem; }
.ibd-toolbar { display: flex; gap: .6rem; flex-wrap: wrap; margin: 0 0 1rem; }
.ibd-toolbar input[type=search], .ibd-toolbar select { height: 42px; padding: 0 .9rem; border: 1px solid var(--line, #d6e6e1); border-radius: 12px; background: #fff; font: inherit; min-width: 200px; }
.ibd-toolbar .ibd-btn { height: 42px; padding-top: 0; padding-bottom: 0; }
.ibd-pager { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1rem; }
.ibd-mail-edit { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 1.2rem; align-items: start; }
.ibd-mail-edit textarea { min-height: 120px; }
.ibd-mail-preview { padding: 0 !important; overflow: hidden; position: sticky; top: 100px; }
.ibd-mail-preview-head { display: flex; justify-content: space-between; align-items: center; padding: .8rem 1.1rem; border-bottom: 1px solid var(--line, #d6e6e1); }
.ibd-mail-preview iframe { display: block; width: 100%; height: 720px; border: 0; background: #eef2f3; }
.ibd-mail-dialog { width: min(760px, calc(100vw - 2rem)); height: min(86vh, 900px); padding: 0; border: 0; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 80px -20px rgba(0,0,0,.45); }
.ibd-mail-dialog::backdrop { background: rgba(20,32,31,.45); }
.ibd-mail-dialog[open] { display: flex; flex-direction: column; }
.ibd-mail-dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .8rem 1.1rem; border-bottom: 1px solid #e1ebe8; }
.ibd-mail-dialog-head button { all: unset; cursor: pointer; font-size: 1.6rem; line-height: 1; padding: 0 .3rem; }
.ibd-mail-dialog iframe { flex: 1; width: 100%; border: 0; }
button.ibd-link { all: unset; cursor: pointer; color: #2f5a61; text-decoration: underline; }
@media (max-width: 900px) { .ibd-mail-edit { grid-template-columns: 1fr; } .ibd-mail-preview { position: static; } .ibd-mail-preview iframe { height: 560px; } }
.ibd-mailswitch { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; padding: .9rem 1.1rem; border-radius: 16px; margin: 0 0 1.2rem; border: 1px solid; }
.ibd-mailswitch.is-test { background: #fdf6e8; border-color: #f0dfb8; color: #5c4510; }
.ibd-mailswitch.is-live { background: #e8f5ef; border-color: #c4e3d4; color: #1b4b3a; }
.ibd-mailswitch-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: currentColor; }
.ibd-mailswitch.is-live .ibd-mailswitch-dot { background: #1f9d6b; box-shadow: 0 0 0 4px rgba(31,157,107,.18); }
.ibd-mailswitch.is-test .ibd-mailswitch-dot { background: #d79a1c; }
.ibd-mailswitch-txt { flex: 1; min-width: 220px; font-size: .92rem; }
