/*
 * Douceia - site vitrine.
 *
 * Palette et typographie : douceia-identite-visuelle.md (dépôt de l'app).
 * Deux écarts assumés :
 *  - le texte secondaire est en Prune 500 (#6B5573) et non en "texte
 *    secondaire" (#766A79) : ce dernier tombe sous 4,5:1 sur Prune 50, le
 *    minimum WCAG AA pour du texte courant ;
 *  - l'ocre n'apparaît qu'une fois par page, sur la pastille "bientôt sur
 *    Google Play" - la règle "un seul accent par écran" du guide.
 *
 * Les polices sont servies depuis ce site, jamais depuis Google : un appel à
 * fonts.googleapis.com transmet l'adresse IP de chaque visiteur à Google, ce
 * que la promesse "aucun traceur" ne permet pas. Licences : assets/fonts/OFL-*.
 */

@font-face {
  font-family: "Fraunces";
  src: url("fonts/Fraunces-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("fonts/Manrope-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("fonts/Manrope-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("fonts/Manrope-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --plum-900: #2E2432;
  --plum-700: #4A3350;
  --plum-500: #6B5573;
  --plum-100: #E4DCE6;
  --plum-50: #F5F1F3;
  --ochre-500: #C98A3E;
  --ochre-100: #F5E4CC;
  --sage-600: #5D7862;
  --white: #FFFFFF;
  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--plum-50);
  color: var(--plum-900);
  font: 400 1.0625rem/1.65 "Manrope", system-ui, -apple-system, "Segoe UI",
    Roboto, sans-serif;
}

img { max-width: 100%; height: auto; }

a { color: var(--plum-700); text-underline-offset: 0.2em; }

a:focus-visible {
  outline: 3px solid var(--plum-700);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  background: var(--white);
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  z-index: 10;
}

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

/* En-tête ---------------------------------------------------------------- */

header.site { padding: 1.25rem 0; }

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.lockup {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: var(--plum-700);
}
.lockup img { height: 2.6rem; width: auto; }
.lockup span {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-size: 1.625rem;
  letter-spacing: 0.01em;
}

.lang { font-weight: 600; font-size: 0.9375rem; }

/* Accroche --------------------------------------------------------------- */

.hero { padding: 2rem 0 3.5rem; }


h1 {
  font-weight: 700;
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem);
  line-height: 1.15;
  margin: 0 0 1rem;
}
h2 {
  font-weight: 700;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  line-height: 1.2;
  margin: 0 0 0.75rem;
}
h3 {
  font-weight: 700;
  font-size: 1.125rem;
  margin: 0 0 0.35rem;
}

.lead { font-size: 1.1875rem; max-width: 36rem; margin: 0; }

.facts {
  color: var(--plum-500);
  font-weight: 600;
  margin: 1.5rem 0 0.9rem;
}

.soon {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--ochre-100);
  color: var(--plum-900);
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  font-weight: 600;
}
.soon::before {
  content: "";
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--ochre-500);
}


/* Bandes ----------------------------------------------------------------- */

section.band { padding: 3.5rem 0; }
section.band.alt { background: var(--white); }

.intro {
  color: var(--plum-500);
  max-width: 42rem;
  margin: 0 0 2rem;
}

.grid { display: grid; gap: 1.25rem; }
@media (min-width: 40rem) {
  .grid.two, .grid.three { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 62rem) {
  .grid.three { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--white);
  border: 1px solid var(--plum-100);
  border-radius: 1rem;
  padding: 1.25rem 1.35rem;
}
section.alt .card { background: var(--plum-50); }
.card p { margin: 0; color: var(--plum-500); }

.split {
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 52rem) {
  .split { grid-template-columns: 1fr 1.5fr; }
}
.split img { width: min(15rem, 55vw); justify-self: center; }

ul.plain {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.9rem;
  max-width: 46rem;
}
ul.plain li { padding-left: 1.6rem; position: relative; }
ul.plain li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--sage-600);
}

.notice {
  background: var(--white);
  border: 1px solid var(--plum-100);
  border-radius: 1rem;
  padding: 1.5rem;
  max-width: 46rem;
}
.notice p { margin: 0 0 0.9rem; }
.notice p:last-child { margin-bottom: 0; }

/* Pages légales ---------------------------------------------------------- */
/* Le texte vient de l'application (tools/sync-legal.ps1) ; seule sa mise en
   forme est d'ici. Le brouillon porte l'unique accent ocre de la page ; les
   blancs "à compléter" restent en prune, pour ne pas en ajouter un second. */

.legal .wrap { max-width: 46rem; padding-top: 1rem; padding-bottom: 3.5rem; }
.legal h1 { margin-bottom: .5rem; }
.legal h2 {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--plum-100);
}
.legal p { margin: 0 0 1rem; }
.legal .version { color: var(--plum-500); font-size: .9375rem; }
.legal code {
  background: var(--plum-100);
  padding: .1rem .35rem;
  border-radius: .25rem;
  font-size: .9em;
}
.legal .draft {
  background: var(--ochre-100);
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}
.legal .publisher {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: .45rem 1.25rem;
  margin: 0;
}
.legal .publisher dt { color: var(--plum-500); font-weight: 600; }
.legal .publisher dd { margin: 0; }
.legal .todo {
  background: var(--plum-100);
  border-radius: .35rem;
  padding: 0 .4rem;
}
.legal .table-wrap { overflow-x: auto; }
.legal table { border-collapse: collapse; width: 100%; font-size: .9375rem; }
.legal th, .legal td {
  text-align: left;
  vertical-align: top;
  padding: .65rem .5rem;
  border-bottom: 1px solid var(--plum-100);
}
.legal th { color: var(--plum-500); font-weight: 600; }
.legal tr.pending td, .legal .quiet { color: var(--plum-500); }
@media (max-width: 30rem) {
  .legal .publisher { grid-template-columns: 1fr; gap: 0; }
  .legal .publisher dd { margin-bottom: .6rem; }
}

/* Pied de page ----------------------------------------------------------- */

footer.site {
  padding: 2.5rem 0 3rem;
  color: var(--plum-500);
  font-size: 0.9375rem;
}
footer.site .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
}
footer.site nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

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