/* Organic design system tokens, ported from the design handoff's
   styles.css root variables. Do not hand-tune without checking the source. */
:root {
  --color-bg: #f5ead8;
  --color-surface: #ebddc5;
  --color-text: #201e1d;
  --color-accent: #c67139;
  --color-accent-2: #7a8a5e;
  --color-divider: color-mix(in srgb, #201e1d 16%, transparent);

  --color-neutral-100: #f9f4ed;
  --color-neutral-200: #eee7db;
  --color-neutral-300: #dcd3c4;
  --color-neutral-400: #c0b6a5;
  --color-neutral-500: #a19786;
  --color-neutral-600: #82796a;
  --color-neutral-700: #645c50;
  --color-neutral-800: #474238;
  --color-neutral-900: #2e2b25;

  --color-accent-100: #fff2eb;
  --color-accent-200: #ffe1d0;
  --color-accent-300: #ffc6a5;
  --color-accent-400: #f6a06b;
  --color-accent-500: #d67f48;
  --color-accent-600: #b2622d;
  --color-accent-700: #8c491a;
  --color-accent-800: #643312;
  --color-accent-900: #402310;

  --color-accent-2-100: #f0fae1;
  --color-accent-2-200: #e1eecc;
  --color-accent-2-300: #ccdbb2;
  --color-accent-2-400: #aebf92;
  --color-accent-2-500: #8fa073;
  --color-accent-2-600: #728157;
  --color-accent-2-700: #56633f;
  --color-accent-2-800: #3d472b;
  --color-accent-2-900: #272e1b;

  /* Lait (milk type) map dot colors — not part of the tonal ramps, used
     verbatim as literal hex in the handoff (legend + dots + drawer). */
  --color-lait-vache: #c67139;
  --color-lait-chevre: #7a8a5e;
  --color-lait-brebis: #8c491a;
  --color-lait-melange: #b2622d;
  --color-lait-bufflonne: #645c50;

  --font-heading: 'Caprasimo', system-ui, sans-serif;
  --font-heading-weight: 400;
  --font-body: 'Figtree', system-ui, sans-serif;

  --space-1: 4.4px;
  --space-2: 8.8px;
  --space-3: 13.2px;
  --space-4: 17.6px;
  --space-6: 26.4px;
  --space-8: 35.2px;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px color-mix(in srgb, #2e2b25 14%, transparent);
  --shadow-md: 0 3px 10px color-mix(in srgb, #2e2b25 16%, transparent);
  --shadow-lg: 0 12px 32px color-mix(in srgb, #2e2b25 22%, transparent);
}


/* Landing page /decouvrir/ — préfixée au build par src/styles/tokens.css
   (jetons du design system Organic, les mêmes que l'application). */

@font-face {
  font-family: 'Caprasimo';
  src: url('fonts/caprasimo-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Figtree';
  src: url('fonts/figtree-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Figtree';
  src: url('fonts/figtree-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}

:root {
  /* Texte d'accent assombri : #c67139 n'atteint que 3:1 sur la crème,
     insuffisant pour du texte courant (WCAG AA 4,5:1). */
  --ink-accent: var(--color-accent-700);
  --ink-muted: var(--color-neutral-700);
  --wrap: 1120px;
}

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

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

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  line-height: 1.15;
  margin: 0 0 0.5em;
}
h1 {
  font-size: clamp(2.1rem, 6vw, 3.6rem);
}
h2 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
}
h3 {
  font-size: 1.25rem;
}
p {
  margin: 0 0 1em;
}

a {
  color: var(--ink-accent);
  text-underline-offset: 3px;
}
a:hover {
  color: var(--color-accent-800);
}
:focus-visible {
  outline: 3px solid var(--color-accent-2-700);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 720px) {
  .wrap {
    padding: 0 32px;
  }
}
.narrow {
  max-width: 820px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 20;
  background: var(--color-text);
  color: var(--color-neutral-100);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
}
.skip:focus {
  top: 12px;
}

.eyebrow {
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-accent);
  margin-bottom: 0.75em;
}
.muted {
  color: var(--ink-muted);
}
.accent {
  color: var(--ink-accent);
}

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-primary {
  background: var(--color-accent-700);
  color: var(--color-neutral-100);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover {
  background: var(--color-accent-800);
  color: var(--color-neutral-100);
}
.btn-light {
  background: var(--color-neutral-100);
  color: var(--color-accent-800);
}
.btn-light:hover {
  background: #fff;
  color: var(--color-accent-900);
}
.btn-ghost {
  color: var(--color-text);
  box-shadow: inset 0 0 0 2px var(--color-neutral-400);
}
.btn-ghost:hover {
  color: var(--color-text);
  box-shadow: inset 0 0 0 2px var(--color-neutral-700);
}
.btn-small {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 0.95rem;
  box-shadow: none;
}
.btn-arrow {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }
  .btn:hover {
    transform: none;
  }
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--color-bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-divider);
}
.header-row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: 'brand cta' 'nav nav';
  align-items: center;
  gap: 8px 16px;
  padding-top: 10px;
  padding-bottom: 6px;
}
.header-row > .brand {
  grid-area: brand;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--color-text);
  text-decoration: none;
}
.header-row > .btn {
  grid-area: cta;
}
.site-nav {
  grid-area: nav;
  /* Sur mobile, la navigation défile horizontalement plutôt que de se
     replier derrière un bouton : aucun JavaScript, tout reste au clavier. */
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 -16px;
  padding: 0 16px;
}
.site-nav ul {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 2px 0 4px;
  white-space: nowrap;
}
.site-nav a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.site-nav a:hover {
  background: var(--color-surface);
}
@media (min-width: 900px) {
  .header-row {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: 'brand nav cta';
    padding-bottom: 10px;
  }
  .site-nav {
    margin: 0;
    justify-self: center;
  }
}

/* ---------- Hero ---------- */

.hero {
  padding: 40px 0 64px;
  background:
    radial-gradient(circle at 85% 20%, var(--color-accent-200) 0, transparent 42%),
    radial-gradient(circle at 10% 90%, var(--color-accent-2-200) 0, transparent 38%);
}
.hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}
.lead {
  font-size: 1.2rem;
  max-width: 36em;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 32px;
}
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.stats li {
  background: var(--color-neutral-100);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  box-shadow: var(--shadow-sm);
}
.stats strong {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 1.3rem;
  color: var(--ink-accent);
  margin-right: 4px;
}
.hero-visual {
  justify-self: center;
  max-width: 300px;
  position: relative;
}
/* Trous de fromage — les mêmes que ceux du logo. */
.hero-visual::before,
.hero-visual::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: var(--color-accent-300);
  z-index: -1;
}
.hero-visual::before {
  width: 120px;
  height: 120px;
  left: -60px;
  top: 18%;
}
.hero-visual::after {
  width: 70px;
  height: 70px;
  right: -36px;
  bottom: 22%;
  background: var(--color-accent-2-300);
}
.credit {
  font-size: 0.8rem;
  color: var(--ink-muted);
  text-align: center;
  margin-top: 12px;
}
@media (min-width: 900px) {
  .hero {
    padding: 72px 0 96px;
  }
  .hero-grid {
    grid-template-columns: 1.25fr 1fr;
    gap: 64px;
  }
  .hero-visual {
    max-width: 330px;
  }
}

