/* Yalla Dahab · couleurs de la mer Rouge : bleu-vert profond, sable clair, corail.
   Toutes les couleurs passent par ces variables, redéfinies plus bas pour le mode sombre. */
:root {
  color-scheme: light;
  --bg: #faf8f4;
  --surface: #ffffff;
  --surface-2: #f3efe8;
  --ink: #14212b;
  --muted: #5a6770;
  --line: #e8e2d8;
  --primary: #0b6e78;
  --primary-strong: #08545c;
  --primary-soft: #e2f1f2;
  --on-primary: #ffffff;
  --accent: #e2583a;
  --accent-strong: #c8452a;
  --accent-soft: #fde9e2;
  --on-accent: #ffffff;
  --success: #16703f;
  --success-soft: #e2f4e9;
  --warn: #7a5a00;
  --warn-soft: #fff3cd;
  --danger: #b5402a;
  --whatsapp: #1c9f50;
  --whatsapp-strong: #158443;
  --photo-chip: rgba(255, 255, 255, .88);
  --header-bg: rgba(250, 248, 244, .82);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(20, 33, 43, .04), 0 6px 20px rgba(20, 33, 43, .06);
  --shadow-hover: 0 2px 4px rgba(20, 33, 43, .05), 0 14px 34px rgba(20, 33, 43, .12);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0d1418;
    --surface: #152027;
    --surface-2: #1c2a32;
    --ink: #e7edf0;
    --muted: #9badb6;
    --line: #26353e;
    --primary: #45bcc5;
    --primary-strong: #6fd0d7;
    --primary-soft: #12343a;
    --on-primary: #05262a;
    --accent: #f0694a;
    --accent-strong: #ff8466;
    --accent-soft: #3a1f18;
    --success: #6fd49b;
    --success-soft: #143323;
    --warn: #f3d27a;
    --warn-soft: #3a3013;
    --danger: #ff8f78;
    --photo-chip: rgba(13, 20, 24, .78);
    --header-bg: rgba(13, 20, 24, .8);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
    --shadow-hover: 0 2px 4px rgba(0, 0, 0, .35), 0 14px 34px rgba(0, 0, 0, .4);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d1418;
  --surface: #152027;
  --surface-2: #1c2a32;
  --ink: #e7edf0;
  --muted: #9badb6;
  --line: #26353e;
  --primary: #45bcc5;
  --primary-strong: #6fd0d7;
  --primary-soft: #12343a;
  --on-primary: #05262a;
  --accent: #f0694a;
  --accent-strong: #ff8466;
  --accent-soft: #3a1f18;
  --success: #6fd49b;
  --success-soft: #143323;
  --warn: #f3d27a;
  --warn-soft: #3a3013;
  --danger: #ff8f78;
  --photo-chip: rgba(13, 20, 24, .78);
  --header-bg: rgba(13, 20, 24, .8);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
  --shadow-hover: 0 2px 4px rgba(0, 0, 0, .35), 0 14px 34px rgba(0, 0, 0, .4);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-strong); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 800; }
h1 { font-size: clamp(1.8rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); }
h3 { font-size: 1.06rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--primary-soft); }

