/* HAVEFUNCORP - page institutionnelle */
@import url("https://fonts.googleapis.com/css2?family=Archivo:wght@800&family=Bricolage+Grotesque:ital,opsz,wght@0,12..96,400;0,12..96,500;0,12..96,600;0,12..96,700;0,12..96,800;1,12..96,600;1,12..96,700;1,12..96,800&family=Inter:wght@400;500;600;700&display=swap");

:root {
  --cream: #f5f1ea;
  --ink: #171717;
  --violet: #432761;
  --orange: #d54215;
  --hfc-max: 640px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  background: var(--cream);
  -webkit-text-size-adjust: 100%;
}

body.hfc-page {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--cream);
  color: var(--ink);
  min-height: 100dvh;
  line-height: 1.5;
  padding-top: calc(28px + env(safe-area-inset-top, 0px));
  padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px));
}

.hfc-shell {
  max-width: var(--hfc-max);
  margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}

.hfc-hero {
  margin-bottom: 40px;
}

.hfc-brand,
.hfc-brand:link,
.hfc-brand:visited,
.hfc-brand:hover {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: inherit;
}

.hfc-logo {
  width: 96px;
  height: auto;
  display: block;
  border-radius: 22px;
  flex-shrink: 0;
}

.hfc-index {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
}

.hfc-slogan {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: clamp(2.15rem, 8.5vw, 3.4rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-top: 10px;
  text-transform: uppercase;
}

.hfc-slogan em {
  font-style: italic;
  font-weight: 600;
  color: var(--violet);
}

.hfc-lede {
  margin-top: 22px;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.35;
  max-width: 22em;
}

.hfc-lede em {
  font-style: italic;
  font-weight: 600;
  color: var(--orange);
}

.hfc-lede strong {
  font-weight: 600;
}

.hfc-band .hfc-lede strong {
  color: inherit;
}

.hfc-band {
  background: var(--violet);
  color: var(--cream);
  margin: 0 0 8px;
  padding: 28px 0;
}

.hfc-band h2 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: clamp(1.6rem, 6vw, 2.2rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.hfc-band-rest { display: block; }

.hfc-band p {
  margin-top: 10px;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--cream);
}

.hfc-apps {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hfc-studio {
  margin-top: 28px;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.05rem;
  line-height: 1.4;
  max-width: 28em;
}

.hfc-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: -8px;
}

.hfc-app {
  position: relative;
  border-top: 2px solid var(--ink);
  padding-top: 20px;
}

.hfc-app-go,
.hfc-app-go:link,
.hfc-app-go:visited {
  display: inline-block;
  margin-top: 14px;
  padding: 8px 14px;
  border: 1.5px solid var(--violet);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--violet);
  text-decoration: none;
}

.hfc-app-go:hover,
.hfc-app-go:focus-visible {
  color: var(--orange);
  text-decoration: none;
}

.hfc-app-go::after {
  content: "";
  position: absolute;
  inset: 0;
}

.hfc-app-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.hfc-app-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: #111;
  border-radius: 18px;
  flex-shrink: 0;
}

.hfc-app h2 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: 2rem;
  letter-spacing: -0.03em;
  line-height: 1;
}

.hfc-app--aura h2 {
  font-weight: 700;
  text-transform: lowercase;
  letter-spacing: 0.02em;
}

.hfc-app--orbit h2 {
  letter-spacing: 0.12em;
}

.hfc-seconds-num {
  width: 72px;
  flex-shrink: 0;
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  font-size: 2.85rem;
  letter-spacing: -0.07em;
  line-height: 0.8;
  color: var(--ink);
}

.hfc-app--seconds h2 {
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  font-size: 1.55rem;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.hfc-app .hfc-app-lede {
  margin: 6px 0 0;
  font-size: 0.95rem;
  color: var(--ink);
  opacity: 0.78;
}

.hfc-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hfc-links a {
  color: var(--violet);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.hfc-links a:hover { text-decoration: underline; }

.hfc-links .sub {
  display: block;
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--ink);
  opacity: 0.5;
  margin-top: 1px;
}

.store-badges {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
}

a.store-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 240px;
  padding: 10px 20px 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  border: 1.5px solid var(--ink);
  color: var(--cream);
  text-decoration: none;
  box-sizing: border-box;
}

