/* Dubai Compass — lumière naturelle, images d'ambiance et comparaison lisible. */
:root {
  --ink: #26352e;
  --muted: #626b63;
  --paper: #f6f2ea;
  --line: #dbd5c9;
  --blue: #30483e;
  --blue-dark: #233a30;
  --blue-light: #edf1e9;
  --copper: #8b573d;
  --copper-text: #8b573d;
  --sand: #ece5d8;
  --green-mid: #637566;
  --radius: 5px;
}

body { background: var(--paper); }
.sidebar { background: #fffdf8; border-color: var(--line); }
.brand { letter-spacing: .4px; }
.brand-small { letter-spacing: 2px; }
.brand svg { color: var(--ink); }
.nav-item { border-radius: 3px; color: #616a61; }
.nav-item:hover { background: #eeeae1; color: var(--ink); }
.nav-item.active { color: var(--ink); background: #e9ede3; }
.topbar { border-color: var(--line); }
.button, .icon-button, .button-secondary, input, select, textarea { border-radius: 4px; }
.button-secondary { border-color: #cecfc3; background: #fffdf8; }
.button-secondary:hover, .icon-button:hover { background: #eaece3; border-color: #a7b2a2; }
.button-light { background: #edf1e9; border-color: #d9e1d1; }
.button-light:hover { background: #e3eadd; border-color: #bacbb5; }
.text-button { color: var(--copper-text); }
.text-button:hover { text-decoration-thickness: 1px; }
.workspace-strip { margin-bottom: 20px; padding-bottom: 18px; }
.workspace-strip select { background: #fffdf8; }
.sync-badge { color: #617365; }

/* Une vraie image d'ouverture ; le voile sert uniquement à la lecture. */
.hero.hero-photographic {
  display: block;
  position: relative;
  isolation: isolate;
  height: 478px;
  padding: 0;
  margin: 0 0 30px;
  overflow: hidden;
  border-radius: 3px;
  background: #667269;
  color: #fffdf8;
}
.hero-photo, .hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-photo { object-fit: cover; object-position: 62% 54%; z-index: -2; }
.hero-shade {
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(17, 34, 29, .56) 0%, rgba(17, 34, 29, .14) 66%, transparent 100%), linear-gradient(0deg, rgba(17, 34, 29, .46), transparent 67%);
}
.hero-photographic .hero-copy {
  position: absolute;
  left: 44px;
  bottom: 46px;
  width: calc(100% - 88px);
  max-width: 710px;
}
.hero-photographic .eyebrow { color: #f5ead7; font-size: 11px; font-weight: 500; letter-spacing: 1.4px; }
.hero-photographic h1 {
  max-width: none;
  margin: 12px 0 15px;
  color: #fffdf8;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(46px, 4.7vw, 66px);
  font-weight: 400;
  letter-spacing: -2.4px;
  line-height: 1.06;
}
.hero-photographic p { max-width: 550px; color: #fffdf8; font-size: 17px; line-height: 1.7; font-weight: 400; }
.hero-photographic .hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 25px; }
.hero-photographic .button { min-height: 46px; padding: 13px 19px; color: #26352e; background: #fffaf0; border-color: #fffaf0; }
.hero-photographic .button:hover { background: #eee6d6; border-color: #eee6d6; }
.hero-photographic .hero-link { display: inline-flex; gap: 12px; align-items: center; min-height: 44px; color: #fffdf8; font-size: 13px; text-decoration: underline; text-underline-offset: 5px; }
.hero-photographic .hero-link:hover { text-decoration-thickness: 2px; }
.hero-photographic .hero-copy > .button { margin-top: 25px; }
.hero-photographic .hero-copy > .hero-link { margin-left: 21px; }
.hero-photographic .hero-meta { color: #f2ecdf; }
.hero-photo-caption { position: absolute; bottom: 17px; right: 19px; color: #fffdf8; font-size: 10px; letter-spacing: .1px; line-height: 1.5; }
.hero-photographic :focus-visible { outline-color: #fffdf8; }

/* Trois entrées photographiques ; aucune image n'est attribuée à un prestataire. */
.visual-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0 0 35px; }
.visual-tabs .tab {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  min-width: 0;
  gap: 0;
  width: 100%;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 3px 3px 0 0;
  text-align: left;
  color: var(--ink);
  background: transparent;
}
.visual-tabs .tab > span { font-family: inherit; color: inherit; font-size: inherit; }
.visual-tabs .tab .category-photo { display: block; width: 100%; aspect-ratio: 8 / 5; overflow: hidden; border-radius: 3px; background: #e8e5d9; }
.category-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.visual-tabs .tab[data-category="company"] img { object-position: 48% 50%; }
.visual-tabs .tab[data-category="visa"] img { object-position: 57% 53%; }
.visual-tabs .tab[data-category="insurance"] img { object-position: 50% 46%; }
.visual-tabs .tab .category-copy { display: block; padding: 16px 0 18px; }
.category-kicker { display: block; margin-bottom: 8px; color: var(--copper-text); font-size: 10px; font-weight: 500; letter-spacing: 1.3px; }
.category-copy strong { display: block; color: var(--ink); font-size: 19px; line-height: 1.35; font-weight: 600; letter-spacing: -.35px; }
.category-copy small { display: block; margin-top: 7px; color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.6; }
.visual-tabs .tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: transparent; border-radius: 0; }
.visual-tabs .tab.active::after, .visual-tabs .tab[aria-selected="true"]::after { background: var(--copper); }
.visual-tabs .tab:hover .category-copy strong { color: var(--copper); }
.visual-tabs .tab:hover::after { background: #b39a83; }
.visual-tabs .tab[aria-selected="true"]:hover::after { background: var(--copper); }
.visual-tabs .tab:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }

/* Des critères sur la page et un contexte visuel sobre. */
.explore-layout { gap: 30px; }
.profile-panel { padding: 22px 0 25px; margin-bottom: 26px; border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
.panel-heading h2 { font-weight: 600; }
.profile-fields input, .profile-fields select { background: #fffdf8; border-color: #d5d3c7; }
.category-context { display: grid; grid-template-columns: 142px minmax(0, 1fr); align-items: center; gap: 20px; margin: 0 0 25px; padding: 0 0 24px; border-bottom: 1px solid var(--line); }
#category-context-image { display: block; width: 142px; height: 106px; object-fit: cover; border-radius: 3px; background: #e8e5d9; }
#category-context-title { color: var(--ink); font-size: 22px; line-height: 1.3; font-weight: 600; letter-spacing: -.5px; }
#category-context-note { margin-top: 7px; color: var(--muted); font-size: 13px; line-height: 1.6; max-width: 600px; }
.context-note { background: #e9eee2; color: #485c4d; border-radius: 3px; }
.result-controls select, #search-offers, .filter-chip, .view-switch { background: #fffdf8; border-color: var(--line); border-radius: 4px; }
.filter-chip { color: #526451; }
.filter-chip:hover, .view-switch button:hover { background: #eaece3; }
.filter-chip[aria-pressed="true"] { color: var(--ink); background: #e6ecdf; border-color: #adbea5; }
.view-switch button.active, .view-switch button[aria-pressed="true"] { background: #e6ecdf; color: var(--ink); }

/* Le choix reste un annuaire ; les images ne prétendent pas montrer une équipe. */
.offer-card { border-color: var(--line); border-radius: 4px; background: #fffdf8; box-shadow: none; }
.offer-card:hover { border-color: #aeb6a6; box-shadow: none; }
.offer-card.selected { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.offer-card.chosen { border-color: #aebfa5; }
.offer-mark { border-color: #e0ddcf; border-radius: 3px; color: #52684f; background: #eeeee5; }
.offer-mark.dark { color: #fffdf8; background: var(--ink); border-color: var(--ink); }
.offer-mark.blue { color: #496747; background: #eaf0e2; border-color: #dce5d1; }
.offer-mark.clay { color: #8b573d; background: #f0e5d9; border-color: #e5d3c1; }
.chosen-label, .match-reason, .badge { background: #ecf0e5; color: #4d634d; border-radius: 3px; }
.feature, .favorite-button { color: #53674f; }
.feature .icon { color: #607b55; }
.offer-divider { background: var(--line); }
.favorite-button:hover { background: #eaf0e2; color: var(--ink); }
.project-aside { border: 0; border-left: 1px solid var(--line); border-radius: 0; padding: 24px 0 0 24px; background: transparent; box-shadow: none; }
.project-aside h2 { font-family: Georgia, "Times New Roman", serif; font-size: 26px; font-weight: 400; letter-spacing: -.4px; }
.project-aside .eyebrow { color: var(--copper-text); }
.project-snapshot .snapshot-empty, .snapshot-empty { color: var(--muted); }
.selection-row .icon-button { color: #64725f; }
.aside-note { color: var(--muted); }
.clarity-note { color: #5c6757; background: #eeeadf; border-color: var(--line); border-radius: 3px; }
.white-panel, .budget-summary, .route-card { border-color: var(--line); border-radius: 5px; background-color: #fffdf8; }
.page-heading h1 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: 44px; letter-spacing: -1.2px; }
.page-banner { position: relative; height: 166px; overflow: hidden; margin: 0 0 30px; border-radius: 3px; background: #e1e3d6; }
.page-banner-image { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 46%; }
.page-banner figcaption { position: absolute; bottom: 11px; right: 14px; font-size: 10px; color: #fffdf8; background: rgba(23, 42, 32, .46); padding: 3px 7px; border-radius: 2px; }
.main-footer { border-color: var(--line); color: var(--muted); }

@media (max-width: 1180px) {
  .hero.hero-photographic { height: 460px; }
  .hero-photographic .hero-copy { left: 36px; bottom: 40px; width: calc(100% - 72px); }
  .visual-tabs { gap: 20px; }
  .category-copy strong { font-size: 18px; }
  .explore-layout { gap: 24px; }
  .project-aside { padding-left: 20px; }
}

@media (max-width: 960px) {
  .explore-layout { grid-template-columns: minmax(0, 1fr); }
  .project-aside { position: static; border-left: 0; border-top: 1px solid var(--line); padding: 25px 0 0; }
  .selection-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; border-top: 0; }
  .selection-row { border-top: 1px solid var(--line); border-bottom: 0; }
  .project-aside .button { width: auto; }
  .profile-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .visual-tabs .tab .category-photo { aspect-ratio: 7 / 5; }
  .category-copy strong { font-size: 17px; }
  .hero-photographic h1 { font-size: 54px; }
}

@media (max-width: 800px) {
  .sidebar { background: #fffdf8; box-shadow: 5px 0 24px #26352e1c; }
  .topbar { background: rgba(255, 253, 248, .97); }
  .hero.hero-photographic { height: 430px; }
  .hero-photographic .hero-copy { left: 29px; bottom: 38px; width: calc(100% - 58px); }
  .hero-photographic h1 { font-size: 50px; letter-spacing: -1.8px; }
  .hero-photographic p { font-size: 16px; }
  .visual-tabs { gap: 16px; margin-bottom: 28px; }
  .category-copy small { font-size: 11px; }
  .category-context { grid-template-columns: 128px minmax(0, 1fr); gap: 17px; }
  #category-context-image { width: 128px; height: 102px; }
}

@media (max-width: 620px) {
  .workspace-strip { margin-bottom: 16px; }
  .hero.hero-photographic { height: 420px; margin-bottom: 22px; }
  .hero-photo { object-position: 68% 50%; }
  .hero-shade { background: linear-gradient(0deg, rgba(16, 31, 26, .77), rgba(16, 31, 26, .28) 59%, rgba(16, 31, 26, .06)); }
  .hero-photographic .hero-copy { left: 24px; bottom: 42px; width: calc(100% - 48px); max-width: 100%; }
  .hero-photographic h1 { margin: 12px 0 13px; font-size: 42px; letter-spacing: -1.6px; line-height: 1.08; }
  .hero-photographic p { font-size: 15px; line-height: 1.6; max-width: 310px; }
  .hero-photographic .hero-actions { gap: 11px 18px; margin-top: 22px; }
  .hero-photographic .hero-copy > .button { margin-top: 22px; }
  .hero-photographic .hero-copy > .hero-link { margin-left: 0; margin-top: 7px; display: flex; width: fit-content; }
  .hero-photographic .button { min-height: 44px; padding: 12px 14px; font-size: 12px; }
  .hero-photographic .hero-link { min-height: 40px; font-size: 12px; }
  .hero-photo-caption { bottom: 13px; right: 14px; font-size: 9px; }
  .visual-tabs { grid-template-columns: minmax(0, 1fr); gap: 14px; margin-bottom: 24px; }
  .visual-tabs .tab { display: grid; grid-template-columns: 108px minmax(0, 1fr); column-gap: 16px; align-items: center; padding-bottom: 14px; }
  .visual-tabs .tab .category-photo { width: 108px; height: 96px; aspect-ratio: auto; }
  .visual-tabs .tab .category-copy { padding: 0; }
  .category-kicker { margin-bottom: 5px; font-size: 10px; letter-spacing: .9px; }
  .category-copy strong { font-size: 17px; letter-spacing: -.3px; }
  .category-copy small { font-size: 12px; margin-top: 5px; line-height: 1.45; }
  .profile-panel { padding: 19px 0 22px; margin-bottom: 23px; }
  .profile-fields { grid-template-columns: minmax(0, 1fr); gap: 15px; }
  .profile-fields label { font-size: 12px; gap: 6px; }
  .profile-fields select { font-size: 13px; min-height: 44px; padding-left: 12px; }
  .panel-heading h2 { font-size: 18px; }
  .category-context { grid-template-columns: 90px minmax(0, 1fr); gap: 14px; margin-bottom: 22px; padding-bottom: 20px; }
  #category-context-image { width: 90px; height: 106px; }
  #category-context-title { font-size: 19px; letter-spacing: -.3px; }
  #category-context-note { font-size: 12px; line-height: 1.5; margin-top: 5px; }
  .selection-summary { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .selection-row { border-bottom: 1px solid var(--line); }
  .selection-row + .selection-row { border-top: 0; }
  .project-aside { padding: 23px 0 0; }
  .page-heading h1 { font-size: 37px; letter-spacing: -1px; }
  .page-banner { height: 145px; margin-bottom: 24px; }
}

@media (max-width: 380px) {
  .hero-photographic .hero-copy { left: 20px; width: calc(100% - 40px); }
  .hero-photographic h1 { font-size: 38px; }
  .visual-tabs .tab { grid-template-columns: 98px minmax(0, 1fr); column-gap: 13px; }
  .visual-tabs .tab .category-photo { width: 98px; }
  .category-copy strong { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .visual-tabs *, .hero-photographic *, .hero-photographic { animation: none !important; transition: none !important; }
}

@media print {
  .hero.hero-photographic { height: auto; margin: 0 0 20px; padding: 0; border-radius: 0; background: white; color: #111; overflow: visible; }
  .hero-photo, .hero-shade, .hero-photo-caption, .hero-actions, .hero-photographic .button, .hero-photographic .hero-link, .visual-tabs, .page-banner { display: none !important; }
  .hero-photographic .hero-copy { position: static; width: 100%; max-width: none; }
  .hero-photographic h1 { margin: 0 0 12px; color: #111; font-size: 27pt; letter-spacing: -.5px; }
  .hero-photographic p { color: #111; font-size: 11pt; }
  .category-context { display: block; padding-bottom: 12px; break-inside: avoid; }
  #category-context-image { display: none; }
  .project-aside { border-left: 0; padding: 0; }
}

/* Garder les sujets dans le cadre, y compris les petites entrées mobiles. */
.visual-tabs .tab[data-category="company"] img { object-position: 70% 50%; }
.visual-tabs .tab[data-category="visa"] img { object-position: 82% 53%; }
.visual-tabs .tab[data-category="insurance"] img { object-position: 82% 46%; }
#category-context-image[src*="company"] { object-position: 70% 50%; }
#category-context-image[src*="arrival"] { object-position: 82% 53%; }
#category-context-image[src*="family"] { object-position: 82% 46%; }
.page-banner-image[src*="company"] { object-position: 50% 26%; }
.page-banner-image[src*="arrival"] { object-position: 50% 40%; }
.category-context { scroll-margin-top: 110px; }
@media (max-width: 800px) { .category-context { scroll-margin-top: 84px; } }
