@font-face {
  font-family: "Codec Pro";
  src:
    local("Codec Pro"),
    local("CodecPro"),
    url("./fonts/CodecPro-Regular.woff2") format("woff2"),
    url("./fonts/CodecPro-Regular.woff") format("woff");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #2a1b0e;
  --cream: #fffdf0;
  --cream-warm: #faf6e8;
  --stroke: #3c2a21;
  --pink: #ff5fa8;
  --green: #7ad14a;
  --yellow: #f5d547;
  --mint: #c8ef8a;
  --stage: #fff6e8;
  --font-display: "League Spartan", system-ui, sans-serif;
  /* Codec Pro si fichiers présents / installée ; sinon Manrope */
  --font-body: "Codec Pro", Manrope, system-ui, sans-serif;
  --font-ui: "Codec Pro", Manrope, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  font-family: var(--font-ui);
  background: var(--stage);
  overflow-x: hidden;
}

.stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(820px 520px at 100% 0%, rgb(255 95 168 / 0.16), transparent 52%),
    radial-gradient(700px 460px at 0% 100%, rgb(122 209 74 / 0.18), transparent 55%),
    radial-gradient(560px 380px at 70% 30%, rgb(245 213 71 / 0.18), transparent 50%),
    linear-gradient(160deg, #fffdf0 0%, #ffe8f2 42%, #eef9d4 100%);
}

.shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 18px clamp(14px, 3vw, 48px) 40px;
  /* Demi-écran ~ ok ; grand écran : remplit mieux la largeur */
  width: min(1180px, 94vw);
  max-width: 1180px;
  margin: 0 auto;
}

/*
  Pinceaux :
  — droite : coin bas-gauche de l’image = coin bas-droit du board
  — gauche : un peu sous le board (inchangé)
*/
.board-stage {
  --stage-pad-t: 4%;
  --stage-pad-x: clamp(4%, 6vw, 8%);
  --stage-pad-b: 8%;
  position: relative;
  width: 100%;
  margin: 0 auto;
  padding: var(--stage-pad-t) var(--stage-pad-x) var(--stage-pad-b);
  overflow: visible;
}

.board-stage .board {
  position: relative;
  z-index: 2;
}

.brush-deco {
  position: absolute;
  width: 42%;
  max-width: min(400px, 32vw);
  min-width: 110px;
  height: auto;
  z-index: 3;
  pointer-events: none;
  filter: drop-shadow(0 8px 14px rgb(42 27 14 / 0.12));
}

/* Droite : même hauteur, décalé à gauche du coin bas-droit */
.brush-tr {
  top: auto;
  right: auto;
  left: calc(100% - var(--stage-pad-x) - 14%);
  bottom: var(--stage-pad-b);
  transform: rotate(5deg);
  transform-origin: 0% 100%;
}

/* Gauche : un peu sous le board */
.brush-bl {
  top: auto;
  right: auto;
  left: 0;
  bottom: -6%;
  width: 40%;
  transform: scaleX(-1) rotate(8deg);
  transform-origin: 30% 80%;
  z-index: 1;
}

.top {
  position: relative;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  /* Toujours collé aux bords de l’écran (hors colonne centrée) */
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  padding-left: clamp(14px, 3vw, 36px);
  padding-right: clamp(14px, 3vw, 36px);
  box-sizing: border-box;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  text-decoration: none;
  line-height: 0;
}

/* Sélecteur de langue — carrés arrondis comme les boards */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  flex-shrink: 0;
}

.lang-btn {
  appearance: none;
  border: 3px solid var(--stroke);
  margin: 0;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 14px;
  background: var(--cream);
  color: var(--stroke);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  line-height: 1;
  box-shadow: 0 5px 0 rgb(60 42 33 / 0.14);
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.lang-btn:hover:not(.is-active) {
  background: #fff8fb;
}

.lang-btn.is-active {
  background: var(--pink);
  color: #fff;
}

.lang-btn:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}

.lang-btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 rgb(60 42 33 / 0.14);
}

.brand-logo {
  display: block;
  height: auto;
  object-fit: contain;
}