.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.section { padding: 44px 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.section-head h2 { margin: 0; }
.section-head a { font-weight: 600; text-decoration: none; }
.section-head a::after { content: " →"; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.lead { font-size: 1.1rem; }
.empty { padding: 36px; text-align: center; color: var(--muted); background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); grid-column: 1 / -1; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; cursor: pointer; text-decoration: none; text-align: center;
  background: var(--primary); color: var(--on-primary); font: inherit; font-weight: 700; letter-spacing: -.005em;
  padding: 12px 22px; border-radius: 999px; white-space: nowrap; min-height: 46px;
  transition: background-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { background: var(--primary-strong); color: var(--on-primary); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(11, 110, 120, .25); }
.btn:active { transform: translateY(0); }
.btn-small { padding: 8px 16px; font-size: .9rem; min-height: 38px; }
.btn-coral { background: var(--accent); color: var(--on-accent); }
.btn-coral:hover { background: var(--accent-strong); color: var(--on-accent); box-shadow: 0 6px 16px rgba(226, 88, 58, .3); }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { background: var(--whatsapp-strong); color: #fff; box-shadow: 0 6px 16px rgba(28, 159, 80, .3); }
.btn-block { display: flex; width: 100%; }
.btn-ghost { background: var(--surface-2); color: var(--ink); }
.btn-ghost:hover { background: var(--line); color: var(--ink); box-shadow: none; }
.link-button { background: none; border: 0; padding: 0; color: var(--primary); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* En-tête */
#site-header {
  background: var(--header-bg); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
  -webkit-backdrop-filter: saturate(160%) blur(12px); backdrop-filter: saturate(160%) blur(12px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-size: 1.2rem; font-weight: 800; letter-spacing: -.02em; color: var(--ink); text-decoration: none; }
.logo:hover { color: var(--ink); }
.logo b { color: var(--primary); }
.logo-mark { width: 34px; height: 34px; flex-shrink: 0; }
.main-nav { display: flex; align-items: center; gap: 6px; margin-inline-start: auto; }
.main-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 14px; border-radius: 999px; transition: background-color .2s var(--ease); }
.main-nav a:not(.btn):hover { background: var(--surface-2); }
.main-nav a[aria-current="page"]:not(.btn) { color: var(--primary); background: var(--primary-soft); }
.main-nav .btn { margin-inline-start: 8px; }
.lang-select { width: auto; margin: 0 0 0 6px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 7px 10px; font: inherit; font-size: .9rem; font-weight: 600; min-height: 38px; }
.theme-toggle {
  display: inline-grid; place-items: center; width: 38px; height: 38px; margin-inline-start: 6px; flex-shrink: 0;
  border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink); cursor: pointer;
  transition: background-color .2s var(--ease);
}
.theme-toggle:hover { background: var(--surface-2); }
.theme-toggle svg { width: 18px; height: 18px; }
.header-tools { display: flex; align-items: center; gap: 8px; }
.menu-toggle { display: none; background: var(--surface-2); border: 0; width: 44px; height: 44px; border-radius: 12px; font-size: 1.4rem; cursor: pointer; color: var(--ink); }

@media (max-width: 800px) {
  .menu-toggle { display: grid; place-items: center; }
  .main-nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 10px 16px 18px;
    box-shadow: 0 16px 30px rgba(20, 33, 43, .12);
  }
  .main-nav a:not(.btn) { padding: 13px 14px; font-size: 1rem; }
  .main-nav .btn { margin: 10px 0 0; }
  .main-nav .lang-select { margin: 12px 0 0; align-self: flex-start; }
  #site-header.open .main-nav { display: flex; }
}

/* Accueil */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  margin: 12px 12px 0; border-radius: 28px;
  background:
    radial-gradient(ellipse 60% 70% at 88% 8%, rgba(255, 170, 120, .55), transparent 60%),
    radial-gradient(ellipse 50% 60% at 0% 100%, rgba(40, 190, 190, .45), transparent 60%),
    linear-gradient(135deg, #073f49 0%, #0a6670 50%, #138a8c 100%);
  color: #fff; padding: 72px 0 64px;
}
.hero::after {
  /* vagues discrètes en bas du bandeau */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 70px; z-index: -1; opacity: .1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 90' preserveAspectRatio='none'%3E%3Cpath d='M0 50 Q150 10 300 50 T600 50 T900 50 T1200 50 V90 H0Z' fill='%23fff'/%3E%3Cpath d='M0 70 Q150 35 300 70 T600 70 T900 70 T1200 70 V90 H0Z' fill='%23fff'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
}
.hero h1 { max-width: 720px; color: #fff; }
.hero p { max-width: 580px; font-size: 1.15rem; color: rgba(255, 255, 255, .9); }
.search-box {
  margin-top: 32px; background: var(--surface); color: var(--ink); border-radius: 22px;
  box-shadow: 0 20px 50px rgba(4, 30, 36, .3);
  padding: 18px; display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 14px; align-items: end;
}
.search-box .btn { min-height: 48px; padding: 12px 28px; }
@media (max-width: 860px) { .search-box { grid-template-columns: 1fr 1fr; } .search-box .btn { grid-column: 1 / -1; } }
@media (max-width: 480px) {
  .hero { margin: 8px 8px 0; border-radius: 22px; padding: 44px 0 40px; }
  .search-box { grid-template-columns: 1fr; padding: 14px; }
}

label { display: block; font-size: .84rem; font-weight: 700; color: var(--muted); }
input, select, textarea {
  display: block; width: 100%; margin-top: 6px; padding: 11px 14px; font: inherit; font-weight: 500; color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-sm); min-height: 46px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
input:hover, select:hover, textarea:hover { border-color: var(--muted); }
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--primary); width: 18px; height: 18px; min-height: 0; }
label.check { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); cursor: pointer; }
label.check input { width: 18px; margin: 0; box-shadow: none; }

