/* Lappzar — le bazar des app. Une seule feuille, sans dépendance : la
   police est hébergée ici (aucun appel à un service tiers). */

@font-face {
  font-family: "Geist";
  src: url("fonts/Geist-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --fond: #faf6ef;
  --surface: #ffffff;
  --encre: #241f1a;
  --doux: #6b625a;
  --trait: #e9e1d5;
  --accent: #c8643a;
  --accent-texte: #a84f2a;
  --sur-accent: #ffffff;
  --jaune: #e3b341;
  --bleu: #4f7cac;
  --vert: #6e8b4e;
  --orange: #e0845a;
  --ombre: 0 1px 2px rgb(36 31 26 / 6%), 0 8px 24px rgb(36 31 26 / 6%);
  --rayon: 22px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fond: #1c1916;
    --surface: #26221e;
    --encre: #f1ece4;
    --doux: #a59f96;
    --trait: #3a342e;
    --accent: #e0845a;
    --accent-texte: #f0a27c;
    --sur-accent: #1c1916;
    --ombre: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 25%);
  }
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--encre);
  background: var(--fond);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-texte); text-underline-offset: 3px; }
a:focus-visible, .bouton:focus-visible {
  outline: 3px solid var(--bleu);
  outline-offset: 3px;
  border-radius: 8px;
}

.page { max-width: 68rem; margin: 0 auto; padding: 0 1.25rem; }

.passer {
  position: absolute; left: -999px; top: 0;
  background: var(--surface); padding: .5rem 1rem; z-index: 10;
}
.passer:focus { left: 1rem; top: 1rem; }

/* En-tête */
.entete {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1.25rem 0;
}
.marque {
  display: inline-flex; align-items: center; gap: .65rem;
  color: var(--encre); text-decoration: none;
  font-weight: 750; font-size: 1.35rem; letter-spacing: -.02em;
}
.marque img { width: 40px; height: 40px; }
.nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.nav a { color: var(--doux); text-decoration: none; font-weight: 550; }
.nav a:hover { color: var(--encre); }

/* Accueil */
.accroche {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 3rem;
  align-items: center; padding: 3.5rem 0 4.5rem;
}
.accroche h1 {
  font-size: clamp(2.5rem, 6vw, 4.25rem); line-height: 1.02;
  letter-spacing: -.035em; margin: 0 0 1.25rem; font-weight: 800;
}
.accroche h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--orange), var(--jaune));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.accroche p { font-size: 1.2rem; color: var(--doux); margin: 0 0 2rem; max-width: 34rem; }

.bouton {
  display: inline-block; padding: .9rem 1.5rem; border-radius: 999px;
  background: var(--accent); color: var(--sur-accent);
  font-weight: 650; text-decoration: none;
  transition: transform .15s ease;
}
.bouton:hover { transform: translateY(-1px); }

.tuiles {
  position: relative; aspect-ratio: 1; max-width: 22rem; width: 100%;
  justify-self: center;
}
.tuiles span {
  position: absolute; width: 46%; aspect-ratio: 1; border-radius: 28%;
  box-shadow: var(--ombre);
}
.tuiles span:nth-child(1) { background: var(--jaune);  left: 4%;  top: 6%;  transform: rotate(-12deg); }
.tuiles span:nth-child(2) { background: var(--bleu);   right: 2%; top: 0;   transform: rotate(9deg); }
.tuiles span:nth-child(3) { background: var(--vert);   left: 18%; bottom: 2%; transform: rotate(6deg); }
.tuiles span:nth-child(4) {
  right: 6%; bottom: 10%; width: 40%;
  background: var(--surface) url("images/grim7.png") center / 100% no-repeat;
  transform: rotate(-6deg);
}

/* Sections */
section { padding: 3.5rem 0; border-top: 1px solid var(--trait); }
section h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.4rem); letter-spacing: -.025em;
  margin: 0 0 .5rem; line-height: 1.15;
}
.chapeau { color: var(--doux); margin: 0 0 2rem; max-width: 40rem; }

.principes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.principe {
  background: var(--surface); border-radius: var(--rayon);
  padding: 1.5rem; box-shadow: var(--ombre);
}
.principe h3 { margin: .75rem 0 .35rem; font-size: 1.15rem; }
.principe p { margin: 0; color: var(--doux); }
.pastille {
  width: 2.75rem; height: 2.75rem; border-radius: 30%;
  display: grid; place-items: center; color: #fff;
}
.pastille svg { width: 1.4rem; height: 1.4rem; }

.apps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.app {
  display: flex; flex-direction: column; gap: 1rem;
  background: var(--surface); border-radius: var(--rayon);
  padding: 1.75rem; box-shadow: var(--ombre);
}
.app-tete { display: flex; align-items: center; gap: 1rem; }
.app-tete img { width: 72px; height: 72px; border-radius: 22%; }
.app h3 { margin: 0; font-size: 1.5rem; letter-spacing: -.02em; }
.etat {
  display: inline-block; margin-top: .2rem; padding: .15rem .65rem;
  border-radius: 999px; font-size: .85rem; font-weight: 600;
  background: color-mix(in srgb, var(--jaune) 25%, transparent);
  color: var(--encre);
}
.app p { margin: 0; color: var(--doux); }
.app ul { margin: 0; padding-left: 1.2rem; color: var(--doux); }
.app .lien { margin-top: auto; font-weight: 650; }
.app.bientot {
  background: transparent; box-shadow: none;
  border: 2px dashed var(--trait); justify-content: center;
  align-items: flex-start;
}

.contact {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 1.5rem;
}

/* Pied */
.pied {
  border-top: 1px solid var(--trait); padding: 2rem 0 3rem;
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  color: var(--doux); font-size: .95rem;
}
.pied a { color: var(--doux); }

/* Texte long (mentions légales) */
.texte { max-width: 44rem; padding: 2rem 0 4rem; }
.texte h1 { font-size: 2.25rem; letter-spacing: -.03em; margin: 0 0 .5rem; }
.texte h2 { font-size: 1.3rem; margin: 2rem 0 .5rem; }
.texte p, .texte li { color: var(--encre); }
.a-completer { background: color-mix(in srgb, var(--jaune) 35%, transparent); padding: 0 .3rem; border-radius: 4px; }

@media (max-width: 760px) {
  .accroche { grid-template-columns: 1fr; gap: 2rem; padding: 2rem 0 3rem; }
  .tuiles { max-width: 15rem; }
  .principes, .apps { grid-template-columns: 1fr; }
  .entete { flex-wrap: wrap; row-gap: .5rem; }
  .nav { width: 100%; gap: 1.1rem; font-size: .95rem; }
}
