/* Palette et typo reprises du site actuel (DESIGN.md du projet, branche master). */
@font-face {
  font-family: "Raleway";
  src: url("/fonts/raleway-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("/fonts/open-sans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --background: #f0f0f7;
  --surface: #ffffff;
  --text-primary: #43425d;
  --text-secondary: #6e6d89;
  --primary: #3b86ff;
  --accent: #ff92d4;
  --border: #d6d9ec;
  --shadow: 0 8px 16px 0 rgb(59 134 255 / 0.16);
  color-scheme: light;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 24px 16px;
  background:
    radial-gradient(circle at 15% 10%, rgb(59 134 255 / 0.14), transparent 45%),
    radial-gradient(circle at 85% 90%, rgb(255 146 212 / 0.18), transparent 45%),
    var(--background);
  color: var(--text-primary);
  font-family: "Open Sans", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

.card {
  width: 100%;
  max-width: 560px;
  padding: 48px 20px;
  background: var(--surface);
  border-radius: 28px;
  box-shadow: var(--shadow);
  text-align: center;
  position: relative;
  z-index: 1;
}

/* Statue de Rabelais (illustration du site actuel), toujours derrière le bloc.
   Mobile : centrée au-dessus du bloc, le socle posé sur son bord haut.
   Tablette (720–1199px) : grande, à droite du bloc qu'elle chevauche un peu,
   posée sur le bas de la page.
   Desktop (≥ 1200px) : en fond, ancrée en bas à droite de l'écran. */
.rabelais {
  order: -1;
  position: relative;
  z-index: 0;
  width: min(260px, 70vw);
  height: auto;
  margin-bottom: 0;
  pointer-events: none;
}

@media (min-width: 720px) and (max-width: 1199px) {
  /* Les 35 % gauches de l'image (halo + livre/coude) passent sous le bloc ;
     la tête, vers 50–65 % de la largeur, reste toujours visible.
     463px = largeur native de l'image, jamais agrandie au-delà. */
  body {
    --rabelais-w: min(52vw, 463px);
    grid-template-columns: minmax(0, 520px) calc(var(--rabelais-w) * 0.65);
    justify-content: center;
    align-content: stretch;
    padding-bottom: 0;
  }

  /* Le bloc garde 24px sous lui ; Rabelais, lui, est posé sur le bas de la page. */
  .card {
    margin-bottom: 24px;
  }

  .rabelais {
    order: 0;
    align-self: end;
    justify-self: end;
    width: var(--rabelais-w);
    margin-left: calc(var(--rabelais-w) * -0.35);
  }
}

@media (min-width: 1200px) {
  .rabelais {
    position: fixed;
    right: 0;
    bottom: 0;
    width: clamp(160px, 30vw, 440px);
    margin: 0;
  }
}

h1 {
  margin: 0 0 16px;
  line-height: 0;
}

/* Logo du site actuel (wordmark « Quatre Chemins », bleu primaire). */
.logo {
  width: 100%;
  max-width: 300px;
  height: auto;
}

.eyebrow {
  margin: 0 0 28px;
  font-family: "Raleway", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

p {
  margin: 0 0 12px;
}

.lead {
  font-size: 18px;
  font-weight: 700;
}

.button {
  display: inline-block;
  margin-top: 20px;
  padding: 14px 20px;
  border-radius: 999px;
  /* Bleu plein (pas le dégradé) : le blanc sur le rose du dégradé tombe à ~2:1.
     #3b86ff/blanc = 3,5:1, conforme AA en « grand texte » (≥ 18,66px gras). */
  background: var(--primary);
  box-shadow: var(--shadow);
  color: #fff;
  font-family: "Raleway", system-ui, sans-serif;
  font-size: 19px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 20px 0 rgb(59 134 255 / 0.24);
}

.button:focus-visible,
.en a:focus-visible {
  outline: 2px solid #1d4fbf;
  outline-offset: 3px;
}

.en a {
  color: var(--primary);
}

@media (prefers-reduced-motion: reduce) {
  .button {
    transition: none;
  }
}

hr {
  width: 64px;
  margin: 28px auto;
  border: 0;
  border-top: 2px solid var(--border);
}

.en {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
}

@media (min-width: 640px) {
  .card {
    padding: 64px 56px;
  }
}