/* ---------- Cadre téléphone ---------- */

.phone {
  border-radius: 34px;
  padding: 8px;
  background: var(--color-neutral-900);
  box-shadow: var(--shadow-lg);
}
.phone img {
  border-radius: 27px;
  width: 100%;
}

/* ---------- Sections ---------- */

.section {
  padding: 64px 0;
}
.section-surface {
  background: var(--color-surface);
}
.section-lead {
  font-size: 1.15rem;
  max-width: 40em;
  color: var(--ink-muted);
  margin-bottom: 36px;
}
@media (min-width: 900px) {
  .section {
    padding: 96px 0;
  }
}

.split {
  display: grid;
  gap: 40px;
  align-items: start;
}
@media (min-width: 900px) {
  .split {
    grid-template-columns: 1.2fr 1fr;
    gap: 64px;
  }
}
.for-who {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 12px;
}
.for-who li {
  padding-left: 28px;
  position: relative;
}
.for-who li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-accent-500);
}

/* Carte d'identité : reprend la présentation de la fiche dans l'app. */
.id-card {
  background: var(--color-neutral-100);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
}
.id-card h3 {
  font-size: 2rem;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}
.badge {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--color-accent-2-200);
  color: var(--color-accent-2-800);
}
.id-card dl {
  margin: 20px 0;
}
.id-card dl > div {
  display: grid;
  grid-template-columns: 7.5em 1fr;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--color-divider);
}
.id-card dt {
  color: var(--ink-muted);
}
.id-card dd {
  margin: 0;
}
.notes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}
.chip {
  background: var(--color-accent-2-200);
  color: var(--color-accent-2-900);
  border-radius: var(--radius-pill);
  padding: 4px 14px;
  font-size: 0.95rem;
}

