/* ==========================================================================
   ELYT Travel — design system
   Charte : orange #ea682e, pêche, Moss #33411e, Island Fern #afad6c,
   Tidepool #a3c9cd, Palm Bark #503321 — Playfair Display (titres) + Lato.
   Style : chaleureux, rondeurs généreuses, rassurant, mobile-first.
   ========================================================================== */

:root {
  --orange: #ea682e;
  --orange-dark: #c9531d;
  --orange-text: #bf4e1a; /* liens & petits textes : contraste ≥ 4.5:1 sur fond crème */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --peach: #f6b47f;
  --peach-soft: #fbe3cd;
  --cream: #fdf6ee;
  --moss: #33411e;
  --fern: #afad6c;
  --tide: #a3c9cd;
  --bark: #503321;
  --ink: #2d221b;
  --ink-soft: #6f5d50;
  --line: #f0e2d6;
  --white: #ffffff;
  --ok: #4c7a3d;
  --err: #b3402a;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 10px 34px rgba(80, 51, 33, .10);
  --shadow-soft: 0 4px 16px rgba(80, 51, 33, .07);
  --font-title: "Playfair Display", Georgia, serif;
  --font-body: "Lato", "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-title); font-weight: 600; line-height: 1.18; color: var(--ink); }
h1 { font-size: clamp(2rem, 5.4vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.3rem); }
h3 { font-size: 1.22rem; }
p  { margin-bottom: 1rem; }
a  { color: var(--orange-text); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--orange-dark); }
img { max-width: 100%; display: block; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 22px; }
.section { padding: 74px 0; }
.section-alt { background: var(--white); }
.center { text-align: center; }
.eyebrow {
  display: inline-block; font-size: .8rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--orange); font-weight: 700; margin-bottom: .9rem;
}
.lead { font-size: 1.16rem; color: var(--ink-soft); max-width: 46rem; }
.center .lead { margin: 0 auto 1rem; }

/* ------------------------------------------------------------- Boutons --- */
.btn {
  display: inline-block; padding: 15px 32px; border-radius: 999px; border: 0;
  background: var(--orange); color: var(--white); font-family: var(--font-body);
  font-size: 1rem; font-weight: 700; cursor: pointer;
  box-shadow: 0 8px 22px rgba(234, 104, 46, .32);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { background: var(--orange-dark); color: var(--white); transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.97); }
