/* ==========================================================================
   Cap Lamandou — maquettes du nouveau module de réservation
   Feuille de style commune. Aucune dépendance externe.
   ========================================================================== */

:root {
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #f6f7f9;
  --white: #ffffff;

  --brand: #123a5a;
  --brand-2: #1b4f78;
  --sand: #ead9bb;
  --gold: #775926;
  --accent: #2aafea;

  --ok: #0f766e;
  --ok-bg: #e6f5f2;
  --warn: #b45309;
  --warn-bg: #fdf3e3;
  --danger: #b91c1c;
  --danger-bg: #fdecec;
  --info-bg: #eaf6fd;

  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.5;
}

a { color: var(--brand-2); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { margin: 0 0 .5rem; line-height: 1.25; font-weight: 600; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 .75rem; }

/* ---------- Bandeau "maquette" ---------- */
.mock-banner {
  background: var(--sand);
  color: var(--gold);
  font-size: .8rem;
  text-align: center;
  padding: .35rem 1rem;
  border-bottom: 1px solid #dcc9a5;
}
.mock-banner strong { font-weight: 700; }

/* ---------- En-tête client ---------- */
.site-header {
  background: var(--brand);
  color: #fff;
  padding: 1rem 1.5rem;
}
.site-header .inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand-name {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.brand-sub { font-size: .75rem; opacity: .8; letter-spacing: .12em; text-transform: uppercase; }
.lang-switch { font-size: .85rem; opacity: .9; }
.lang-switch a { color: #fff; }

/* ---------- Conteneurs ---------- */
.wrap { max-width: 1100px; margin: 0 auto; padding: 1.5rem; }
.wrap-narrow { max-width: 780px; margin: 0 auto; padding: 1.5rem; }

/* ---------- Cartes ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.card-tight { padding: 1rem; }
.card-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; margin-bottom: 1rem;
}
.card-head h2, .card-head h3 { margin: 0; }

/* ---------- Formulaire de recherche ---------- */
.search-card { border-top: 3px solid var(--accent); }
.search-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: .75rem;
  align-items: end;
}
@media (max-width: 900px) {
  .search-grid { grid-template-columns: 1fr 1fr; }
  .search-grid .btn { grid-column: 1 / -1; }
}

/* ---------- Champs ---------- */
label { display: block; font-size: .8rem; font-weight: 600; color: var(--muted); margin-bottom: .3rem; }
input[type="text"], input[type="date"], input[type="email"], input[type="tel"],
input[type="number"], select, textarea {
  width: 100%;
  padding: .6rem .7rem;
  border: 1px solid #cfd4dc;
  border-radius: 8px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid rgba(42, 175, 234, .35);
  border-color: var(--accent);
}
.field { margin-bottom: .9rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }
.hint { font-size: .78rem; color: var(--muted); margin-top: .25rem; }
.required { color: var(--danger); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .65rem 1.1rem;
  border-radius: 8px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-2); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #1f9ed6; }
.btn-light { background: #fff; border-color: #cfd4dc; color: var(--ink); }
.btn-light:hover { background: #f3f4f6; }
.btn-ghost { background: transparent; color: var(--brand-2); }
.btn-sm { padding: .4rem .7rem; font-size: .85rem; }
.btn-block { width: 100%; }

/* ---------- Cartes de chambre ---------- */
.room-card {
  display: grid;
  grid-template-columns: 260px 1fr 220px;
  gap: 1.25rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 1rem;
}
@media (max-width: 900px) {
  .room-card { grid-template-columns: 1fr; }
  .room-card .room-photo { height: 180px; }
}
.room-photo {
  background:
    linear-gradient(135deg, rgba(18,58,90,.85), rgba(42,175,234,.55)),
    repeating-linear-gradient(45deg, #dbe4ec 0 12px, #cfd9e3 12px 24px);
  min-height: 170px;
  display: flex; align-items: flex-end;
  color: #fff; padding: .75rem; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase;
}
.room-body { padding: 1rem 0; }
.room-body .amenities { color: var(--muted); font-size: .85rem; }
.room-price { padding: 1rem; text-align: right; border-left: 1px solid var(--line); }
@media (max-width: 900px) {
  .room-price { border-left: 0; border-top: 1px solid var(--line); text-align: left; }
}
.price-amount { font-size: 1.5rem; font-weight: 700; color: var(--brand); }
.price-unit { font-size: .8rem; color: var(--muted); }
.price-total { font-size: .85rem; color: var(--muted); margin-top: .25rem; }

/* ---------- Badges ---------- */
.badge {
  display: inline-block;
  padding: .15rem .5rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
}
.badge-direct { background: var(--info-bg); color: #0369a1; }
.badge-ota { background: #f3e8ff; color: #6b21a8; }
.badge-block { background: #f1f5f9; color: #475569; }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }

/* ---------- Étapes ---------- */
.steps { display: flex; gap: .5rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.step {
  display: flex; align-items: center; gap: .45rem;
  font-size: .85rem; color: var(--muted);
  padding: .4rem .7rem; border-radius: 999px; background: #fff; border: 1px solid var(--line);
}
.step .num {
  width: 1.35rem; height: 1.35rem; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: #eef1f4; color: var(--muted); font-size: .75rem; font-weight: 700;
}
.step.active { color: var(--brand); border-color: #bcd8ea; background: #f2f9fd; }
.step.active .num { background: var(--accent); color: #fff; }
.step.done .num { background: var(--ok); color: #fff; }

/* ---------- Récapitulatif ---------- */
.summary { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.summary-row {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .6rem .9rem; border-bottom: 1px solid var(--line); font-size: .9rem;
}
.summary-row:last-child { border-bottom: 0; }
.summary-row.total { background: #f8fafc; font-weight: 700; }
.summary-row span:first-child { color: var(--muted); }

/* ---------- Alertes ---------- */
.alert {
  border-radius: 8px; padding: .75rem 1rem; font-size: .9rem;
  border: 1px solid transparent; margin-bottom: 1rem;
}
.alert-info { background: var(--info-bg); border-color: #bae6fd; color: #075985; }
.alert-ok { background: var(--ok-bg); border-color: #b7e4dc; color: var(--ok); }
.alert-warn { background: var(--warn-bg); border-color: #f3d9ae; color: var(--warn); }
.alert-danger { background: var(--danger-bg); border-color: #f5c2c2; color: var(--danger); }

/* ---------- Layout admin ---------- */
.admin { display: flex; min-height: 100vh; }
.sidebar {
  width: 240px; flex: 0 0 240px;
  background: var(--brand); color: #fff;
  padding: 1.25rem 1rem;
}
.sidebar .brand { margin-bottom: 1.5rem; }
.sidebar .brand .name { font-weight: 700; letter-spacing: .05em; text-transform: uppercase; font-size: .95rem; }
.sidebar .brand .sub { font-size: .7rem; opacity: .7; letter-spacing: .12em; text-transform: uppercase; }
.nav { list-style: none; margin: 0; padding: 0; }
.nav li { margin-bottom: .2rem; }
.nav a {
  display: block; padding: .55rem .7rem; border-radius: 8px;
  color: rgba(255,255,255,.85); font-size: .9rem;
}
.nav a:hover { background: rgba(255,255,255,.08); text-decoration: none; color: #fff; }
.nav a.active { background: rgba(255,255,255,.14); color: #fff; font-weight: 600; }
.nav .sep { border-top: 1px solid rgba(255,255,255,.12); margin: .75rem 0; }

.admin-main { flex: 1; min-width: 0; }
.admin-topbar {
  background: #fff; border-bottom: 1px solid var(--line);
  padding: .8rem 1.5rem; display: flex; align-items: center; justify-content: space-between;
}
.admin-topbar .who { font-size: .85rem; color: var(--muted); }
.admin-content { padding: 1.5rem; }
@media (max-width: 800px) {
  .admin { flex-direction: column; }
  .sidebar { width: auto; flex: none; padding: .75rem 1rem; }
  .nav { display: flex; flex-wrap: wrap; gap: .25rem; }
  .nav .sep { display: none; }
}

/* ---------- KPI ---------- */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.25rem; }
@media (max-width: 900px) { .kpi-grid { grid-template-columns: 1fr 1fr; } }
.kpi {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem; box-shadow: var(--shadow);
}
.kpi .label { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.kpi .value { font-size: 1.7rem; font-weight: 700; color: var(--brand); line-height: 1.2; margin-top: .25rem; }
.kpi .delta { font-size: .78rem; color: var(--muted); }

/* ---------- Tables ---------- */
table.data { width: 100%; border-collapse: collapse; background: #fff; }
table.data th, table.data td {
  text-align: left; padding: .65rem .75rem; border-bottom: 1px solid var(--line);
  font-size: .88rem; vertical-align: middle;
}
table.data th { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: #fafbfc; }
table.data tr:hover td { background: #fafcfe; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }

/* ---------- Calendrier ---------- */
.cal { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .8rem; min-width: 780px; }
.cal th, .cal td { border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); padding: .35rem; }
.cal th { background: #fafbfc; color: var(--muted); font-weight: 600; font-size: .7rem; text-transform: uppercase; }
.cal th.room-col, .cal td.room-col { text-align: left; min-width: 150px; background: #fff; }
.cal th.weekend { background: #f3f6f9; }
.cal td.weekend { background: #fafcfe; }
.cal .avail { font-weight: 700; color: var(--brand); }
.cal .avail.low { color: var(--warn); }
.cal .avail.none { color: var(--danger); }
.cal .bar {
  display: block; height: 6px; border-radius: 3px; margin-top: .25rem;
}
.bar-direct { background: var(--accent); }
.bar-ota { background: #9333ea; }
.bar-block { background: #94a3b8; }
.legend { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .8rem; color: var(--muted); margin-bottom: .75rem; }
.legend .dot { display: inline-block; width: .65rem; height: .65rem; border-radius: 2px; margin-right: .3rem; }

/* ---------- Formulaire OTA ---------- */
.ota-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
@media (max-width: 700px) { .ota-grid { grid-template-columns: 1fr; } }
.ota-timer {
  display: flex; align-items: center; gap: .6rem;
  background: var(--warn-bg); color: var(--warn);
  border: 1px solid #f3d9ae; border-radius: 8px; padding: .65rem .9rem; font-size: .85rem;
}

/* ---------- Détail réservation ---------- */
.detail-grid { display: grid; grid-template-columns: 1fr 340px; gap: 1.25rem; align-items: start; }
@media (max-width: 900px) { .detail-grid { grid-template-columns: 1fr; } }
.definition { display: grid; grid-template-columns: 140px 1fr; gap: .35rem .75rem; font-size: .9rem; }
.definition dt { color: var(--muted); }
.definition dd { margin: 0; font-weight: 500; }

/* ---------- Divers ---------- */
.muted { color: var(--muted); }
.small { font-size: .82rem; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.flex { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.right { text-align: right; }
.hr { border: 0; border-top: 1px solid var(--line); margin: 1rem 0; }
.footer-note { color: var(--muted); font-size: .78rem; text-align: center; padding: 1.5rem; }

/* ---------- Accueil des maquettes ---------- */
.mock-index { max-width: 980px; margin: 0 auto; padding: 2rem 1.5rem; }
.mock-index .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 700px) { .mock-index .grid { grid-template-columns: 1fr; } }
.mock-link {
  display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem; box-shadow: var(--shadow);
}
.mock-link:hover { border-color: var(--accent); text-decoration: none; }
.mock-link .tag { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.mock-link .title { font-size: 1.05rem; font-weight: 600; color: var(--brand); margin: .2rem 0; }
.mock-link .desc { font-size: .85rem; color: var(--muted); }

/* Lien d'accueil dans l'en-tete */
.brand-link { color: #fff; text-decoration: none; display: block; }
.brand-link:hover { text-decoration: none; opacity: .9; }

.brand-logo { height: 44px; width: auto; display: block; }

/* Detail des prix dans les cartes de chambre */
.price-lines { margin-top: .45rem; font-size: .8rem; color: var(--muted); }
.price-lines .line { display: flex; justify-content: space-between; gap: .75rem; padding: .12rem 0; }
.price-lines .line.total { border-top: 1px solid var(--line); margin-top: .3rem; padding-top: .3rem; font-weight: 700; color: var(--ink); }

/* Photos des types de chambre */
.room-photo { position: relative; overflow: hidden; }
.room-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.room-thumb { width: 100%; height: 120px; object-fit: cover; border-radius: 8px; margin-bottom: .75rem; display: block; }

/* En-tete public aligne sur le site principal */
.public-header { background: #fff; border-bottom: 1px solid var(--line); }
.public-header .header-inner { max-width: 1100px; margin: 0 auto; padding: .9rem 1.5rem; display: flex; justify-content: center; }
.public-header .brand-logo { height: 54px; width: auto; display: block; }
.public-nav { background: #2aafea; }
.public-nav .nav-inner { max-width: 1100px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; }
.public-nav a { color: #fff; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; padding: .7rem .75rem; text-decoration: none; }
.public-nav a:hover { background: rgba(255,255,255,.14); text-decoration: none; }
.public-nav a.active { background: rgba(0,0,0,.12); }
.public-nav a.lang { margin-left: auto; }
@media (max-width: 640px) {
  .public-header .header-inner { padding: .6rem 1rem; }
  .public-header .brand-logo { height: 42px; }
  .public-nav .nav-inner { justify-content: flex-start; }
  .public-nav a { padding: .5rem .55rem; font-size: .7rem; }
  .public-nav a.lang { margin-left: 0; }
}

/* ==========================================================================
   Layout public aligne sur le site principal
   ========================================================================== */
body.public { background: #fff; font-family: "Open Sans", "Segoe UI", Roboto, Arial, sans-serif; }

.site-topbar { background: #f7f7f7; border-bottom: 1px solid #eee; font-size: .8rem; color: #777; }
.topbar-inner { max-width: 1100px; margin: 0 auto; display: flex; justify-content: flex-end; align-items: center; gap: 1.2rem; padding: .45rem 1.5rem; }
.topbar-place { opacity: .7; }
.topbar-langs { display: flex; gap: 1rem; }
.topbar-langs a { color: #777; display: flex; align-items: center; gap: .35rem; }
.topbar-langs a.active { color: #006c8e; font-weight: 600; }
.topbar-langs img { height: 14px; width: auto; }

.site-head { background: #fff; text-align: left; padding: 1rem 1.5rem .8rem; }
.head-inner { max-width: 1100px; margin: 0 auto; }
.site-logo { height: 54px; width: auto; }

.site-nav { background: #006c8e; }
.site-nav .nav-inner { max-width: 1100px; margin: 0 auto; display: flex; justify-content: flex-start; flex-wrap: wrap; }
.site-nav a { color: #fff; font-size: 12px; text-transform: uppercase; letter-spacing: .02em; font-weight: 600; padding: 20px 21px; border-right: 1px solid rgba(0,0,0,.1); text-decoration: none; }
.site-nav a:hover { background: rgba(0,0,0,.08); text-decoration: none; }
.site-nav a.active { background: rgba(0,0,0,.12); }

.site-footer { background: #535b6c; color: #fff; padding: 2.5rem 0 0; margin-top: 3rem; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.2fr 1.2fr 1fr; gap: 2rem; padding: 0 1.5rem 2rem; align-items: start; }
.footer-tripadvisor img { width: 120px; height: auto; }
.footer-info .footer-label { display: block; color: #fff; opacity: .5; font-size: .85rem; margin-bottom: .3rem; }
.footer-info strong { color: #fff; font-weight: 400; font-size: .9rem; line-height: 1.45; }
.footer-social { display: flex; flex-wrap: wrap; gap: .8rem; }
.footer-social a { color: #fff; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; }
.footer-social a:hover { opacity: .7; }
.footer-bottom { background: #484f5e; padding: .9rem 0; }
.footer-bottom-inner { max-width: 1100px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0 1.5rem; font-size: .78rem; color: rgba(255,255,255,.6); }
.footer-menu { display: flex; gap: 1rem; }
.footer-menu a, .footer-bottom a { color: rgba(255,255,255,.6); }
.footer-menu a:hover, .footer-bottom a:hover { color: #fff; }

@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .site-nav .nav-inner { justify-content: flex-start; }
  .site-nav a { padding: .6rem .7rem; font-size: .68rem; border-right: 0; }
  .topbar-inner { justify-content: center; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; }
  .site-logo { height: 44px; }
}
