/*
Theme Name: Disploo
Author: Tome 4
Description: Landing page Disploo et mentions légales.
Version: 1.1.0
Text Domain: disploo
*/

:root {
  --orange: #ff7900;
  --orange-deep: #c45e00;
  --ink: #151515;
  --muted: #5c5c5c;
  --bg: #f7f7f7;
  --card: #ffffff;
  --line: #e4e4e4;
  --soft: #fff1e4;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 1.05rem;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--orange-deep);
}

a:hover {
  color: var(--ink);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
  z-index: 10;
}

.skip-link:focus {
  top: 12px;
  color: #fff;
}

.wrap {
  width: min(860px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
}

.brand img {
  display: block;
  height: 46px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.site-nav > a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.site-nav > a:hover,
.site-nav > a[aria-current="page"] {
  color: var(--orange-deep);
}

.site-nav .app-link {
  background: var(--orange);
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 999px;
}

.site-nav .app-link:hover {
  background: #ff8f26;
  color: var(--ink);
}

.lang-switcher {
  position: relative;
  z-index: 5;
  flex: 0 0 auto;
}

.lang-switcher-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 10px 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
}

.lang-switcher-toggle:hover,
.lang-switcher.is-open .lang-switcher-toggle {
  border-color: var(--orange);
  color: var(--orange-deep);
}

.lang-switcher-toggle:focus-visible,
.lang-switcher-option:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.lang-flag {
  font-size: 1.05rem;
  line-height: 1;
}

.lang-caret {
  width: 0;
  height: 0;
  margin-left: 2px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
}

.lang-switcher-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 148px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(21, 21, 21, 0.08);
}

.lang-switcher-menu[hidden] {
  display: none;
}

.lang-switcher-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.lang-switcher-option:hover,
.lang-switcher-option.is-active {
  background: var(--soft);
  color: var(--orange-deep);
}

.hero {
  padding: 64px 0 12px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--orange-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.lede,
.prose p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 1.12rem;
  max-width: 40rem;
}

.actions {
  margin-top: 26px;
}

.button {
  display: inline-block;
  background: var(--orange);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 999px;
}

.button:hover {
  background: #ff8f26;
  color: var(--ink);
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 28px 22px;
  margin: 28px 0;
}

.panel h2,
.legal h2 {
  margin: 0 0 14px;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 28px;
}

.features li {
  position: relative;
  padding: 8px 0 8px 22px;
  font-weight: 600;
}

.features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
}

.status {
  background: var(--ink);
  color: #fff;
  border-radius: 18px;
  padding: 28px 32px;
  margin: 8px 0 28px;
}

.status p {
  margin: 0;
  font-size: 1.15rem;
  max-width: 38rem;
}

.contact p {
  margin: 0 0 6px;
  color: var(--ink);
}

.contact a {
  font-weight: 700;
}

.site-footer {
  padding: 8px 0 48px;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer p {
  margin: 0 0 6px;
}

.site-footer a {
  color: var(--ink);
  font-weight: 600;
}

.legal {
  padding: 48px 0 12px;
}

.legal h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 28px;
}

.legal-block + .legal-block {
  margin-top: 28px;
  padding-top: 8px;
}

.legal address,
.legal p {
  font-style: normal;
  margin: 0 0 4px;
}

.facts {
  margin: 12px 0 0;
}

.facts div {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 12px 28px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}

.facts dt {
  font-weight: 700;
}

.facts dd {
  margin: 0;
}

@media (max-width: 680px) {
  .features,
  .facts div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .hero {
    padding-top: 40px;
  }

  .site-header .wrap {
    min-height: 72px;
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 14px 0;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
  }

  .brand img {
    height: 36px;
  }

  .lang-switcher-toggle .lang-code,
  .lang-caret {
    display: none;
  }

  .lang-switcher-toggle {
    padding: 0 8px;
  }
}