.btn-ghost {
  background: transparent; color: var(--ink); box-shadow: none;
  border: 2px solid var(--peach);
}
.btn-ghost:hover { background: var(--peach-soft); color: var(--ink); }
.btn-sm { padding: 9px 20px; font-size: .9rem; }
.btn-danger { background: var(--err); box-shadow: none; }
.btn-danger:hover { background: #92311f; }

/* -------------------------------------------------------------- Header --- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(253, 246, 238, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
/* Le header occupe toute la largeur de l'écran, quel que soit le format */
.site-header .container { display: flex; align-items: center; gap: 26px; height: 76px; max-width: 100%; padding: 0 clamp(22px, 3vw, 56px); }
.logo { color: var(--ink); display: flex; align-items: center; }
.logo svg { height: 46px; width: auto; }
.logo:hover { color: var(--orange); }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; flex-wrap: nowrap; white-space: nowrap; }
.nav a { color: var(--ink); font-weight: 600; font-size: .97rem; padding: 6px 2px; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a.active { color: var(--orange); border-bottom-color: var(--peach); }
.nav a.btn {
  margin-left: 8px; color: var(--white); padding: 11px 24px;
  border-bottom: 0; font-size: .95rem; line-height: 1.2; white-space: nowrap;
}
.nav a.btn:hover { color: var(--white); background: var(--orange-dark); border-bottom: 0; }
.lang-switch { display: flex; gap: 2px; margin-left: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang-switch a { font-size: .78rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; color: var(--ink-soft); border-bottom: 0 !important; }
.lang-switch a.active { background: var(--peach-soft); color: var(--bark); }
.burger { display: none; margin-left: auto; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 26px; height: 3px; border-radius: 3px; background: var(--ink); margin: 5px 0; }

/* Écrans intermédiaires : on resserre au lieu de passer à la ligne */
@media (max-width: 1280px) {
  .nav { gap: 14px; }
  .nav a { font-size: .9rem; }
  .nav a.btn { padding: 10px 18px; }
}
@media (max-width: 1060px) {
  .burger { display: block; }
  .nav {
    display: none; position: absolute; top: 76px; left: 0; right: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    flex-direction: column; padding: 18px 22px 26px; gap: 14px; margin: 0;
    white-space: normal; align-items: stretch; text-align: center;
  }
  .nav.open { display: flex; }
  .nav .lang-switch { justify-content: center; margin: 6px auto 0; }
}

/* ---------------------------------------------------------------- Hero --- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(155deg, #f8c48e 0%, #f2a865 48%, var(--orange) 125%);
  color: var(--white); text-align: center; padding: 108px 0 122px;
}
.hero .container { position: relative; z-index: 3; }
.hero-bg { position: absolute; inset: 0; z-index: 1; }
.hero-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.6s ease; will-change: opacity, transform;
}
.hero-slide.is-active { opacity: 1; animation: kenburns 8s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.07); } }
.hero-scrim {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(160deg, rgba(214, 84, 24, .82) 0%, rgba(154, 66, 22, .62) 55%, rgba(60, 38, 24, .68) 130%);
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide.is-active { animation: none; }
  .hero-slide { transition: none; }
}
.hero h1 { color: var(--white); max-width: 17ch; margin: 0 auto 1.1rem; }
.hero .lead { color: rgba(255, 255, 255, .93); margin: 0 auto 2.2rem; }
.hero .btn { background: var(--white); color: var(--orange); box-shadow: 0 10px 30px rgba(80, 51, 33, .25); }
.hero .btn:hover { background: var(--cream); }
.hero .btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.65); }
.hero .btn-ghost:hover { background: rgba(255,255,255,.14); }
.hero-wave { position: absolute; bottom: -1px; left: 0; width: 100%; line-height: 0; }
.hero-wave svg { width: 100%; height: 72px; display: block; }

/* --------------------------------------------------------------- Cartes --- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }

.card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-soft);
  padding: 30px; border: 1px solid var(--line);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { margin-bottom: .55rem; }
.card .icon { margin-bottom: .9rem; display: block; color: var(--orange); }
.ico { vertical-align: -0.2em; flex-shrink: 0; }

.card-photo { padding: 0; overflow: hidden; display: flex; flex-direction: column; color: inherit; }
.card-photo .ph { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; }
.card-photo .ph-fallback {
  aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center;
  font-size: 2.6rem; color: var(--white);
  background: linear-gradient(140deg, var(--tide), var(--fern));
}
.card-photo .body { padding: 22px 24px 26px; }
.card-photo .tag {
  display: inline-block; background: var(--peach-soft); color: var(--bark);
  border-radius: 999px; font-size: .78rem; font-weight: 700; padding: 3px 12px; margin-bottom: .6rem;
}

/* --------------------------------------------------------------- Étapes --- */
.steps { counter-reset: step; }
.step { position: relative; padding: 30px 28px 26px; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-title); font-size: 2.6rem; color: var(--peach);
  display: block; margin-bottom: .4rem;
}

/* ----------------------------------------------------------- Avis, FAQ --- */
.stars { color: var(--orange); letter-spacing: 3px; font-size: 1.05rem; }
blockquote.review { font-size: 1.02rem; color: var(--ink-soft); font-style: italic; margin: .7rem 0; }
.review-author { font-weight: 700; color: var(--ink); }

details.faq {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 20px 26px; margin-bottom: 14px;
}
details.faq summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; list-style: none; position: relative; padding-right: 34px; }
details.faq summary::after { content: "+"; position: absolute; right: 2px; top: 0; color: var(--orange); font-size: 1.4rem; transition: transform .2s; }
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq p { margin: .9rem 0 0; color: var(--ink-soft); }