.brand-logo-nav {
  width: 110px;
}

.brand-logo-hero {
  width: min(240px, 42vw);
  max-width: 100%;
  margin-inline: auto;
}

nav a {
  color: var(--stroke);
  font-weight: 800;
  font-size: 0.92rem;
  text-decoration: none;
  border-bottom: 2px solid rgb(60 42 33 / 0.3);
  padding-bottom: 2px;
}

/* Même encadré board partout */
.board {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 56px 1fr;
  background: var(--cream);
  border: 3px solid var(--stroke);
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 18px 0 rgb(60 42 33 / 0.14);
}

.board-hero {
  min-height: min(58vh, 580px);
}

.board-contact {
  margin-bottom: 8px;
}

.board-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px 0;
  background: linear-gradient(180deg, var(--mint), var(--green));
  border-right: 2.5px solid var(--stroke);
}

.swatch {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 2.5px solid var(--stroke);
  background: var(--cream);
}

.swatch-pink {
  background: var(--pink);
}
.swatch-green {
  background: var(--green);
}
.swatch-yellow {
  background: var(--yellow);
}

.board-canvas {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 5vw, 48px);
  background: var(--cream-warm);
}

.board-canvas-center {
  align-items: center;
  text-align: center;
}

.board-canvas-contact {
  align-items: center;
  text-align: center;
  gap: 22px;
  padding-block: clamp(28px, 5vw, 44px);
}

.brand-hero {
  margin: 0 0 14px;
  line-height: 0;
}

.tagline {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 35px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--stroke);
}

.lead {
  margin: 0 0 22px;
  max-width: 42em;
  font-size: 1.02rem;
  font-weight: 400;
  line-height: 1.45;
  color: var(--stroke);
}

.lead-center {
  margin-inline: auto;
}

.contact-lead {
  margin: 0;
  max-width: 48em;
  font-size: 1.02rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--stroke);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  align-items: center;
}

.cta-center {
  justify-content: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 2.5px solid var(--stroke);
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.pill-dark {
  background: var(--stroke);
  color: var(--cream);
}

.bridge,
.copy-block,
.section-title {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--stroke);
}

.bridge {
  margin: 28px auto 8px;
  max-width: 52em;
  width: 100%;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.5;
}

.copy-block {
  margin: 36px auto 0;
  max-width: 52em;
  width: 100%;
}

.copy-block h2,
.section-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 35px;
  font-weight: 700;
  line-height: 1.2;
}

.copy-block p,
.lead,
.contact-lead {
  font-family: var(--font-body);
  font-weight: 400;
}

.copy-block p {
  margin: 0 0 12px;
  font-size: 1.02rem;
  line-height: 1.55;
}

.section-title {
  margin: 48px auto 16px;
  max-width: 18ch;
}

.foot {
  position: relative;
  z-index: 5;
  display: flex;
  flex-wrap: nowrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 36px;
  padding-top: 8px;
  color: var(--stroke);
  font-weight: 700;
  font-size: 0.92rem;
}

.foot p {
  margin: 0;
  flex-shrink: 0;
}

