/* Charades QC : le mini-site (accueil, confidentialité, soutien). Mêmes couleurs pis polices que l'app. */

@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('/fonts/bricolage-800.woff2') format('woff2');
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: 'Figtree';
  src: url('/fonts/figtree-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Figtree';
  src: url('/fonts/figtree-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

:root {
  --bleu: #2a4fd8;
  --bleu2: #2244c4;
  --bleu-creux: #1a36a3;
  --trait: rgba(169, 185, 240, 0.35);
  --creme: #fbf6ec;
  --brume: #dce3fa;
  --jaune: #ffd23f;
  --jaune-ombre: #c9a21f;
  --nuit: #15111f;
  --tomate: #ff5a45;
  --menthe: #3de0a6;
  --lilas: #a88bff;
  --titre: 'Bricolage Grotesque', 'Arial Black', system-ui, sans-serif;
  --corps: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bleu);
  color: var(--creme);
  font-family: var(--corps);
  font-weight: 500;
  font-size: 1.0625rem;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration-color: var(--jaune);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
a:hover {
  color: var(--jaune);
}
a:focus-visible {
  outline: 3px solid var(--jaune);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  font-family: var(--titre);
  font-weight: 800;
  line-height: 1.05;
  margin: 0;
}
h1 {
  font-size: clamp(2.25rem, 7vw, 3.5rem);
  letter-spacing: -0.02em;
}
h2 {
  font-size: 1.625rem;
  letter-spacing: -0.01em;
  margin-top: 3rem;
  margin-bottom: 1rem;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}
p {
  margin: 0;
}
strong {
  font-weight: 700;
}

/* En-tête pis pied */
.entete,
main,
.pied {
  width: min(100% - 48px, 1000px);
  margin-inline: auto;
}
.entete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 28px 8px;
}
.marque {
  display: block;
  color: var(--creme);
  line-height: 0;
}
.marque:hover {
  color: var(--creme);
}
.mot {
  height: 26px;
  width: auto;
}
.langue {
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: none;
  padding: 8px 16px;
  border: 2px solid var(--trait);
  border-radius: 999px;
}
.langue:hover {
  border-color: var(--jaune);
}

.pied {
  margin-top: 5rem;
  padding-block: 28px 40px;
  border-top: 2px solid var(--trait);
  color: var(--brume);
  font-size: 0.9375rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
}
.pied nav {
  display: flex;
  gap: 24px;
}
.pied nav a {
  font-weight: 700;
  color: var(--creme);
}
.pied nav a[aria-current='page'] {
  text-decoration-color: var(--creme);
}

/* Accueil */
.vedette {
  display: grid;
  gap: 40px;
  padding-top: 40px;
  align-items: center;
}
.vedette-texte {
  max-width: 34rem;
}
.chapeau {
  margin-top: 1.25rem;
  font-size: 1.1875rem;
  color: var(--brume);
}
.statut {
  margin-top: 1.5rem;
}
.statut strong {
  display: inline-block;
  background: var(--jaune);
  color: var(--nuit);
  padding: 4px 12px;
  border-radius: 10px;
  margin-right: 6px;
  transform: rotate(-2deg);
}

/* Trois tuiles de decks en éventail, comme dans l'app */
.eventail {
  position: relative;
  height: clamp(220px, 64vw, 300px);
  max-width: 420px;
  width: 100%;
  margin-inline: auto;
}
.tuile {
  position: absolute;
  width: 45%;
  aspect-ratio: 19 / 23;
  border-radius: 28px;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.3);
  background-image: radial-gradient(rgba(21, 17, 31, 0.13) 1.2px, transparent 1.4px);
  background-size: 11px 11px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tuile img {
  width: 78%;
  height: auto;
}
.tuile.tomate {
  background-color: var(--tomate);
}
.tuile.menthe {
  background-color: var(--menthe);
}
.tuile.lilas {
  background-color: var(--lilas);
}
/* Les tuiles de côté montrent leur objet du côté extérieur, la tuile du milieu cache le reste */
.tuile-1 {
  left: 4%;
  top: 13%;
  transform: rotate(-9deg);
  justify-content: flex-start;
}
.tuile-3 {
  right: 4%;
  top: 16%;
  transform: rotate(10deg);
  justify-content: flex-end;
}
.tuile-1 img,
.tuile-3 img {
  width: 62%;
}
.tuile-2 {
  left: 50%;
  top: 3%;
  transform: translateX(-50%) rotate(2deg);
  z-index: 1;
}

.bloc {
  max-width: 40rem;
}
.etapes {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: etape;
  display: grid;
  gap: 14px;
}
.etapes li {
  counter-increment: etape;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
  font-size: 1.125rem;
}
.etapes li::before {
  content: counter(etape);
  font-family: var(--titre);
  font-weight: 800;
  font-size: 1.25rem;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--creme);
  color: var(--nuit);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.25);
}

/* Confidentialité pis soutien */
.texte {
  max-width: 42rem;
  padding-top: 32px;
}
.date {
  margin-top: 0.75rem;
  color: var(--brume);
  font-size: 0.9375rem;
}
.resume {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.resume li {
  background: var(--bleu2);
  border-radius: 24px;
  padding: 20px 22px;
  box-shadow: 0 4px 0 var(--bleu-creux);
}
.resume p,
.sections p {
  color: var(--brume);
}
.sections {
  display: grid;
  gap: 22px;
}
.sections section + section {
  padding-top: 22px;
  border-top: 2px solid var(--trait);
}
.contact {
  margin: 0;
  display: grid;
  gap: 4px;
}
.contact dt {
  color: var(--brume);
  font-size: 0.9375rem;
}
.contact dt:not(:first-child) {
  margin-top: 14px;
}
.contact dd {
  margin: 0;
  font-weight: 700;
  font-size: 1.125rem;
}

.ecrire {
  margin-top: 1.75rem;
}
.bouton {
  display: inline-block;
  background: var(--jaune);
  color: var(--nuit);
  font-family: var(--titre);
  font-weight: 800;
  font-size: 1.125rem;
  text-decoration: none;
  padding: 16px 28px;
  border-radius: 16px;
  box-shadow: 0 4px 0 var(--jaune-ombre);
}
.bouton:hover {
  color: var(--nuit);
  transform: translateY(1px);
  box-shadow: 0 3px 0 var(--jaune-ombre);
}
.bouton:active {
  transform: translateY(4px);
  box-shadow: 0 0 0 var(--jaune-ombre);
}
.courriel {
  margin-top: 0.75rem;
  font-weight: 700;
}
.astuce {
  margin-top: 1.5rem;
  color: var(--brume);
}
.liens {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  font-weight: 700;
  font-size: 1.125rem;
}

@media (min-width: 820px) {
  .vedette {
    grid-template-columns: 1.1fr 1fr;
    padding-top: 72px;
  }
  .resume {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .bouton:hover,
  .bouton:active {
    transform: none;
  }
}