/* ---------- Fonctionnalités ---------- */

.features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
@media (min-width: 640px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1000px) {
  .features {
    grid-template-columns: repeat(3, 1fr);
  }
}
.feature {
  background: var(--color-neutral-100);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-accent-100);
  color: var(--ink-accent);
  margin-bottom: 16px;
}
.feature:nth-child(3n + 2) .feature-icon {
  background: var(--color-accent-2-100);
  color: var(--color-accent-2-700);
}
.icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature p {
  margin-bottom: 12px;
}
.feature .example {
  margin: auto 0 0;
  padding-top: 12px;
  border-top: 1px dashed var(--color-neutral-400);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--ink-muted);
}

/* ---------- Aperçu ---------- */

.shots {
  list-style: none;
  margin: 0;
  padding: 8px 16px 24px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(62vw, 240px);
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  max-width: var(--wrap);
  margin-inline: auto;
}
.shots li {
  scroll-snap-align: center;
}
.shots figure,
.desktop {
  margin: 0;
}
.shots figcaption,
.desktop figcaption {
  text-align: center;
  font-weight: 600;
  margin-top: 12px;
}
@media (min-width: 1000px) {
  .shots {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, minmax(0, 250px));
    grid-auto-columns: auto;
    justify-content: center;
    overflow: visible;
    padding-inline: 32px;
    gap: 48px 64px;
  }
}
.desktop {
  margin-top: 48px;
}
.desktop img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-divider);
}
.fineprint {
  font-size: 0.875rem;
  color: var(--ink-muted);
  margin-top: 24px;
  text-align: center;
}

/* ---------- Pourquoi ---------- */

.why {
  display: grid;
  gap: 40px;
}
@media (min-width: 900px) {
  .why {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}
.why h3 {
  margin-top: 0.5em;
}
.regions {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.regions li {
  background: var(--color-neutral-100);
  border-radius: var(--radius-pill);
  padding: 6px 8px 6px 14px;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.regions span {
  background: var(--color-accent-700);
  color: var(--color-neutral-100);
  border-radius: var(--radius-pill);
  min-width: 2em;
  text-align: center;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 1px 6px;
}

/* ---------- Installation ---------- */

.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 24px;
}
@media (min-width: 900px) {
  .steps {
    grid-template-columns: 1fr 1.4fr;
  }
}
.steps > li {
  counter-increment: step;
  background: var(--color-neutral-100);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
}
.steps > li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-accent-700);
  color: var(--color-neutral-100);
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: 16px;
}
.platforms {
  padding-left: 1.2em;
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
}

/* ---------- FAQ ---------- */

.faq {
  display: grid;
  gap: 12px;
}
.faq details {
  background: var(--color-neutral-100);
  border-radius: var(--radius-md);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 56px 18px 22px;
  position: relative;
  border-radius: var(--radius-md);
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--ink-accent);
}
.faq details[open] summary::after {
  content: '−';
}
.faq summary h3 {
  display: inline;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  margin: 0;
}
.faq details p {
  padding: 0 22px 18px;
  margin: 0;
}

/* ---------- Appel final ---------- */

.final {
  background: var(--color-accent-700);
  color: var(--color-neutral-100);
  padding: 72px 0;
  text-align: center;
  background-image:
    radial-gradient(circle at 12% 30%, color-mix(in srgb, #fff 9%, transparent) 0 60px, transparent 61px),
    radial-gradient(circle at 88% 70%, color-mix(in srgb, #fff 9%, transparent) 0 90px, transparent 91px);
}
.final p {
  font-size: 1.15rem;
  margin-bottom: 28px;
}
.final :focus-visible {
  outline-color: var(--color-neutral-100);
}

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

.site-footer {
  padding: 40px 0;
  background: var(--color-neutral-900);
  color: var(--color-neutral-200);
}
.footer-row {
  display: grid;
  gap: 20px;
}
.site-footer .brand {
  color: var(--color-neutral-100);
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.site-footer a {
  color: var(--color-neutral-100);
}
.site-footer a:hover {
  color: var(--color-accent-300);
}
.site-footer .muted {
  color: var(--color-neutral-400);
  font-size: 0.9rem;
  margin: 0;
}
.site-footer :focus-visible {
  outline-color: var(--color-accent-300);
}
@media (min-width: 900px) {
  .footer-row {
    grid-template-columns: auto 1fr;
    align-items: center;
  }
  .site-footer nav {
    justify-self: end;
  }
  .site-footer .muted {
    grid-column: 1 / -1;
  }
}
