/* ==========================================================================
   Joe – für dich da!  |  Feuille de style principale

   Polices auto-hébergées : aucune requête vers Google Fonts, donc aucune
   adresse IP de visiteur transmise à un tiers. C'est ce qu'affirme la
   Datenschutzerklärung, et c'est aussi ce qu'exige la jurisprudence
   allemande sur l'intégration directe de Google Fonts.
   ========================================================================== */

/* ------------------------------------------------------------- polices -- */

/* Gabarito — titres. Police variable : un seul fichier par sous-ensemble
   couvre toutes les graisses de 400 à 900.
   SIL Open Font License 1.1 — voir assets/fonts/LICENCES.md */
@font-face {
  font-family: 'Gabarito';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/gabarito-latin.woff2') format('woff2');
  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: 'Gabarito';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/gabarito-latin-ext.woff2') format('woff2');
  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;
}

/* Hanken Grotesk — texte courant.
   SIL Open Font License 1.1 — voir assets/fonts/LICENCES.md */
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../fonts/hanken-grotesk-latin.woff2') format('woff2');
  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: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../fonts/hanken-grotesk-latin-ext.woff2') format('woff2');
  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;
}

/* ---------------------------------------------------------------------------
   Direction : un champ de couleur « aurore » — jamais de fond blanc — sur
   lequel flottent des panneaux de verre dépoli. Héros asymétrique, Joe dans
   un halo à droite. Les trois capacités portent chacune sa teinte, parce que
   ce sont trois choses différentes et non les étapes d'une séquence.
   --------------------------------------------------------------------------- */

:root {
  color-scheme: light;

  /* Fond : périvenche saturée, et quatre nappes de couleur par-dessus */
  --canvas:        #D7E1FF;
  --aurora-blue:   #9FC4FF;
  --aurora-lilac:  #D4C4FF;
  --aurora-mint:   #A8EFD6;
  --aurora-peach:  #FFD2B8;

  /* Verre dépoli : laisse passer la couleur du fond, ne blanchit pas la page */
  --panel:         rgba(252, 251, 255, 0.60);
  --panel-solid:   rgba(252, 251, 255, 0.86);
  --panel-edge:    rgba(255, 255, 255, 0.72);
  --panel-line:    rgba(39, 56, 120, 0.10);

  /* Encre */
  --ink:           #1A2350;
  --ink-soft:      #4C568A;
  --ink-faint:     #7B85AF;

  /* Accents */
  --blue:          #3B6FD4;
  --blue-deep:     #2A52A6;
  --coral:         #F26B4D;
  --mint:          #0F9E82;
  --amber:         #EFA00B;

  /* Typographie */
  --font-display: 'Gabarito', 'Trebuchet MS', system-ui, sans-serif;
  --font-body:    'Hanken Grotesk', 'Segoe UI', system-ui, -apple-system,
                  'Helvetica Neue', Arial, sans-serif;

  /* Rayons — volontairement variés, pour que tout ne se ressemble pas */
  --r-panel:  34px;
  --r-card:   28px;
  --r-soft:   18px;
  --r-tight:  12px;

  --shadow-lift: 0 18px 44px rgba(26, 35, 80, 0.10);
  --shadow-high: 0 30px 70px rgba(26, 35, 80, 0.16);
  --shadow-ink:  0 2px 10px rgba(26, 35, 80, 0.06);

  --maxw:   1120px;
  --gutter: 20px;
}

/* --------------------------------------------------------------- reset -- */

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

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.72;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: var(--blue-deep);
  font-weight: 600;
  text-decoration-color: rgba(59, 111, 212, 0.38);
  text-underline-offset: 3px;
}
a:hover { color: var(--blue); text-decoration-color: currentColor; }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.35rem, 7.4vw, 4.05rem);
  font-weight: 800;
  letter-spacing: -0.032em;
  line-height: 1.04;
}
h2 {
  font-size: clamp(1.6rem, 4.4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.022em;
}
h3 {
  font-size: 1.34rem;
  font-weight: 700;
  letter-spacing: -0.014em;
}
p { margin: 0 0 1.1em; }

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

/* ------------------------------------------------------- fond « aurore » -- */

.aurora {
  position: fixed;
  inset: -28%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(34% 40% at 14% 16%, var(--aurora-blue)  0%, transparent 64%),
    radial-gradient(32% 38% at 86% 10%, var(--aurora-lilac) 0%, transparent 62%),
    radial-gradient(40% 40% at 80% 78%, var(--aurora-mint)  0%, transparent 64%),
    radial-gradient(34% 34% at 16% 88%, var(--aurora-peach) 0%, transparent 62%);
  animation: aurora-drift 54s ease-in-out infinite alternate;
}

@keyframes aurora-drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(2.5%, -2%, 0) scale(1.07); }
  100% { transform: translate3d(-2%, 2.5%, 0) scale(1.03); }
}

