:root {
  --brand: #7c3aed;
  --brand-deep: #5b21b6;
  --ink: #1c1430;
  --muted: #645b78;
  --line: rgba(91, 33, 182, 0.12);
  --paper: #f7f5fb;
  --glow: linear-gradient(160deg, #3d3554 0%, #2a243c 100%);
  --font: "Poppins", system-ui, sans-serif;
  --display: "Outfit", "Poppins", system-ui, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  font: 16px/1.5 var(--font);
  background-color: #e7f4fb;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.46), rgba(255, 255, 255, 0.12) 48%, rgba(255, 255, 255, 0.22)),
    url("fond.jpg");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: cover;
  background-attachment: fixed;
}

.topbar, .foot {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0 14px;
}

.brand {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  color: inherit;
  text-decoration: none;
}

.brand span {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.account {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-left: auto;
}

.burger {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 24px rgba(120, 140, 210, 0.16);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 16px;
  height: 1.5px;
  border-radius: 2px;
  background: #6d6294;
}

.pro {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  color: var(--brand-deep);
  border-radius: 999px;
  padding: 10px 16px;
  font: 600 0.84rem/1 var(--font);
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(76, 29, 149, 0.06);
}

.pro:hover { background: #fff; }

.appicon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--glow);
  color: #f6f3fb;
  cursor: pointer;
  outline: none;
  box-shadow: 0 8px 22px rgba(36, 28, 58, 0.22);
}

.appicon__mark {
  display: flex;
  align-items: center;
  justify-content: center;
}

.appicon__mark,
.appicon__mark svg {
  width: 22px;
  height: 22px;
}

.appicon__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.appicon:focus,
.appicon:focus-visible,
.pro:focus,
.pro:focus-visible,
.finder :focus,
.finder :focus-visible {
  outline: none;
}

.suite-pwa-install__pill { display: none !important; }

main { flex: 1; }

.home {
  width: min(920px, calc(100% - 40px));
  margin: 7vh auto 0;
  text-align: center;
}

.origin {
  display: inline-flex;
  margin: 0 0 18px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--brand-deep);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mark {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.16em;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  font-family: var(--display);
  font-weight: 200;
  font-size: clamp(3.2rem, 8vw, 5.8rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.mark__beauty,
.mark__rdv {
  background-image: linear-gradient(102deg, #f0a0c4 0%, #d56ec8 46%, #8b78f0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mark__stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.by {
  display: block;
  width: 100%;
  margin: 0.35em 0 0;
  color: #8a819f;
  font-weight: 400;
  font-size: 0.2em;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-align: center;
  white-space: nowrap;
}

.lead {
  max-width: 36rem;
  margin: 16px auto 0;
  color: #3c3454;
  font-size: 1.08rem;
}

.finder {
  display: flex;
  align-items: center;
  gap: 0;
  width: min(880px, 100%);
  margin: 34px auto 0;
  padding: 8px 8px 8px 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow:
    0 24px 60px rgba(90, 130, 180, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.7);
}

.finder__line { display: contents; }

.finder__sep {
  width: 1px;
  height: 22px;
  flex: none;
  background: rgba(90, 80, 130, 0.18);
}

.finder select,
.picker__btn {
  appearance: none;
  border: 0;
  margin: 0;
  max-width: 12.5rem;
  padding: 12px 14px 12px 16px;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: 500 0.92rem/1.2 var(--font);
  cursor: pointer;
  outline: none;
}

.picker {
  position: relative;
}

.picker__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.picker__btn svg {
  width: 10px;
  height: 7px;
  fill: none;
  stroke: #645b78;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.picker.is-open .picker__btn svg { transform: rotate(180deg); }

.picker__list {
  position: absolute;
  z-index: 30;
  top: calc(100% + 12px);
  left: 0;
  min-width: 12.5rem;
  margin: 0;
  padding: 6px;
  list-style: none;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(40, 32, 64, 0.16);
}

.picker__list[hidden] { display: none; }

.picker__list button {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 8px 12px;
  background: transparent;
  color: var(--ink);
  font: 500 0.9rem/1.3 var(--font);
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
  outline: none;
  box-shadow: none;
}

.picker__list button:hover,
.picker__list button[aria-selected="true"] {
  background: #f4eef8;
  color: #322a46;
}

.finder__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.finder input[type="search"] {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  font: 500 1rem/1.3 var(--font);
  padding: 0 8px 0 14px;
}

.finder input::placeholder { color: #9a91ad; }

.finder__go,
.suite-pwa-install__pill,
.suite-pwa-install__btn {
  border: 0;
  color: #f6f3fb !important;
  cursor: pointer;
  background: var(--glow) !important;
  box-shadow: 0 10px 24px rgba(36, 28, 58, 0.22) !important;
}

.finder__go {
  border-radius: 999px;
  padding: 14px 22px;
  font: 600 0.95rem/1 var(--font);
}

.finder__go:hover,
.suite-pwa-install__pill:hover,
.suite-pwa-install__btn:hover { filter: brightness(1.16); }

.results, .fiche {
  width: min(760px, calc(100% - 40px));
  margin: 28px auto;
  padding: 28px 22px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: 24px;
}

.results h1, .fiche h1 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 2rem;
  letter-spacing: -0.03em;
}

.search { margin-top: 18px; }
.search label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 0.82rem; }
.search__row { display: flex; gap: 8px; }
.search input, .search button, .maps {
  border-radius: 999px;
  font: inherit;
}
.search input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  padding: 12px 16px;
}
.search button, .maps {
  border: 0;
  background: var(--brand);
  color: #fff;
  padding: 12px 16px;
  text-decoration: none;
  cursor: pointer;
}

.note, .legal, .addr, .kicker { color: var(--muted); }

.list { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.list a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: inherit;
  text-decoration: none;
}
.list em { color: var(--muted); font-style: normal; font-size: 0.85rem; }

.foot {
  padding: 28px 0 22px;
}

.copy {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

.copy small { font-size: inherit; }

.copy a {
  color: var(--brand-deep);
  text-decoration: none;
  border-bottom: 0.5px solid rgba(91, 33, 182, 0.28);
}

@media (min-width: 641px) {
  body {
    background-position: center center, center top;
    background-size: cover, min(1480px, 112%) auto;
  }
}

@media (max-width: 640px) {
  .topbar, .foot { width: min(1120px, calc(100% - 28px)); }
  .home { margin-top: 2vh; width: min(920px, calc(100% - 28px)); }
  body { background-attachment: scroll; }
  .burger { display: inline-flex; }
  .account {
    display: none;
    position: absolute;
    top: calc(100% - 6px);
    right: 0;
    min-width: 240px;
    margin: 0;
    padding: 8px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 40px rgba(120, 130, 190, 0.18);
  }
  .account.is-open { display: flex; flex-direction: column; align-items: stretch; }
  .account .pro { width: 100%; text-align: left; }
  .account .appicon {
    width: 100%;
    height: auto;
    justify-content: flex-start;
    gap: 10px;
    padding: 6px 12px 6px 6px;
    border-radius: 999px;
    overflow: visible;
    background: rgba(255, 255, 255, 0.82);
  }
  .account .appicon__mark {
    width: 32px;
    height: 32px;
    flex: none;
    border-radius: 50%;
    background: var(--glow);
  }
  .account .appicon__mark svg {
    width: 18px;
    height: 18px;
  }
  .account .appicon__label {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    color: var(--brand-deep);
    font: 600 0.84rem/1.2 var(--font);
  }
  .finder {
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
    border-radius: 24px;
  }
  .finder__line {
    display: flex;
    align-items: center;
    flex: 1 1 100%;
    min-width: 0;
  }
  .picker { flex: 1; min-width: 0; }
  .picker__btn { max-width: none; width: 100%; justify-content: space-between; }
  .finder > .finder__sep { display: none; }
  .finder input[type="search"] {
    flex: 1 1 100%;
    min-width: 0;
    padding: 8px 12px;
  }
  .finder__go { width: 100%; }
  .search__row { flex-direction: column; }
}

@media (display-mode: standalone) {
  .appicon { display: none; }
}