/* ---------------------------------------------------------- Formulaires --- */
.form { display: grid; gap: 16px; }
.form label { font-weight: 700; font-size: .92rem; display: block; margin-bottom: 6px; }
.form input, .form select, .form textarea {
  width: 100%; padding: 13px 16px; border: 2px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 1rem; color: var(--ink); background: var(--white);
  transition: border-color .15s;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--peach); }
.form textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.hint { font-size: .85rem; color: var(--ink-soft); }

.alert { padding: 15px 20px; border-radius: var(--radius-sm); margin-bottom: 18px; font-weight: 600; }
.alert-ok { background: #e8f2e2; color: var(--ok); }
.alert-err { background: #fbe4de; color: var(--err); }

/* Calendrier de réservation */
.cal-wrap { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; }
.cal { border: 2px solid var(--line); border-radius: var(--radius-sm); padding: 16px; background: var(--white); }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-head strong { font-size: 1.02rem; }
.cal-nav {
  border: 2px solid var(--line); background: var(--white); border-radius: 999px;
  width: 34px; height: 34px; font-size: 1.2rem; line-height: 1; cursor: pointer; color: var(--ink);
}
.cal-nav:hover { border-color: var(--peach); background: var(--peach-soft); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow { text-align: center; font-size: .74rem; font-weight: 900; color: var(--ink-soft); padding: 4px 0; }
.cal-day {
  aspect-ratio: 1; border: 0; background: transparent; border-radius: 50%;
  font-family: var(--font-body); font-size: .92rem; color: #c8bcb2; cursor: default;
}
.cal-day.has-slots {
  background: var(--peach-soft); color: var(--bark); font-weight: 900; cursor: pointer;
  transition: transform .12s, background .12s;
}
.cal-day.has-slots:hover { background: var(--peach); transform: scale(1.08); }
.cal-day.selected { background: var(--orange) !important; color: var(--white) !important; }

/* Créneaux de rendez-vous */
.slots { display: flex; flex-wrap: wrap; gap: 10px; }
.slots label {
  border: 2px solid var(--line); border-radius: 999px; padding: 9px 18px;
  cursor: pointer; font-weight: 600; font-size: .93rem; background: var(--white);
}
.slots input { display: none; }
.slots input:checked + span { color: var(--orange); }
.slots label:has(input:checked) { border-color: var(--orange); background: var(--peach-soft); }

/* ------------------------------------------------- Animations au scroll --- */
.js .reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity .55s var(--ease-out), transform .55s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.js .reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ------------------------------------------------------ WhatsApp flottant --- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 80;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff !important;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, .45);
  transition: transform .18s var(--ease-out), box-shadow .18s;
}
.wa-float:hover { transform: scale(1.08); box-shadow: 0 12px 30px rgba(37, 211, 102, .55); }
.wa-float:active { transform: scale(.96); }

/* --------------------------------------------------- Newsletter (footer) --- */
.nl-box {
  display: flex; gap: 22px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius-sm); padding: 22px 26px; margin-bottom: 30px;
}
.nl-form { display: flex; gap: 10px; flex-wrap: wrap; }
.nl-form input[type="email"] {
  padding: 11px 16px; border-radius: 999px; border: 0; min-width: 230px;
  font-family: var(--font-body); font-size: .95rem;
}
.nl-form .btn { white-space: nowrap; }

/* -------------------------------------------------- Wizard de réservation --- */
.wiz-progress { display: flex; gap: 8px; justify-content: center; margin-bottom: 26px; flex-wrap: wrap; }
.wiz-progress span {
  display: flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 999px;
  font-size: .85rem; font-weight: 700; color: var(--ink-soft);
  background: var(--white); border: 2px solid var(--line);
}
.wiz-progress span.done { border-color: var(--fern); color: var(--moss); }
.wiz-progress span.current { border-color: var(--orange); background: var(--peach-soft); color: var(--bark); }
.wiz-step { display: none; }
.wiz-step.active { display: grid; gap: 16px; animation: wiz-in .35s var(--ease-out); }
@keyframes wiz-in { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .wiz-step.active { animation: none; } }
.wiz-nav { display: flex; gap: 12px; justify-content: space-between; margin-top: 8px; }