/* ------------------------------------------------------------- layout -- */

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--blue-deep);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 var(--r-tight) 0;
  z-index: 60;
  font-weight: 600;
}
.skip-link:focus { left: 0; color: #fff; }

/* ------------------------------------------------------------- header -- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(247, 249, 255, 0.62);
  backdrop-filter: blur(16px) saturate(165%);
  -webkit-backdrop-filter: blur(16px) saturate(165%);
  border-bottom: 1px solid var(--panel-line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.06rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand__mark {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  box-shadow: var(--shadow-ink);
  flex: 0 0 auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.93rem;
}
.site-nav a {
  display: inline-block;
  padding: 9px 15px;
  border-radius: 999px;
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}
.site-nav a:hover {
  background: var(--panel-edge);
  color: var(--blue-deep);
}
.site-nav a[aria-current="page"] {
  background: var(--blue);
  color: #fff;
}

/* --------------------------------------------------------------- hero -- */

.hero { padding: 48px 0 24px; }

.hero__inner {
  display: grid;
  gap: 34px;
  align-items: center;
}

.hero__copy { min-width: 0; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 17px;
  margin-bottom: 22px;
  border-radius: 999px;
  background: var(--panel);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--panel-edge);
  box-shadow: var(--shadow-ink);
  font-size: 0.84rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: var(--blue-deep);
}
.badge__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(239, 160, 11, 0.25);
}

.hero__sub {
  font-family: var(--font-display);
  font-size: clamp(1.18rem, 3.2vw, 1.5rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--blue-deep);
  margin-bottom: 0.7em;
  max-width: 24ch;
}

.hero__lead {
  color: var(--ink-soft);
  font-size: 1.06rem;
  max-width: 42ch;
  margin-bottom: 0;
}

/* Joe dans son halo */
.hero__stage {
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.hero__stage::before,
.hero__stage::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  z-index: -1;
}
.hero__stage::before {
  width: min(400px, 92%);
  aspect-ratio: 1;
  background: radial-gradient(circle,
    rgba(255, 255, 255, 0.86) 0%,
    rgba(255, 255, 255, 0.34) 48%,
    rgba(255, 255, 255, 0) 72%);
}
.hero__stage::after {
  width: min(344px, 80%);
  aspect-ratio: 1;
  border: 2px dashed rgba(59, 111, 212, 0.26);
}

.hero__art {
  position: relative;
  width: min(290px, 70vw);
  filter: drop-shadow(0 26px 38px rgba(26, 35, 80, 0.20));
  animation: joe-float 6.5s ease-in-out infinite;
}

@keyframes joe-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-14px) rotate(-1.2deg); }
}

/* ----------------------------------------------------------- sections -- */

.section { padding: 56px 0; }

.section__head {
  max-width: 44ch;
  margin: 0 auto 38px;
  text-align: center;
}
.section__head p {
  color: var(--ink-soft);
  margin-bottom: 0;
}

.cards {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

.card {
  position: relative;
  min-width: 0;
  padding: 34px 28px 32px;
  border-radius: var(--r-card);
  background: var(--panel);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid var(--panel-edge);
  box-shadow: var(--shadow-lift);
  transition: transform 0.28s cubic-bezier(0.2, 0.7, 0.3, 1),
              box-shadow 0.28s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-high);
}