.foot a {
  margin-left: auto;
  flex-shrink: 0;
  color: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

/* Privacy */
.legal {
  margin: 0 auto;
  padding: 8px 0 48px;
  max-width: 720px;
}

.legal-panel {
  position: relative;
  z-index: 2;
  background: var(--cream);
  border: 3px solid var(--stroke);
  border-radius: 28px;
  padding: clamp(20px, 4vw, 36px);
  color: var(--stroke);
  box-shadow: 0 18px 0 rgb(60 42 33 / 0.14);
}

.legal-brand {
  margin: 0 0 8px;
  line-height: 0;
}

.legal-brand .brand-logo-hero {
  width: min(160px, 40vw);
  margin: 0;
}

.legal h1 {
  margin: 10px 0 8px;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
}

.meta {
  margin: 0 0 22px;
  font-weight: 700;
  opacity: 0.75;
}

.legal h2 {
  margin: 24px 0 8px;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.legal p,
.legal li {
  font-weight: 700;
  line-height: 1.5;
}

.legal ul {
  padding-left: 1.2em;
}

.back {
  margin-top: 28px;
}

.back a {
  color: var(--stroke);
  font-weight: 800;
}

@media (min-width: 1100px) {
  .shell {
    width: min(1280px, 92vw);
    max-width: 1280px;
  }

  .board-stage {
    --stage-pad-t: 3%;
    --stage-pad-x: 5%;
    --stage-pad-b: 6%;
  }

  .brush-deco {
    width: 38%;
    max-width: 440px;
  }

  .brush-bl {
    width: 36%;
  }

  .tagline,
  .copy-block h2,
  .section-title {
    font-size: 40px;
  }

  /* Lien confidentialité collé au bord droit (hors pinceau) */
  .foot {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    padding-left: clamp(14px, 3vw, 48px);
    padding-right: clamp(14px, 3vw, 48px);
    box-sizing: border-box;
  }
}

@media (max-width: 720px) {
  .board-stage {
    --stage-pad-t: 6%;
    --stage-pad-x: 8%;
    --stage-pad-b: 10%;
  }

  .board {
    grid-template-columns: 44px 1fr;
    min-height: auto;
  }

  .board-hero {
    min-height: 0;
  }

  .brand-logo-hero {
    width: min(150px, 50vw);
  }
}

/* ——— Animations (ne modifie aucune position d’ancrage) ——— */

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes board-in {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Oscillation autour du pivot déjà défini — l’ancrage ne bouge pas */
@keyframes brush-sway-tr {
  0%,
  100% {
    transform: rotate(5deg);
  }
  50% {
    transform: rotate(8deg);
  }
}

@keyframes brush-sway-bl {
  0%,
  100% {
    transform: scaleX(-1) rotate(8deg);
  }
  50% {
    transform: scaleX(-1) rotate(5deg);
  }
}

@keyframes swatch-pop {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

@keyframes pill-glow {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgb(255 95 168 / 0);
  }
  50% {
    box-shadow: 0 8px 0 rgb(60 42 33 / 0.12);
  }
}

.top {
  animation: fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.board-stage-hero .board-hero {
  animation: board-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.board-stage-hero .brand-hero {
  animation: fade-up 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.22s both;
}

.board-stage-hero .tagline {
  animation: fade-up 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.34s both;
}

.board-stage-hero .lead {
  animation: fade-up 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.46s both;
}

.board-stage-hero .cta {
  animation: fade-up 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.58s both;
}

.brush-tr {
  animation: brush-sway-tr 7s ease-in-out infinite;
  animation-delay: 1s;
}

.brush-bl {
  animation: brush-sway-bl 8s ease-in-out infinite;
  animation-delay: 1.4s;
}

.swatch:nth-child(1) {
  animation: swatch-pop 3.2s ease-in-out infinite;
  animation-delay: 1.2s;
}
.swatch:nth-child(2) {
  animation: swatch-pop 3.2s ease-in-out infinite;
  animation-delay: 1.55s;
}
.swatch:nth-child(3) {
  animation: swatch-pop 3.2s ease-in-out infinite;
  animation-delay: 1.9s;
}

.board-hero .pill {
  animation: pill-glow 2.8s ease-in-out infinite;
  animation-delay: 1.2s;
}

.pill {
  transition: transform 0.25s ease, filter 0.25s ease;
}

.pill:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.pill:active {
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.08s;
}
.reveal-delay-2 {
  transition-delay: 0.16s;
}
.reveal-delay-3 {
  transition-delay: 0.24s;
}

@media (prefers-reduced-motion: reduce) {
  .top,
  .board-stage-hero .board-hero,
  .board-stage-hero .brand-hero,
  .board-stage-hero .tagline,
  .board-stage-hero .lead,
  .board-stage-hero .cta,
  .brush-tr,
  .brush-bl,
  .swatch,
  .board-hero .pill {
    animation: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .pill {
    transition: none;
  }

  .pill:hover,
  .pill:active {
    transform: none;
    filter: none;
  }
}
