/* ============ Police (hébergée sur le site, licence SIL OFL) ============ */
@font-face {
  font-family: "Lora";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("assets/fonts/lora-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Lora";
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url("assets/fonts/lora-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============ Tokens ============ */
:root {
  --paper: #f7f4ee;
  --paper-2: #efe9df;
  --card: #fbf9f5;
  --ink: #1a1a1a;
  --ink-2: #3a3833;
  --muted: #6e685e;
  --line: #ddd5c7;
  --accent: #1f4fd6;

  --dark: #161616;
  --on-dark: #f7f4ee;
  --on-dark-muted: #b4ada1;
  --line-dark: rgba(247, 244, 238, .14);

  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 4px;
  --container: 1760px;
  --gutter: clamp(16px, 5vw, 96px);
  --section-y: clamp(72px, 10vw, 128px);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--ink);
  margin: 0;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
strong { font-weight: 600; color: var(--ink); }
mark { background: #fde68a; color: #1a1a1a; padding: 0 4px; border-radius: 2px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
}
.skip-link:focus { top: 16px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ============ Brand ============ */
.brand { display: inline-flex; align-items: center; }
.brand__logo { height: clamp(24px, 1.8vw, 32px); width: auto; }

/* ============ Buttons & links ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--ink);
  font: 500 .95rem/1 var(--sans);
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: var(--accent); border-color: var(--accent); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--sm { padding: 10px 16px; font-size: .875rem; }

.link {
  display: inline-flex;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: .95rem;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
  transition: text-decoration-color .15s, color .15s;
}
.link:hover { color: var(--accent); text-decoration-color: currentColor; }

/* Petits intitulés de section : italique, couleur d'accent */
.label, .eyebrow {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--accent);
}
.eyebrow i { font-style: normal; color: var(--muted); margin-inline: .45em; }
.eyebrow a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

/* ============ Nav ============ */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: clamp(68px, 5vw, 84px);
}
.nav__menu {
  display: flex;
  align-items: center;
  gap: 32px;
  font-family: var(--sans);
}
.nav__menu a:not(.btn) {
  color: var(--ink-2);
  font-size: .95rem;
  text-underline-offset: 6px;
}
.nav__menu a:not(.btn):hover,
.nav__menu a[aria-current="page"]:not(.btn) {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}
.nav__toggle span {
  width: 24px;
  height: 1.5px;
  background: var(--ink);
  transition: transform .25s, opacity .25s;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============ Hero ============ */
.hero {
  padding: clamp(150px, 15vw, 220px) 0 clamp(64px, 8vw, 112px);
  border-bottom: 1px solid var(--line);
}
.hero__title {
  margin-top: 28px;
  font-size: clamp(2.6rem, 6vw, 6.4rem);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -.02em;
  max-width: 17ch;
}
.accent { font-style: italic; color: var(--accent); }
.hero__lead {
  margin-top: 32px;
  max-width: 52ch;
  font-size: clamp(1.1rem, 1.35vw, 1.35rem);
  color: var(--ink-2);
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

/* ============ Page hero (pages internes) ============ */
.page-hero {
  padding: clamp(140px, 14vw, 200px) 0 clamp(56px, 7vw, 96px);
  border-bottom: 1px solid var(--line);
}
.page-hero__title {
  margin-top: 20px;
  font-size: clamp(2.4rem, 5vw, 5.2rem);
  line-height: 1.08;
  letter-spacing: -.02em;
  max-width: 18ch;
}
.page-hero--404 { min-height: 70vh; border-bottom: 0; }

/* ============ Sections ============ */
.section { padding-block: var(--section-y); }
.section + .section { border-top: 1px solid var(--line); }
.section--tint { background: var(--paper-2); }
.section__title {
  margin-top: 12px;
  font-size: clamp(2rem, 3.6vw, 3.8rem);
  max-width: 20ch;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px 64px;
  align-items: end;
}
.split--top { align-items: start; margin-top: 12px; }
.split--top .section__title { margin-top: 0; }
.prose { display: grid; gap: 18px; font-size: 1.15rem; max-width: 60ch; }
.prose .btn { justify-self: start; margin-top: 12px; }

/* ============ Pillars ============ */
.pillars {
  list-style: none;
  padding: 0;
  margin: clamp(56px, 7vw, 96px) 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.pillar { padding-top: 20px; border-top: 1px solid var(--ink); }
.pillar__n { font-family: var(--sans); font-size: .85rem; color: var(--muted); }
.pillar__word {
  margin: 10px 0 12px;
  font-size: clamp(1.8rem, 2.6vw, 2.6rem);
  font-style: italic;
}
.pillar p { color: var(--ink-2); }

/* ============ Badge ============ */
.badge {
  display: inline-block;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--sans);
  font-size: .78rem;
  color: var(--muted);
}

/* ============ Catalogue des produits (produits.html) ============ */
.catalog { list-style: none; padding: 0; margin: 0; display: grid; gap: 24px; }
.product-card__link {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  padding: clamp(28px, 4vw, 56px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  transition: border-color .15s;
}
.product-card__link:hover { border-color: var(--ink); }
.product-card__link:hover .link { color: var(--accent); text-decoration-color: currentColor; }
.product-card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.product-card__logo { width: 72px; height: auto; margin-bottom: 8px; }
.product-card__name { font-size: clamp(2rem, 3vw, 3rem); }
.product-card__tagline { font-size: 1.15rem; font-style: italic; color: var(--accent); }
.product-card__body .link { margin-top: 8px; }
.product-card__shot {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid #2a2a30;
  box-shadow: 0 24px 48px -28px rgba(22, 22, 22, .45);
}
.catalog__more { margin-top: 32px; font-style: italic; color: var(--muted); }

/* ============ Page produit (modèle : revikoa.html) ============ */
.product-hero { display: flex; align-items: center; gap: clamp(20px, 3vw, 36px); margin-top: 28px; }
.product-hero__logo { width: clamp(84px, 9vw, 128px); height: auto; flex-shrink: 0; }
.product-hero__name { margin-top: 12px; }

/* Comment ça marche : 3 étapes */
.how {
  list-style: none;
  padding: 0;
  margin: 48px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.how li { padding-top: 16px; border-top: 1px solid var(--ink); color: var(--ink-2); }
.how__n { display: block; font-family: var(--sans); font-size: .8rem; color: var(--accent); }
.how strong { display: block; margin: 6px 0 4px; font-size: 1.25rem; font-weight: 500; color: var(--ink); }

/* Fonctions : petites cartes */
.tools {
  list-style: none;
  padding: 0;
  margin: 48px 0 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.tool {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
}
.tool svg {
  width: 22px;
  height: 22px;
  margin-bottom: 8px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tool strong { font-family: var(--sans); font-size: .95rem; color: var(--ink); }
.tool span { font-size: .92rem; color: var(--muted); line-height: 1.45; }

/* Capture d'écran de l'application */
.app-shot { margin: clamp(40px, 5vw, 72px) 0 0; }
.app-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid #2a2a30;
  box-shadow: 0 30px 60px -30px rgba(22, 22, 22, .45);
}
.app-shot figcaption { margin-top: 12px; font-family: var(--sans); font-size: .85rem; color: var(--muted); }

/* ============ À propos ============ */
.founder {
  display: flex;
  align-items: flex-start;
  gap: clamp(28px, 4vw, 56px);
  margin-top: 12px;
}
.founder__photo {
  width: clamp(140px, 16vw, 240px);
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  flex-shrink: 0;
}
.founder__text { display: grid; gap: 14px; max-width: 60ch; font-size: 1.15rem; }
.founder__text .section__title { margin-top: 0; }
.founder__role { font-style: italic; color: var(--accent); }

.facts {
  margin: 48px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.facts > div { padding-top: 20px; border-top: 1px solid var(--ink); }
.facts dt { font-size: clamp(1.3rem, 1.8vw, 1.6rem); font-style: italic; color: var(--ink); }
.facts dd { margin: 10px 0 0; }
.facts .link { margin-top: 8px; }

/* ============ CTA band ============ */
.section--short { padding-block: clamp(48px, 6vw, 80px); }
.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
  padding: clamp(28px, 4vw, 56px);
  border-radius: var(--radius);
  background: var(--dark);
  color: var(--on-dark-muted);
}
.cta-band h2 { font-size: clamp(1.7rem, 2.6vw, 2.5rem); color: var(--on-dark); }
.cta-band p { margin-top: 10px; }
.cta-band .btn--primary { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.cta-band .btn--primary:hover { background: var(--accent); color: var(--paper); border-color: var(--accent); }

/* ============ Contact ============ */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 80px;
  align-items: start;
}
.contact__mail { margin-top: 32px; }
.contact__mail a {
  font-size: 1.5rem;
  font-style: italic;
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}
/* Petite note discrète sous l'email */
.contact__note {
  margin-top: 40px;
  max-width: 44ch;
  font-family: var(--sans);
  font-size: .88rem;
  color: var(--muted);
}

.form {
  display: grid;
  gap: 18px;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
.field { display: grid; gap: 8px; }
.field label { font-family: var(--sans); font-size: .9rem; font-weight: 500; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .15s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.form__error { color: #b3261e; font-family: var(--sans); font-size: .9rem; }
.form .btn { justify-self: start; }

/* ============ Footer ============ */
.footer {
  background: var(--dark);
  color: var(--on-dark-muted);
  padding-top: 64px;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 48px;
}
.footer__tagline { margin-top: 16px; font-style: italic; }
.footer__contact { margin-top: 8px; font-family: var(--sans); font-size: .95rem; }
.footer__contact a { color: var(--on-dark); text-decoration: underline; text-decoration-color: var(--line-dark); text-underline-offset: 5px; }
.footer__contact a:hover { text-decoration-color: currentColor; }
.footer__links { display: flex; flex-wrap: wrap; gap: 12px 32px; font-family: var(--sans); font-size: .95rem; }
.footer__links a:hover { color: var(--on-dark); text-decoration: underline; text-underline-offset: 5px; }
.footer__bottom {
  font-family: var(--sans);
  font-size: .85rem;
}
.footer__bottom p { padding-block: 24px; border-top: 1px solid var(--line-dark); }
.footer__bottom a { text-decoration: underline; text-underline-offset: 3px; }

/* ============ Mentions légales ============ */
.section--legal { padding-top: clamp(40px, 5vw, 64px); }
.legal > * { max-width: 70ch; }
.legal { color: var(--ink-2); font-size: 1.05rem; }
.legal h2 { margin: 48px 0 14px; font-size: 1.5rem; }
.legal h2:first-child { margin-top: 0; }
.legal p + p { margin-top: 14px; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
.legal__date { margin-top: 48px; font-family: var(--sans); font-size: .85rem; color: var(--muted); }

/* ============ Reveal animation ============ */
.js .reveal {
  opacity: 0;
  transition: opacity .6s ease;
}
.js .reveal.is-visible { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transition: none; }
}

/* ============ Responsive ============ */
@media (min-width: 1600px) {
  html { font-size: 18px; }
}

@media (max-width: 1000px) {
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .tools { grid-template-columns: repeat(3, 1fr); }
  .product-card__link { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .nav__toggle { display: flex; }
  .nav__menu {
    position: fixed;
    inset: 68px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 24px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s, visibility .2s;
  }
  .nav__menu.is-open { opacity: 1; visibility: visible; }
  .nav__menu a:not(.btn) { padding: 14px 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .nav__menu .btn { margin-top: 16px; }

  /* Menu ouvert : fond assombri sous le menu et page bloquée */
  body.menu-open { overflow: hidden; }
  body.menu-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(22, 22, 22, .4);
  }

  .split, .contact, .facts { grid-template-columns: 1fr; }
  .facts { gap: 32px; }
  .founder { flex-direction: column; }
}

@media (max-width: 560px) {
  .pillars, .how { grid-template-columns: 1fr; }
  .tools { grid-template-columns: 1fr 1fr; }
  .hero__ctas .btn { width: 100%; }
  .product-hero { flex-direction: column; align-items: flex-start; }
}