.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.why div { background: var(--surface); padding: 24px; border-radius: var(--radius); box-shadow: var(--shadow); }
.why p { margin: 0; color: var(--muted); }
.why .icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--primary-soft); font-size: 1.45rem; margin-bottom: 14px; }
@media (max-width: 760px) { .why { grid-template-columns: 1fr; } }

.host-cta {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, var(--accent-soft), var(--primary-soft));
  border-radius: 24px; padding: 36px 40px;
  display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.host-cta h2 { margin-bottom: 6px; }
.host-cta p { margin: 0; max-width: 560px; color: var(--muted); }
@media (max-width: 480px) { .host-cta { padding: 26px 22px; } .host-cta .btn { white-space: normal; width: 100%; } }

/* Grilles et cartes */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 24px; }
.card {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
  position: relative; color: inherit; text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
a.card:hover { color: inherit; transform: translateY(-4px); box-shadow: var(--shadow-hover); }
a.card .photo img { transition: transform .5s var(--ease); }
a.card:hover .photo img { transform: scale(1.04); }
.card-body { padding: 16px 18px 18px; }
.card-body h3 { margin: 0 0 4px; }
.card-meta { font-size: .84rem; color: var(--muted); margin: 0 0 6px; font-weight: 500; }
.price { margin: 8px 0 0; color: var(--muted); }
.price strong { font-size: 1.08rem; color: var(--ink); }

.photo {
  position: relative; overflow: hidden;
  aspect-ratio: 4 / 3; display: flex; align-items: flex-end; padding: 12px;
  background:
    radial-gradient(circle at 75% 25%, hsla(45, 100%, 75%, .9) 0 10%, transparent 11%),
    linear-gradient(180deg, hsl(var(--h), 70%, 72%) 0 55%, hsl(calc(var(--h) + 10), 60%, 45%) 55% 70%, hsl(38, 55%, 78%) 70%);
}
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo span {
  position: relative; background: var(--photo-chip); color: var(--ink); border-radius: 999px; padding: 4px 12px;
  font-size: .78rem; font-weight: 700; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.photo span:empty { display: none; }

.badge { display: inline-block; font-size: .74rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink); vertical-align: middle; }
.badge-verified { background: var(--success-soft); color: var(--success); }
.listing-card .badge-verified { position: absolute; top: 12px; inset-inline-start: 12px; z-index: 1; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
.badge-featured { background: var(--accent-soft); color: var(--accent-strong); }

/* Bannières pub */
.banners { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin: 28px 0; }
.banner {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 22px 22px 24px; border-radius: var(--radius); text-decoration: none; color: #fff;
  background: linear-gradient(120deg, hsl(var(--h), 65%, 36%), hsl(calc(var(--h) + 40), 70%, 50%));
  box-shadow: var(--shadow); transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
a.banner:hover { color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.banner-label { position: absolute; top: 8px; inset-inline-end: 12px; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; opacity: .8; }
.banner-body { display: flex; flex-direction: column; }
.banner-body strong { font-size: 1.1rem; }
.banner-cta { white-space: nowrap; font-weight: 700; background: rgba(255, 255, 255, .2); padding: 9px 14px; border-radius: 999px; }
.banner-empty { background: transparent; color: var(--muted); border: 2px dashed var(--line); box-shadow: none; }
.banner-empty strong { color: var(--ink); }
a.banner-empty:hover { color: var(--muted); border-color: var(--primary); box-shadow: none; }
.banner-empty .banner-cta { background: var(--surface-2); color: var(--ink); }
@media (max-width: 480px) { .banner { flex-direction: column; align-items: flex-start; } }

/* Page logements */
.listings-layout { display: grid; grid-template-columns: 270px 1fr; gap: 28px; align-items: start; }
.filters { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; display: grid; gap: 14px; position: sticky; top: 88px; }
@media (max-width: 860px) {
  .listings-layout { grid-template-columns: 1fr; }
  .filters { position: static; grid-template-columns: 1fr 1fr; }
  .filters .check, .filters .filter-actions { grid-column: 1 / -1; }
}
.filter-actions { display: flex; gap: 8px; }
.filter-actions .btn { flex: 1; }

/* Fiche logement */
.back { display: inline-flex; align-items: center; margin: 22px 0 14px; text-decoration: none; font-weight: 600; }
.gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; border-radius: 22px; overflow: hidden; }
.gallery .photo { aspect-ratio: auto; min-height: 150px; }
.gallery .photo:first-child { grid-row: 1 / 3; min-height: 320px; }
@media (max-width: 600px) { .gallery { grid-template-columns: 1fr; grid-template-rows: auto; border-radius: 18px; } .gallery .photo:not(:first-child) { display: none; } .gallery .photo:first-child { min-height: 240px; } }
.more-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-top: 10px; }
.more-photos:empty { display: none; }
.more-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); }
.listing-layout { display: grid; grid-template-columns: 1fr 360px; gap: 40px; margin: 28px 0 56px; align-items: start; }
@media (max-width: 860px) { .listing-layout { grid-template-columns: 1fr; gap: 28px; } }
.amenities { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.amenities li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 14px; font-weight: 500; }
.amenities li::before { content: "✓"; display: inline-grid; place-items: center; width: 22px; height: 22px; margin-inline-end: 8px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-weight: 800; font-size: .8rem; }
.wifi-pill { display: inline-block; background: var(--primary-soft); color: var(--primary); border-radius: 999px; padding: 5px 14px; font-weight: 700; }
.contact-box { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-hover); padding: 24px; position: sticky; top: 88px; display: grid; gap: 14px; }
.contact-box .price { margin: 0; font-size: 1.05rem; }
.contact-box .price strong { font-size: 1.5rem; }
.date-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.share { display: flex; flex-wrap: wrap; gap: 6px 14px; border-top: 1px solid var(--line); padding-top: 14px; font-size: .9rem; }
.share strong { width: 100%; }