.card__halo {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  margin-bottom: 22px;
  border-radius: 24px;
  background: var(--halo, rgba(59, 111, 212, 0.14));
  transition: transform 0.28s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.card:hover .card__halo { transform: scale(1.06) rotate(-4deg); }

.card__halo img { width: 42px; height: 42px; }

.card h3 { color: var(--tone, var(--blue-deep)); }
.card p {
  color: var(--ink-soft);
  margin-bottom: 0;
}

/* Une teinte par capacité : ce sont trois choses distinctes */
.card--plaudern  { --tone: #C44A2C; --halo: rgba(242, 107,  77, 0.18); }
.card--entdecken { --tone: #0B7A64; --halo: rgba( 15, 158, 130, 0.17); }
.card--begleiten { --tone: #2A52A6; --halo: rgba( 59, 111, 212, 0.17); }

/* -------------------------------------------------------- bande repère -- */

.trust {
  padding: 44px 34px;
  border-radius: var(--r-panel);
  background: var(--panel);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid var(--panel-edge);
  box-shadow: var(--shadow-lift);
  text-align: center;
}
.trust h2 { margin-bottom: 0.6em; }
.trust p {
  color: var(--ink-soft);
  max-width: 56ch;
  margin-inline: auto;
  margin-bottom: 0;
}
.trust strong { color: var(--ink); }

/* -------------------------------------------------------------- legal -- */

.page-head {
  padding: 50px 0 14px;
  text-align: center;
}
.page-head p {
  color: var(--ink-soft);
  margin-bottom: 0;
}

.prose {
  max-width: 74ch;
  margin: 0 auto 60px;
  padding: 40px 30px;
  border-radius: var(--r-panel);
  background: var(--panel-solid);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--panel-edge);
  box-shadow: var(--shadow-lift);
}
.prose h2 {
  font-size: 1.32rem;
  margin-top: 2.1em;
  padding-top: 1.15em;
  border-top: 1px solid var(--panel-line);
  color: var(--blue-deep);
}
.prose h2:first-of-type {
  margin-top: 0.3em;
  padding-top: 0;
  border-top: 0;
}
.prose h3 {
  font-size: 1.08rem;
  margin-top: 1.7em;
  color: var(--ink);
}
.prose ul {
  padding-left: 1.2em;
  margin: 0 0 1.15em;
}
.prose li { margin-bottom: 0.5em; }
.prose li::marker { color: var(--blue); }

.prose address {
  font-style: normal;
  background: rgba(159, 196, 255, 0.24);
  border-radius: var(--r-soft);
  padding: 20px 22px;
  margin-bottom: 1.3em;
  line-height: 1.78;
}

.prose mark {
  background: #FFE48A;
  color: #5A4300;
  padding: 1px 6px;
  border-radius: 6px;
  font-weight: 600;
}

.prose__meta {
  font-size: 0.9rem;
  color: var(--ink-faint);
  margin-top: 2.3em;
  padding-top: 1.3em;
  border-top: 1px solid var(--panel-line);
  margin-bottom: 0;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.5em;
  font-size: 0.95rem;
  display: block;
  overflow-x: auto;
}
.prose th,
.prose td {
  border: 1px solid var(--panel-line);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  min-width: 150px;
}
.prose th {
  background: rgba(159, 196, 255, 0.28);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
}

/* ------------------------------------------------------------ footer -- */

.site-footer {
  margin-top: 8px;
  padding: 34px 0 32px;
  background: rgba(252, 251, 255, 0.52);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--panel-line);
}

.site-footer__inner {
  display: grid;
  gap: 16px;
  justify-items: center;
  text-align: center;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  font-weight: 600;
  font-size: 0.95rem;
}
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }

.site-footer__legal {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin: 0;
}

/* ------------------------------------------------------- breakpoints -- */

@media (min-width: 600px) {
  :root { --gutter: 28px; }
  .prose { padding: 48px 44px; }
}

@media (min-width: 760px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .card { padding: 36px 26px 34px; }
}

@media (min-width: 940px) {
  .hero { padding: 70px 0 34px; }
  .hero__inner {
    grid-template-columns: 1.08fr 0.92fr;
    gap: 44px;
  }
  .hero__copy  { order: 1; }
  .hero__stage { order: 2; }
  .hero__art { width: 330px; }
  .section { padding: 76px 0; }
  .section__head { margin-bottom: 46px; }
  .trust { padding: 54px 56px; }
  .prose { padding: 58px 64px; }
  .site-footer__inner {
    grid-template-columns: 1fr auto;
    justify-items: start;
    align-items: center;
    text-align: left;
  }
  .site-footer__inner .footer-nav { justify-content: flex-end; }
}

/* --------------------------------------------------- accessibilité -- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .aurora,
  .hero__art { animation: none; }
  .card,
  .card__halo,
  .site-nav a { transition: none; }
  .card:hover { transform: none; }
  .card:hover .card__halo { transform: none; }
}

/* Repli si le flou d'arrière-plan n'est pas pris en charge : les panneaux
   doivent rester lisibles, donc plus opaques. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .card,
  .trust,
  .badge        { background: rgba(252, 251, 255, 0.90); }
  .prose        { background: rgba(252, 251, 255, 0.96); }
  .site-header  { background: rgba(247, 249, 255, 0.94); }
  .site-footer  { background: rgba(252, 251, 255, 0.90); }
}