a.store-badge:hover,
a.store-badge:visited {
  color: var(--cream);
  text-decoration: none;
}

a.store-badge svg.store-badge__logo {
  display: block;
  width: 28px;
  height: 28px;
  min-width: 28px;
  flex: 0 0 28px;
}

a.store-badge .store-badge__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}

a.store-badge .store-badge__caption {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(245, 241, 234, 0.72);
}

a.store-badge .store-badge__name {
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

a.store-badge--apple .store-badge__name { color: #c4b3d6; }
a.store-badge--play .store-badge__name { color: #f0a080; }

.hfc-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 2px solid var(--ink);
}

.hfc-footer .hfc-close {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hfc-footer .hfc-close em {
  font-style: italic;
  font-weight: 600;
  color: var(--orange);
}

.hfc-footer address {
  font-style: normal;
  font-size: 0.88rem;
  line-height: 1.55;
}

.hfc-footer a,
.hfc-footer a:link,
.hfc-footer a:visited {
  color: var(--violet);
  text-decoration: none;
}

.hfc-footer a:hover { text-decoration: underline; }

@media (min-width: 720px) {
  :root { --hfc-max: 720px; }

  .hfc-lede { max-width: none; }
}

@media (min-width: 1024px) {
  :root { --hfc-max: 1040px; }

  body.hfc-page {
    padding-top: calc(40px + env(safe-area-inset-top, 0px));
    padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px));
  }

  .hfc-logo { width: 108px; border-radius: 24px; }

  .hfc-index { font-size: 1.35rem; }

  .hfc-band {
    padding: 52px 0 48px;
    margin-bottom: 12px;
  }

  .hfc-band h2 {
    font-size: clamp(2.4rem, 4.2vw, 3.5rem);
  }

  .hfc-band-rest { display: inline; }

  .hfc-band .hfc-lede {
    margin-top: 16px;
    font-size: 1.45rem;
    max-width: none;
  }

  .hfc-studio {
    margin-top: 36px;
    font-size: 1.25rem;
    max-width: 36em;
  }

  .hfc-apps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 48px;
    row-gap: 0;
    margin-top: 32px;
  }

  .hfc-label {
    grid-column: 1 / -1;
    margin-bottom: 0;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--ink);
  }

  .hfc-app {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border-top: none;
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .hfc-app-head {
    align-self: stretch;
  }

  .hfc-app-go,
  .hfc-app-go:link,
  .hfc-app-go:visited {
    margin-top: auto;
  }

  .hfc-app h2 { font-size: 2.35rem; }

  .hfc-app--seconds h2 { font-size: 1.7rem; }

  .hfc-apps > .hfc-app:nth-child(n+4) {
    border-top: 2px solid var(--ink);
  }

  .hfc-app .hfc-app-lede {
    font-size: 1.05rem;
    max-width: 22em;
  }

  .hfc-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 32px;
    margin-top: 64px;
  }

  .hfc-footer .hfc-close {
    margin-bottom: 0;
    font-size: 1.35rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hfc-hero { animation: hfc-rise 0.5s ease both; }
  .hfc-band { animation: hfc-rise 0.55s ease both; animation-delay: 0.04s; }
  .hfc-studio { animation: hfc-rise 0.55s ease both; animation-delay: 0.1s; }
  .hfc-apps { animation: hfc-rise 0.55s ease both; animation-delay: 0.16s; }

  @keyframes hfc-rise {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .hfc-app { transition: transform 0.2s ease; }
  .hfc-app:hover { transform: translateY(-3px); }
  .hfc-app:hover .hfc-app-go {
    color: var(--orange);
    border-color: var(--orange);
  }
}
