/* PoliteShark — « crayon sur papier ». Tokens par rôle, clair et sombre (mer de nuit). */

@font-face {
  font-family: "Shantell Sans";
  src: url("/assets/fonts/shantell-latin.woff2") format("woff2");
  font-weight: 500 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Shantell Sans";
  src: url("/assets/fonts/shantell-latin-ext.woff2") format("woff2");
  font-weight: 500 800;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Figtree";
  src: url("/assets/fonts/figtree-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Figtree";
  src: url("/assets/fonts/figtree-latin-ext.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Couleurs (rôles) */
  --paper: #fbf8f3;
  --ink: #14275c;
  --ink-soft: #3d4a73;
  --line: rgba(20, 39, 92, 0.12);
  --focus: #14275c;
  /* Sur les cartes et boutons bleu mer (identiques en clair et en sombre) */
  --sea-ink: #14275c;
  --sea-ink-soft: #22346a;
  /* Bouton principal */
  --primary-img: url("/assets/img/pill-navy.webp");
  --on-primary: #fbf8f3;

  /* Typo */
  --font-display: "Shantell Sans", "Figtree", ui-rounded, system-ui, sans-serif;
  --font-text: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Mise en page (grille de 8, demi-pas de 4) */
  --gutter: 20px;
  --maxw: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0e1a36;
    --ink: #f3efe7;
    --ink-soft: #bcc6de;
    --line: rgba(243, 239, 231, 0.14);
    --focus: #f3efe7;
    --primary-img: url("/assets/img/pill-sea.webp");
    --on-primary: #14275c;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 16px;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--font-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  flex: 1;
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--ink);
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
  border-radius: 14px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 10;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
  border-radius: 12px;
}
.skip:focus {
  top: 12px;
}

/* ---------- En-tête ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
  font: 800 22px/1 var(--font-display);
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 36px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-right: -12px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  font: 600 17px/1 var(--font-display);
  text-decoration: none;
  transition: background-color 140ms var(--ease);
}

.site-nav a:hover {
  background: var(--line);
}

/* ---------- Haut de page ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: center;
  gap: 32px;
  min-height: min(560px, calc(100svh - 150px));
  padding-block: 8px 40px;
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(44px, 4vw + 16px, 72px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.lede {
  max-width: 32ch;
  margin: 0 0 32px;
  font-size: clamp(18px, 0.5vw + 15px, 21px);
  line-height: 1.55;
  color: var(--ink-soft);
}

.hero-shark {
  justify-self: center;
  width: min(100%, 540px);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

.hero-shark img {
  width: 100%;
  transform-origin: 42% 72%;
  -webkit-user-drag: none;
}

/* Seule animation du site : le requin salue quand on clique dessus. */
.hero-shark.is-bowing img {
  animation: bow 1100ms var(--ease);
}

@keyframes bow {
  0% {
    transform: rotate(0deg);
  }
  28% {
    transform: rotate(11deg) translateY(8px);
  }
  58% {
    transform: rotate(11deg) translateY(8px);
  }
  82% {
    transform: rotate(-2deg) translateY(0);
  }
  100% {
    transform: rotate(0deg);
  }
}

/* ---------- Vague ---------- */

.wave {
  height: 44px;
  background: url("/assets/img/wave.webp") repeat-x 0 50% / auto 100%;
}

/* ---------- Boutons crayonnés (9 parties) ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  padding: 0 32px;
  border: 1px solid transparent;
  border-image-slice: 78 80 fill;
  border-image-width: 30px;
  border-image-repeat: stretch;
  font: 700 19px/1.2 var(--font-display);
  text-align: center;
  text-decoration: none;
  transition: transform 180ms var(--ease);
}

.btn-primary {
  border-image-source: var(--primary-img);
  color: var(--on-primary);
}

.btn-secondary {
  border-image-source: url("/assets/img/pill-sea.webp");
  color: var(--sea-ink);
}

.btn:hover {
  transform: rotate(-1.5deg);
}

.btn:active {
  transform: scale(0.97);
}

/* ---------- Apps ---------- */

.apps {
  padding-block: 48px 104px;
}

.apps h2,
.contact h2 {
  margin: 0 0 32px;
  font-size: clamp(36px, 2.2vw + 22px, 54px);
  line-height: 1.06;
  letter-spacing: -0.015em;
}

.app-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.app-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  padding: 36px 32px 32px;
  border: 1px solid transparent;
  border-image: url("/assets/img/frame-sea.webp") 96 fill / 34px / 0 stretch;
  color: var(--sea-ink);
}





/* Emplacements « Soon » : pas encore d'app sous l'entreprise. */
.app-card--soon {
  align-items: center;
  justify-content: center;
  min-height: 220px;
  text-align: center;
}

.app-empty {
  width: 88px;
  height: auto;
}

.app-soon {
  margin: 16px 0 0;
  font: 800 26px/1.1 var(--font-display);
  color: var(--sea-ink);
}

/* ---------- Contact ---------- */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
  align-items: center;
  gap: 56px;
  padding-block: 0 112px;
}

.contact-shark {
  width: 100%;
}

.contact p {
  max-width: 38ch;
  margin: 0 0 32px;
  font-size: clamp(18px, 0.4vw + 15px, 20px);
  color: var(--ink-soft);
}

/* ---------- Pied de page ---------- */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 24px 40px;
  border-top: 2px solid var(--line);
  font-size: 15px;
  color: var(--ink-soft);
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  text-decoration: none;
}

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

/* ---------- Mentions légales ---------- */

.legal {
  max-width: calc(760px + 2 * var(--gutter));
  padding-block: 48px 104px;
}

.legal h1 {
  margin: 0 0 32px;
  font-size: clamp(38px, 2vw + 26px, 56px);
  line-height: 1.06;
}

.legal h2 {
  margin: 32px 0 8px;
  font-size: 22px;
  line-height: 1.3;
}

.legal p {
  margin: 0;
  color: var(--ink-soft);
}

.legal .btn {
  margin-top: 48px;
}

/* ---------- 404 ---------- */

.not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-block: 16px 104px;
}

.not-found img {
  width: min(340px, 72vw);
}

.not-found h1 {
  max-width: 18ch;
  margin: 8px 0 12px;
  font-size: clamp(32px, 2vw + 22px, 50px);
  line-height: 1.1;
}

.not-found p {
  margin: 0 0 32px;
  color: var(--ink-soft);
}

/* ---------- Responsive ---------- */

@media (max-width: 899px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    min-height: 0;
    padding-block: 0 48px;
  }
  .hero-shark {
    order: -1;
    width: min(80vw, 440px);
  }
  /* Les 3 emplacements « Soon » restent côte à côte, en compact. */
  .app-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
  .app-card--soon {
    min-height: 0;
    padding: 24px 8px 20px;
    border-image-width: 24px;
  }
  .app-empty {
    width: 56px;
  }
  .app-soon {
    margin-top: 10px;
    font-size: 19px;
  }
  .contact {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  .contact-shark {
    width: min(66vw, 320px);
    justify-self: center;
  }
}


@media (max-width: 479px) {
  :root {
    --gutter: 16px;
  }
  .brand {
    font-size: 20px;
  }
  .brand-mark {
    width: 32px;
  }
  .site-nav a {
    padding: 0 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .btn:hover,
  .btn:active {
    transform: none;
  }
  .hero-shark {
    cursor: default;
  }
}

@media (max-width: 374px) {
  .site-nav .nav-apps {
    display: none;
  }
}