/* Agenda */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.tabs button {
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); padding: 9px 16px; border-radius: 999px;
  font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer; transition: all .2s var(--ease);
}
.tabs button:hover { border-color: var(--primary); }
.tabs button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.events-grid { display: grid; gap: 18px; }
.home-events { grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); }
.event-card { display: flex; }
.event-card .card-body { flex: 1; }
.event-card h3 { margin-top: 10px; }
.event-card p { margin: 4px 0; }
.event-card.is-featured { box-shadow: 0 0 0 2px var(--accent), var(--shadow); }
.event-card.highlight { animation: pulse 1.6s ease 2; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(226, 88, 58, .35); } }
.event-date {
  width: 80px; flex-shrink: 0; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(180deg, hsl(var(--h), 55%, 40%), hsl(calc(var(--h) + 30), 60%, 52%));
}
.event-date span { font-size: 1.9rem; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.event-date small { text-transform: uppercase; font-weight: 700; letter-spacing: .06em; margin-top: 4px; }
.promo-strip { margin-top: 28px; background: var(--surface-2); border-radius: var(--radius); padding: 18px 22px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.promo-strip p { margin: 0; }

/* Formulaires hôtes et pub */
.page-head { padding: 44px 0 12px; }
.page-head p { max-width: 680px; color: var(--muted); font-size: 1.08rem; }
.form-layout { display: grid; grid-template-columns: 1fr 330px; gap: 36px; align-items: start; padding-bottom: 56px; }
@media (max-width: 860px) { .form-layout { grid-template-columns: 1fr; } }
.form-card { background: var(--surface); border-radius: 22px; box-shadow: var(--shadow); padding: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-card .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-card { grid-template-columns: 1fr; padding: 20px; } }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-top: 10px; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 12px; }
.steps li { counter-increment: step; display: flex; gap: 12px; align-items: flex-start; }
.steps li::before { content: counter(step); flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: var(--on-primary); display: grid; place-items: center; font-weight: 800; font-size: .9rem; }
.side-card { background: var(--surface-2); border-radius: 22px; padding: 24px; }
.side-card + .side-card { margin-top: 16px; }

.offers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 22px 0; }
@media (max-width: 760px) { .offers { grid-template-columns: 1fr; } }
.offer { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); padding: 24px; display: flex; flex-direction: column; gap: 8px; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.offer:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.offer .amount { font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; color: var(--primary); }
.offer .btn { margin-top: auto; white-space: normal; }
.notice { background: var(--accent-soft); color: var(--accent-strong); border-radius: var(--radius); padding: 14px 18px; font-weight: 600; }
.total { font-size: 1.2rem; }

