/* Freaky Tools — page mère
   Feuille de style unique. Pas de framework, pas de build.
   Police Jost hébergée localement (aucun service tiers, aucun cookie).
   Couleurs de marque : voir _commun/MARQUE.md */

@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/jost-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193,
                 U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/jost-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
                 U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg:       #ffffff;
  --ink:      #1d1d1b;
  --muted:    #63635d;
  --hairline: #e7e5df;
  --teal:     #02869f;
  --yellow:   #f4ba06;
  --red:      #e30613;

  --font: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          Helvetica, Arial, sans-serif;

  --content: 1040px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--yellow); color: var(--ink); }

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

a { color: inherit; }

.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;
}

.wrap {
  width: 100%;
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- barre du haut : bascule de langue ---------- */
.topbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 20px 0;
}

.lang {
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 12px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  transition: border-color .25s var(--ease), color .25s var(--ease);
}
.lang:hover { color: var(--ink); border-color: var(--ink); }

/* ---------- hero ---------- */
.hero {
  text-align: center;
  padding: clamp(36px, 9vh, 92px) 0 clamp(32px, 6vh, 60px);
}

.hero__logo {
  width: clamp(264px, 48vw, 460px);
  margin: 0 auto clamp(28px, 4vh, 44px);
}

.hero h1 {
  font-weight: 400;
  font-size: clamp(1.2rem, 1.02rem + .9vw, 1.55rem);
  line-height: 1.35;
  letter-spacing: -.005em;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto;
  text-wrap: balance;
}

/* ---------- outils ---------- */
.tools {
  padding: clamp(24px, 4vh, 44px) 0 clamp(64px, 12vh, 120px);
}

.tools__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  max-width: 820px;
  margin: 0 auto;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: inherit;
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  padding: 40px 30px 34px;
  transition: border-color .3s var(--ease), transform .3s var(--ease),
              box-shadow .3s var(--ease);
}

a.card:hover {
  border-color: var(--teal);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px -18px rgba(2, 134, 159, .32);
}

.card__pastille {
  width: clamp(150px, 40vw, 190px);
  height: clamp(150px, 40vw, 190px);
  margin-bottom: 24px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.55;
  max-width: 30ch;
}

.card__soon {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: .66rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 4px 10px;
}

/* ---------- pied de page ---------- */
.foot {
  border-top: 1px solid var(--hairline);
  padding: 28px 0 44px;
  text-align: center;
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.7;
}
.foot a { text-decoration: none; border-bottom: 1px solid var(--hairline); }
.foot a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.foot__legal { display: inline-block; margin-top: 6px; }

/* ---------- pages de texte (mentions légales) ---------- */
.prose {
  max-width: 680px;
  margin: 0 auto;
  padding: clamp(24px, 5vh, 56px) 0 clamp(56px, 10vh, 100px);
}
.prose h1 { font-size: 1.6rem; font-weight: 500; margin: 0 0 8px; }
.prose h2 { font-size: 1.05rem; font-weight: 500; margin: 34px 0 6px; }
.prose p, .prose li { color: var(--muted); font-size: .95rem; }
.prose a { color: var(--teal); }
.prose .back { display: inline-block; margin-bottom: 24px; font-size: .85rem; color: var(--teal); text-decoration: none; }

/* ---------- petit écran ---------- */
@media (max-width: 640px) {
  .tools__grid { grid-template-columns: 1fr; }
  .card { padding: 32px 24px 28px; }
}

/* ---------- accessibilité ---------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

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