/* ------------------------------------------------------ Bannière cookies --- */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90;
  max-width: 460px; margin: 0 auto;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow); padding: 18px 22px;
  display: none; gap: 12px; flex-wrap: wrap; align-items: center;
  font-size: .92rem;
}
.cookie-banner.visible { display: flex; animation: cookie-in .4s var(--ease-out); }
@keyframes cookie-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.cookie-banner p { margin: 0; flex: 1 1 240px; }
@media (prefers-reduced-motion: reduce) { .cookie-banner.visible { animation: none; } }

/* --------------------------------------------------------------- Footer --- */
.site-footer { background: var(--moss); color: #e9ead9; padding: 60px 0 34px; margin-top: 40px; }
.site-footer a { color: var(--peach); }
.site-footer .cols { display: grid; gap: 34px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin-bottom: 36px; }
.site-footer h3 { color: var(--white); font-size: 1.05rem; margin-bottom: .8rem; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: .5rem; }
.site-footer .legal { border-top: 1px solid rgba(255,255,255,.14); padding-top: 22px; font-size: .85rem; color: #c9cdb4; display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; }

/* ==========================================================================
   Espace client (mobile-first, rassurant)
   ========================================================================== */
.app-topbar { background: var(--white); border-bottom: 1px solid var(--line); }
.app-topbar .container { display: flex; align-items: center; height: 66px; gap: 18px; }
.app-topbar .logo svg { height: 38px; }
.app-topbar .who { margin-left: auto; font-size: .92rem; color: var(--ink-soft); }

.trip-cover {
  border-radius: var(--radius); padding: 40px 34px; color: var(--white); margin-bottom: 26px;
  background: linear-gradient(150deg, var(--peach), var(--orange));
  box-shadow: var(--shadow);
}
.trip-cover.hue-mer      { background: linear-gradient(150deg, var(--tide), #5f93a8); }
.trip-cover.hue-nature   { background: linear-gradient(150deg, var(--fern), var(--moss)); }
.trip-cover.hue-desert   { background: linear-gradient(150deg, var(--peach), var(--bark)); }
.trip-cover h1, .trip-cover h2 { color: var(--white); }
.trip-cover .ref { font-size: .8rem; letter-spacing: .16em; opacity: .85; text-transform: uppercase; }
.countdown { font-weight: 900; font-size: 1.06rem; }

.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 26px; }
.tabs a {
  white-space: nowrap; padding: 10px 20px; border-radius: 999px; font-weight: 700;
  color: var(--ink-soft); background: var(--white); border: 1px solid var(--line); font-size: .93rem;
}
.tabs a.active { background: var(--orange); border-color: var(--orange); color: var(--white); }

/* Timeline itinéraire */
.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 3px; border-radius: 3px; background: var(--peach-soft); }
.tl-day { margin-bottom: 26px; }
.tl-day > h3 { margin-bottom: 12px; }
.tl-item { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 20px; margin-bottom: 12px; }
.tl-item::before { content: ""; position: absolute; left: -24px; top: 22px; width: 11px; height: 11px; border-radius: 50%; background: var(--orange); border: 3px solid var(--cream); }
.tl-item .meta { font-size: .84rem; color: var(--ink-soft); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }

/* Contacts */
.contact-card { display: flex; flex-direction: column; gap: 4px; }
.contact-card.emergency { border: 2px solid var(--orange); background: #fff7f2; }
.contact-actions { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.contact-actions a {
  padding: 8px 16px; border-radius: 999px; font-size: .88rem; font-weight: 700;
  background: var(--peach-soft); color: var(--bark);
}

/* Messagerie */
.chat { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.msg { max-width: 78%; padding: 12px 18px; border-radius: 18px; font-size: .97rem; }
.msg.from-client { align-self: flex-end; background: var(--orange); color: var(--white); border-bottom-right-radius: 6px; }
.msg.from-concierge { align-self: flex-start; background: var(--white); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg .when { display: block; font-size: .72rem; opacity: .7; margin-top: 4px; }

/* Checklist */
.check-item { display: flex; align-items: center; gap: 12px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 13px 18px; margin-bottom: 10px; }
.check-item.done { opacity: .55; text-decoration: line-through; }
.check-item form { margin-left: auto; }

/* Badges statut */
.badge { display: inline-block; padding: 3px 13px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.badge-devis    { background: var(--peach-soft); color: var(--bark); }
.badge-confirme { background: #e8f2e2; color: var(--ok); }
.badge-en_cours { background: #e3eef0; color: #2e6b77; }
.badge-termine  { background: #eee9e4; color: var(--ink-soft); }
.badge-annule   { background: #fbe4de; color: var(--err); }
.badge-proposee { background: var(--peach-soft); color: var(--bark); }
.badge-demandee { background: #fdefd2; color: #8a6d1a; }
.badge-confirmee{ background: #e8f2e2; color: var(--ok); }
.badge-annulee  { background: #fbe4de; color: var(--err); }
.badge-terminee { background: #eee9e4; color: var(--ink-soft); }
.badge-nouveau  { background: #fdefd2; color: #8a6d1a; }
.badge-honore   { background: #e8f2e2; color: var(--ok); }

/* ==========================================================================
   Back office
   ========================================================================== */
.bo { display: grid; grid-template-columns: 235px 1fr; min-height: 100vh; background: #faf6f1; }
.bo-side { background: var(--moss); color: #e9ead9; padding: 26px 18px; }
.bo-side .logo { color: var(--white); margin-bottom: 30px; display: block; }
.bo-side .logo svg { height: 40px; }
.bo-side nav a {
  display: block; color: #d5d9c2; padding: 10px 14px; border-radius: 12px;
  font-weight: 600; font-size: .95rem; margin-bottom: 3px;
}
.bo-side nav a:hover { background: rgba(255,255,255,.09); color: var(--white); }
.bo-side nav a.active { background: var(--orange); color: var(--white); }
.bo-side .sep { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: #9aa77e; margin: 20px 14px 8px; }
.bo-main { padding: 34px 38px; min-width: 0; }
.bo-main h1 { font-size: 1.7rem; margin-bottom: 1.4rem; }
.bo-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 1.4rem; }
.bo-head h1 { margin-bottom: 0; }
.bo-head .btn { margin-left: auto; }

@media (max-width: 880px) {
  .bo { grid-template-columns: 1fr; }
  .bo-side { position: sticky; top: 0; z-index: 50; padding: 14px 16px; }
  .bo-side nav { display: flex; overflow-x: auto; gap: 4px; }
  .bo-side nav a { white-space: nowrap; }
  .bo-side .sep { display: none; }
  .bo-side .logo { margin-bottom: 8px; }
  .bo-main { padding: 24px 18px; }
}

.table-wrap { overflow-x: auto; background: var(--white); border-radius: var(--radius-sm); border: 1px solid var(--line); }
table.bo-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.bo-table th { text-align: left; padding: 13px 16px; background: var(--peach-soft); color: var(--bark); font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; }
.bo-table td { padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.bo-table tr:hover td { background: #fdf9f4; }

.stat-cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-bottom: 30px; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px 22px; }
.stat .n { font-family: var(--font-title); font-size: 2rem; color: var(--orange); line-height: 1; }
.stat .l { font-size: .88rem; color: var(--ink-soft); font-weight: 600; }

.bo-block { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 26px; margin-bottom: 26px; }
.bo-block > h2 { font-size: 1.2rem; margin-bottom: 1rem; }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.inline-form > div { flex: 1 1 140px; }
.mini { font-size: .84rem; color: var(--ink-soft); }

/* Auth */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; background: linear-gradient(155deg, #f8c48e, #f2a865 55%, var(--orange) 140%); }
.auth-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 42px 38px; width: 100%; max-width: 420px; }
.auth-card .logo { justify-content: center; margin-bottom: 22px; }
.auth-card .logo svg { height: 52px; }

/* ------------------------------------------------ Travel Board (client) --- */
.board { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); align-items: start; }
@media (max-width: 980px) { .board { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .board { grid-template-columns: 1fr; } }
.board .card h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 1.08rem; }
.board-wide { grid-column: span 2; }
@media (max-width: 640px) { .board-wide { grid-column: span 1; } }
.board-step { margin: 0 0 10px; line-height: 1.45; }
.doc-line { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; color: inherit; transition: border-color .15s, background .15s; }
.doc-line:hover { border-color: var(--orange); background: var(--peach-soft); }
.doc-line .dl { margin-left: auto; color: var(--orange); font-weight: 900; font-size: 1.15rem; }
.team-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
@media (max-width: 720px) { .team-grid { grid-template-columns: 1fr; } }
.team-line { display: flex; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 14px; }
.team-line img, .team-line .ini { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.team-line .ini { display: flex; align-items: center; justify-content: center; background: var(--peach-soft); color: var(--orange-text); font-weight: 800; font-size: 1.3rem; }
.board-sos { background: #fff6f3; border: 1px solid #f3c1ad; }
.sos-tel { font-weight: 800; color: var(--orange-text); }
.prep-bar { height: 10px; border-radius: 999px; background: var(--peach-soft); overflow: hidden; }
.prep-bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #f2a865, var(--orange)); transition: width .4s var(--ease-out); }
.pay-alert { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 18px; border: 1px solid var(--orange); background: var(--peach-soft); }

/* Barre d'administration (visible uniquement pour l'équipe connectée) */
.adminbar { position: fixed; top: 0; left: 0; right: 0; z-index: 90; display: flex; gap: 4px; align-items: center; background: #111; color: #eee; height: 36px; padding: 0 14px; font-size: 13px; font-family: var(--font-body); }
.adminbar a { display: inline-flex; gap: 6px; align-items: center; color: #ddd; padding: 4px 10px; border-radius: 6px; border-bottom: 0; font-weight: 600; }
.adminbar a:hover { background: #2c2c2c; color: #fff; }
.adminbar .ico { flex-shrink: 0; }
body.has-adminbar { padding-top: 36px; }
body.has-adminbar .site-header { top: 36px; }
@media (max-width: 700px) { .adminbar a span { display: none; } }

/* Bannière des pages libres */
.page-banner { position: relative; background-size: cover; background-position: center; padding: 110px 0 70px; }
.page-banner-scrim { position: absolute; inset: 0; background: linear-gradient(160deg, rgba(45,34,27,.55), rgba(45,34,27,.25)); }
.page-banner .container { position: relative; z-index: 2; }
.page-banner h1 { color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.35); }

/* Assistant IA (chatbot) — bouton empilé au-dessus du bouton WhatsApp */
.chatw-btn { position: fixed; right: 22px; bottom: 96px; z-index: 80; width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer; background: linear-gradient(135deg, #f2a865, var(--orange)); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 26px rgba(234, 104, 46, .4); transition: transform .18s ease; }
.chatw-btn:hover { transform: scale(1.08); }
.chatw-panel[hidden] { display: none !important; }
.chatw-panel { position: fixed; right: 22px; bottom: 164px; z-index: 85; width: min(370px, calc(100vw - 32px)); background: #fff; border-radius: 18px; box-shadow: 0 24px 70px rgba(80, 51, 33, .35); overflow: hidden; display: flex; flex-direction: column; max-height: min(560px, calc(100vh - 190px)); }
.chatw-head { display: flex; gap: 10px; align-items: center; padding: 14px 16px; background: linear-gradient(135deg, #f2a865, var(--orange)); color: #fff; line-height: 1.25; }
.chatw-head .ico { flex-shrink: 0; }
.chatw-sub { font-size: .78rem; opacity: .92; }
.chatw-badge { margin-left: auto; background: rgba(255,255,255,.25); border: 1px solid rgba(255,255,255,.5); font-size: .72rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; }
.chatw-x { background: none; border: 0; color: #fff; font-size: 1rem; cursor: pointer; padding: 4px; }
.chatw-msgs { padding: 14px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; flex: 1; min-height: 160px; background: var(--cream); }
.chatw-msg { max-width: 85%; padding: 9px 13px; border-radius: 14px; font-size: .92rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: break-word; }
.chatw-msg.from-bot { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; align-self: flex-start; }
.chatw-msg.from-me { background: var(--orange); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.chatw-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); background: #fff; }
.chatw-form input { flex: 1; border: 2px solid var(--line); border-radius: 999px; padding: 9px 16px; font-family: inherit; font-size: .93rem; outline: none; }
.chatw-form input:focus { border-color: var(--peach); }
.chatw-form .btn { padding: 9px 16px; }
.chatw-legal { margin: 0; padding: 7px 14px 10px; font-size: .72rem; color: var(--ink-soft); background: #fff; text-align: center; }
@media (max-width: 600px) { .chatw-btn { bottom: 88px; right: 16px; } .chatw-panel { right: 16px; bottom: 154px; } }

/* Panneau « Personnaliser » (équipe connectée) */
.cz-panel { position: fixed; top: 36px; right: 0; bottom: 0; width: min(360px, 92vw); z-index: 95; background: #fff; box-shadow: -12px 0 40px rgba(45, 34, 27, .18); font-family: var(--font-body); }
.cz-panel[hidden] { display: none !important; }
body.cz-on { padding-right: min(360px, 0px); } /* le panneau flotte, pas de décalage forcé */
.cz-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.cz-hint { font-size: .72rem; color: var(--ink-soft); line-height: 1.3; }
.cz-x { margin-left: auto; background: none; border: 0; font-size: 1rem; cursor: pointer; color: var(--ink-soft); }
.cz-body { flex: 1; overflow-y: auto; padding: 8px 16px 16px; }
.cz-body details { border-bottom: 1px solid var(--line); padding: 10px 0; }
.cz-body summary { cursor: pointer; font-weight: 800; font-size: .92rem; padding: 4px 0; }
.cz-row { display: flex; align-items: center; gap: 10px; margin: 10px 0; }
.cz-row label { font-size: .8rem; font-weight: 700; flex: 1; }
.cz-row input[type="color"] { width: 44px; height: 32px; border: 1px solid var(--line); border-radius: 8px; padding: 2px; background: #fff; cursor: pointer; }
.cz-row input:not([type="color"]), .cz-row textarea { width: 100%; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 9px; font-family: inherit; font-size: .85rem; }
.cz-row.cz-col { flex-direction: column; align-items: stretch; gap: 4px; }
.cz-note { font-size: .72rem; color: var(--ink-soft); margin: 6px 0 0; }
.cz-foot { padding: 12px 16px; border-top: 1px solid var(--line); background: #fff; }
.adminbar button { display: inline-flex; gap: 6px; align-items: center; color: #ddd; padding: 4px 10px; border-radius: 6px; background: none; border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.adminbar button:hover { background: #2c2c2c; color: #fff; }

/* Recherche intégrée vols & hôtels */
.fl-card { display: flex; gap: 18px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 22px; margin-bottom: 12px; box-shadow: var(--shadow-soft); }
.fl-legs { flex: 1; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.fl-leg { display: flex; flex-direction: column; gap: 2px; }
.fl-dir { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--orange-text); }
.fl-times { font-size: 1.05rem; }
.fl-arrow { color: var(--ink-soft); margin: 0 4px; }
.fl-price { text-align: right; display: flex; flex-direction: column; gap: 4px; align-items: flex-end; flex-shrink: 0; }
.fl-amount { font-family: var(--font-title); font-size: 1.6rem; font-weight: 700; color: var(--orange-text); }
@media (max-width: 640px) { .fl-card { flex-direction: column; align-items: stretch; } .fl-price { flex-direction: row; align-items: center; justify-content: space-between; } }
.ac-list { position: absolute; top: 100%; left: 0; right: 0; z-index: 40; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; max-height: 280px; overflow-y: auto; }
.ac-item { padding: 10px 14px; cursor: pointer; font-size: .92rem; border-bottom: 1px solid var(--peach-soft); }
.ac-item:last-child { border-bottom: 0; }
.ac-item:hover { background: var(--peach-soft); }
