@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/fonts/manrope.woff2) format("woff2-variations");
}

:root {
  --bg: #f3f4f7;
  --card: #ffffff;
  --text: #0b0d12;
  --muted: #5d6472;
  --line: #e4e7ec;
  --accent: #2747f5;
  --accent-ink: #ffffff;
  --accent-soft: #e9edff;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 10px 30px rgba(16, 24, 40, 0.06);
  --r: 22px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0d12;
    --card: #141821;
    --text: #eef1f6;
    --muted: #9aa3b2;
    --line: #232938;
    --accent: #7d93ff;
    --accent-ink: #0b0d12;
    --accent-soft: #1c2340;
    --shadow: none;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
p,
ul,
dl,
dd {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.i {
  width: 1.1em;
  height: 1.1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.i .fill {
  fill: currentColor;
  stroke: none;
}

.nobr {
  white-space: nowrap;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: var(--text);
  color: var(--card);
  font-weight: 700;
  text-decoration: none;
}

.skip:focus {
  top: 1rem;
}

/* Mise en page : profil collant à gauche sur ordinateur, une colonne sur cellulaire */

.shell {
  display: grid;
  grid-template-columns: 370px minmax(0, 720px);
  justify-content: center;
  gap: 1.5rem;
  max-width: 1180px;
  margin-inline: auto;
  padding: clamp(1rem, 3vw, 2.5rem);
}

.shell > *,
.stack > * {
  min-width: 0;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: clamp(1.25rem, 3vw, 1.75rem);
}

.stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  align-content: start;
}

/* Profil */

.profile {
  position: sticky;
  top: clamp(1rem, 3vw, 2.5rem);
  align-self: start;
  text-align: center;
}

.profile-top {
  display: flex;
  justify-content: flex-end;
}

.lang {
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
}

.lang:hover {
  border-color: var(--accent);
}

.avatar {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  margin: 0.25rem auto 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #8a5cff);
  color: #fff;
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

img.avatar {
  display: block;
  object-fit: cover;
  background: var(--bg);
  border: 3px solid var(--card);
  box-shadow: 0 0 0 1px var(--line);
}

.profile h1 {
  margin-top: 1rem;
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.role {
  margin-top: 0.35rem;
  color: var(--muted);
  font-weight: 600;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.9rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
}

.badge .i {
  width: 1rem;
  height: 1rem;
}

.bio {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s, opacity 0.15s;
}

.btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.btn-soft {
  background: var(--accent-soft);
  color: var(--accent);
}

.profile .btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.social {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.social a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.5rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.social a:hover {
  border-color: var(--accent);
}

.mini-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-top: 1.25rem;
  text-align: left;
}

.mini-facts div {
  padding: 0.75rem 0.9rem;
  border-radius: 14px;
  background: var(--bg);
}

.mini-facts dt {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.mini-facts dd {
  margin-top: 0.15rem;
  text-wrap: balance;
  font-weight: 800;
  font-size: 0.98rem;
}

/* Liens */

.title {
  margin-bottom: 0.9rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.links {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.6rem;
}

.link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}

.link:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.tile {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 12px;
  font-weight: 800;
  font-size: 1.05rem;
  color: #fff;
}

.link-text {
  flex: 1;
  min-width: 0;
}

.link-text strong {
  display: block;
  font-size: 1.02rem;
}

.link-text span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link .i {
  color: var(--muted);
}

.link.feature {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.link.feature .link-text span {
  color: inherit;
  opacity: 0.85;
}

.link.feature .tile {
  background: rgba(255, 255, 255, 0.18);
  color: inherit;
}

.count {
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  font-weight: 800;
  font-size: 0.85rem;
}

/* À propos */

.about h2,
.sale h2,
.contact h2 {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.about p {
  margin-top: 0.9rem;
  color: var(--muted);
}

.cred-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.1rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  transition: border-color 0.15s;
}

.cred-link:hover {
  border-color: var(--accent);
}

.cred-link span {
  color: var(--text);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.chips li {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: var(--bg);
  font-weight: 700;
  font-size: 0.9rem;
}

/* Services-conseils */

.services h2 {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.services > p {
  margin-top: 0.9rem;
  color: var(--muted);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.steps li {
  padding: 0.9rem 1rem 1rem;
  border-radius: 14px;
  background: var(--bg);
}

.step-n {
  display: inline-grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 800;
}

.steps h3 {
  margin-top: 0.55rem;
  font-size: 1rem;
  font-weight: 800;
}

.steps p {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.services-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
  margin-top: 1.25rem;
}

.services-cta span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

@media (max-width: 640px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* Domaines */

.sale-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
}

.sale-head p {
  margin-top: 0.5rem;
  color: var(--muted);
}

.sale-head .big {
  flex: none;
  margin-top: 0;
  padding: 0.5rem 0.9rem;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
  font-size: 1.6rem;
  line-height: 1.1;
  text-align: center;
}

.big small {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.filters {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.25rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: none;
}

.filters[hidden] {
  display: none;
}

.filters::-webkit-scrollbar {
  display: none;
}

.filters button {
  flex: none;
  min-height: 2.5rem;
  padding: 0.4rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}

.filters button[aria-pressed="true"] {
  background: var(--text);
  border-color: var(--text);
  color: var(--card);
}

.filters button span {
  margin-left: 0.3rem;
  opacity: 0.6;
}

.dlist {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.5rem;
  margin-top: 1rem;
}

.dlist li[hidden] {
  display: none;
}

.drow {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.5rem;
  border-radius: 14px;
  text-decoration: none;
  transition: background 0.15s;
}

.drow:hover {
  background: var(--bg);
}

.drow img {
  width: 88px;
  height: 55px;
  flex: none;
  border-radius: 9px;
  border: 1px solid var(--line);
  object-fit: cover;
  object-position: top;
}

.drow div {
  flex: 1;
  min-width: 0;
}

.drow strong {
  display: block;
  font-size: 0.98rem;
  overflow-wrap: anywhere;
}

.drow div span {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
}

.drow .tag {
  flex: none;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--bg);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
}

.sale > .btn {
  width: 100%;
  margin-top: 1.25rem;
}

/* Contact */

.contact {
  text-align: center;
  padding-block: 2.25rem;
}

.contact p {
  margin: 0.75rem auto 0;
  max-width: 30rem;
  color: var(--muted);
}

.contact .btn {
  margin-top: 1.25rem;
}

.contact .mail {
  display: block;
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

footer {
  padding: 0.5rem 0 2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 900px) {
  .shell {
    grid-template-columns: minmax(0, 560px);
  }
  .profile {
    position: static;
  }
}

@media (max-width: 360px) {
  .mini-facts div {
    padding-inline: 0.7rem;
  }
  .mini-facts dd {
    font-size: 0.82rem;
  }
}

@media (max-width: 420px) {
  .drow .tag {
    display: none;
  }
  .drow img {
    width: 72px;
    height: 45px;
  }
}

/* 404 */

.notfound {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 1rem;
}

.notfound .card {
  width: min(100%, 30rem);
  text-align: center;
}

.notfound .code {
  margin-top: 1.25rem;
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--accent);
}

.notfound h1 {
  margin-top: 0.5rem;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.notfound p {
  margin-top: 0.5rem;
  color: var(--muted);
}

.notfound .btn {
  margin-top: 1.25rem;
}

.nf-en {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.nf-en h2 {
  font-size: 1.05rem;
  font-weight: 800;
}

.tile-gci {
  background: #111827;
}

.tile-plomberie {
  background: #0e7490;
}

.tile-nova {
  background: #0f2747;
}

.tile-bati {
  background: #c2410c;
}

.tile-perkaria {
  background: #7c3aed;
}