/* Pied de page */
#site-footer { background: #0c1a20; color: #b9c7ce; margin-top: 56px; padding: 44px 0 36px; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 18px 24px; }
.footer-inner strong { color: #fff; font-size: 1.1rem; }
.footer-inner p { margin: 6px 0 0; }
.footer-inner nav { display: flex; gap: 8px 22px; flex-wrap: wrap; align-items: flex-start; }
.footer-inner a { color: #fff; text-decoration: none; font-weight: 600; }
.footer-inner a:hover { color: #7fd6dc; }
.demo-note { grid-column: 1 / -1; font-size: .8rem; opacity: .7; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 16px; }
@media (max-width: 600px) { .footer-inner { grid-template-columns: 1fr; } }

/* Espace hôtes et admin */
.db-only { display: none; }
body.db-on .db-only { display: block; }
body.db-on .account-cta.db-only { display: flex; }
.account-cta { background: var(--primary-soft); border: 1.5px solid var(--primary); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 18px; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.account-cta p { margin: 0; }
.space { padding: 32px 20px 56px; }
.space-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.space-head h1 { margin: 0; font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
.space-head p { margin: 4px 0 0; }
.space-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.space-section { margin-top: 36px; }
.form-card.narrow { max-width: 480px; margin: 28px auto; grid-template-columns: 1fr; }
.form-card h1, .form-card h2 { margin: 0; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.message { background: var(--success-soft); color: var(--success); border-radius: var(--radius-sm); padding: 12px 16px; font-weight: 600; }
.message-error { background: var(--accent-soft); color: var(--danger); }
.space-list { display: grid; gap: 12px; }
.space-row { display: flex; gap: 16px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; }
.space-thumb { position: relative; flex-shrink: 0; width: 116px; height: 87px; border-radius: var(--radius-sm); overflow: hidden; background: linear-gradient(180deg, hsl(var(--h), 70%, 72%) 0 60%, hsl(38, 55%, 78%) 60%); }
.space-thumb img { width: 100%; height: 100%; object-fit: cover; }
.space-row-body { flex: 1; min-width: 0; }
.space-row-body h3 { margin: 0 0 6px; }
.space-row-actions { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; margin-top: 8px; font-size: .92rem; }
.space-row-actions select { width: auto; margin: 0; padding: 6px 10px; min-height: 36px; }
.link-button.danger { color: var(--danger); }
.status-pending { background: var(--warn-soft); color: var(--warn); }
.status-published { background: var(--success-soft); color: var(--success); }
.status-paused { background: var(--surface-2); color: var(--muted); }
.status-rejected { background: var(--accent-soft); color: var(--danger); }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin: 8px 0 12px; }
.photo-grid:empty { display: none; }
.photo-item { position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); }
.photo-item img { width: 100%; height: 100%; object-fit: cover; }
.photo-item .badge { position: absolute; inset-inline-start: 6px; bottom: 6px; }
.photo-btn { position: absolute; inset-inline-start: 6px; bottom: 6px; border: 0; border-radius: 999px; padding: 4px 10px; font: inherit; font-size: .75rem; font-weight: 700; background: rgba(255, 255, 255, .92); color: #14212b; cursor: pointer; }
.photo-btn.photo-remove { inset-inline-start: auto; bottom: auto; top: 6px; inset-inline-end: 6px; width: 30px; height: 30px; padding: 0; font-size: 1.1rem; line-height: 1; }
.file-button { display: inline-flex; color: var(--ink); font-size: 1rem; }
.file-button input { display: none; }
body.db-on .demo-note { display: none; }
.tabs .count { display: inline-block; min-width: 20px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .75rem; padding: 1px 6px; }
.review-card { margin-bottom: 16px; }
.thumbs { display: flex; gap: 8px; overflow-x: auto; }
.thumbs img { width: 120px; height: 90px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.crud-list { margin-top: 16px; }
.crud-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--surface); border-radius: var(--radius-sm); padding: 12px 16px; box-shadow: var(--shadow); }
.crud-row .space-row-actions { margin: 0; }
#crud-form { margin: 0 0 16px; }
@media (max-width: 480px) { .container { padding: 0 16px; } .space { padding: 24px 16px 48px; } .space-thumb { width: 84px; height: 64px; } }

/* Confort : moins d'animations pour ceux qui le demandent à leur téléphone */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Indicateur « connecté » : point vert sur Mon espace (et sur le bouton menu en mobile) */
.online-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .22); margin-inline-end: 8px; vertical-align: middle; }
.main-nav .online-dot { margin-inline-end: 7px; position: relative; top: -1px; }
.nav-count { display: inline-block; min-width: 20px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: .72rem; font-weight: 800; padding: 1px 6px; text-align: center; vertical-align: middle; }
.menu-toggle { position: relative; }
#site-header.signed-in .menu-toggle::after { content: ""; position: absolute; top: 4px; inset-inline-end: 4px; width: 9px; height: 9px; border-radius: 50%; background: #22c55e; border: 2px solid var(--bg); }
.host-cta { display: flex; }
.host-cta h2 { margin: 0 0 6px; font-size: 1.25rem; }
.admin-alert { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--accent-soft); color: var(--ink); border: 1.5px solid var(--accent); border-radius: var(--radius); padding: 14px 20px; margin-bottom: 20px; font-weight: 600; }
.review-meta { margin: 0 0 6px; }
.code-input { font-size: 1.6rem; font-weight: 800; letter-spacing: .4em; text-align: center; }
.lang-extra { border: 1.5px dashed var(--line); border-radius: var(--radius-sm); padding: 12px 16px; }
.lang-extra summary { cursor: pointer; font-weight: 700; color: var(--primary); }
.lang-extra-body { display: grid; gap: 14px; margin-top: 14px; }
.import-box { background: var(--accent-soft); border-radius: var(--radius-sm); padding: 16px 18px; }
.import-box p { margin: 4px 0 10px; }
.import-row { display: flex; gap: 8px; flex-wrap: wrap; }
.import-row input { flex: 1 1 220px; }
.host-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }

/* ---------- Arabe (de droite à gauche) ---------- */
:root[lang="ar"] { --font: "Cairo", "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif; }
:root[lang="ar"] body { line-height: 1.7; }
:root[lang="ar"] .banner-label, :root[lang="ar"] .eyebrow { letter-spacing: 0; text-transform: none; }
[dir="rtl"] .arrow { display: inline-block; transform: scaleX(-1); }
[dir="rtl"] .section-head a::after { content: " ←"; }
/* E-mails, numéros, liens et chiffres restent écrits de gauche à droite. */
[dir="rtl"] input[type="email"], [dir="rtl"] input[type="tel"], [dir="rtl"] input[type="url"],
[dir="rtl"] input[type="number"], [dir="rtl"] .code-input { direction: ltr; text-align: right; }
[dir="rtl"] .code-input { text-align: center; }
