/* Couleurs et polices reprises de l'app (src/styles.scss) */
/* DM Sans et Libre Baskerville servies par le site (OFL, voir fonts/) */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url('fonts/dm-sans-latin-ext-400-normal.woff2') format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url('fonts/dm-sans-latin-400-normal.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: 'DM Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url('fonts/dm-sans-latin-ext-500-normal.woff2') format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url('fonts/dm-sans-latin-500-normal.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: 'DM Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url('fonts/dm-sans-latin-ext-700-normal.woff2') format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url('fonts/dm-sans-latin-700-normal.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: 'Libre Baskerville';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url('fonts/libre-baskerville-latin-ext-400-normal.woff2') format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: 'Libre Baskerville';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url('fonts/libre-baskerville-latin-400-normal.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: 'Libre Baskerville';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url('fonts/libre-baskerville-latin-ext-700-normal.woff2') format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: 'Libre Baskerville';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url('fonts/libre-baskerville-latin-700-normal.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;
}

:root {
  --page: #ecf0e8;
  --paper: #fffdf8;
  --surface: #ffffff;
  --line: #d5d1c8;
  --ink: #29342f;
  --muted: #5c665e;
  --primary: #405b4b;
  --primary-dark: #2c4739;
  --pressed: #d9e7d9;
  --accent: #b3262d;
  --radius: 14px;
  --serif: 'Libre Baskerville', Georgia, serif;
  --sans: 'DM Sans', Arial, sans-serif;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  line-height: 1.2;
  margin: 0 0 0.5em;
}
h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  letter-spacing: -0.01em;
}
h1 span {
  color: var(--primary);
}
h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
}
h3 {
  font-size: 1.15rem;
}
p {
  margin: 0 0 1em;
}

.wrap {
  width: min(1140px, 100% - 32px);
  margin-inline: auto;
}

.eyebrow {
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.8em;
}

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 2px solid var(--primary);
  background: var(--primary);
  color: #fff;
  font: 700 1rem var(--sans);
  text-decoration: none;
  transition:
    background 0.15s,
    transform 0.15s;
}
.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}
.btn-small {
  min-height: 40px;
  padding: 0 18px;
  font-size: 0.92rem;
}
.btn-ghost {
  background: transparent;
  color: var(--primary);
}
.btn-ghost:hover {
  background: var(--pressed);
}
.btn-light {
  background: var(--paper);
  color: var(--primary-dark);
  border-color: var(--paper);
}
.btn-light:hover {
  background: #fff;
}
.btn-ghost-light {
  background: transparent;
  color: var(--paper);
  border-color: rgba(255, 253, 248, 0.6);
}
.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.08);
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 20px;
}
.cta-row.center {
  justify-content: center;
}

/* Barre du haut */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px max(16px, calc((100% - 1140px) / 2));
  background: rgba(236, 240, 232, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(213, 209, 200, 0.6);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font: 700 1.25rem var(--serif);
}
.brand img {
  border-radius: 8px;
}
.brand em {
  font-style: normal;
  color: var(--primary);
}
.topnav {
  display: flex;
  gap: 22px;
  margin-left: auto;
}
.topnav a {
  text-decoration: none;
  font-weight: 500;
  color: var(--muted);
}
.topnav a:hover {
  color: var(--ink);
}

/* Accueil */
.hero {
  padding: 64px 0 88px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}
.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 34em;
}
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.badges li {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
}
.hero-visual {
  position: relative;
  min-height: 600px;
}
.hero-visual .phone {
  position: absolute;
  right: 0;
  top: 0;
  width: 280px;
}
.phone-tilt {
  transform: rotate(3deg);
}

/* Capture de la grille annotée */
.sheet {
  position: absolute;
  left: 0;
  bottom: 10px;
  width: min(460px, 100%);
  margin: 0;
  background: var(--paper);
  border-radius: var(--radius);
  padding: 10px;
  box-shadow:
    0 20px 50px rgba(41, 52, 47, 0.22),
    0 2px 6px rgba(41, 52, 47, 0.08);
  transform: rotate(-2deg);
}
.sheet img {
  border-radius: 8px;
}
.tablet {
  margin: 0;
  padding: 14px;
  border-radius: 26px;
  background: #1e2622;
  box-shadow: 0 24px 60px rgba(41, 52, 47, 0.28);
}
.tablet img {
  border-radius: 14px;
  width: 100%;
}
.tablet figcaption {
  color: rgba(255, 253, 248, 0.6);
  font-size: 0.8rem;
  text-align: center;
  padding-top: 8px;
}

/* Téléphones */
.phone {
  margin: 0;
  border-radius: 34px;
  padding: 9px;
  background: #1e2622;
  box-shadow: 0 24px 60px rgba(41, 52, 47, 0.28);
}
.phone img {
  border-radius: 26px;
  width: 100%;
}

/* Sections de fonctions */
.feature {
  padding: 96px 0;
}
.feature-alt {
  background: var(--paper);
}
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.feature-grid.reverse .feature-text {
  order: 2;
}
.feature-text > p {
  color: var(--muted);
  font-size: 1.08rem;
}
.ticks {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 12px;
}
.ticks li {
  position: relative;
  padding-left: 30px;
}
.ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--pressed)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23405b4b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center/14px no-repeat;
}
.phones {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
}
.phones .phone {
  width: min(270px, 46%);
}
.phones-3 .phone {
  width: min(220px, 31%);
}
.phone-offset {
  margin-top: 64px;
}

/* Local d'abord */
.local {
  padding: 96px 0;
  text-align: center;
}
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 36px;
  text-align: left;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.card p {
  color: var(--muted);
  font-size: 0.96rem;
  margin: 0;
}

/* Appel final */
.btn-soon {
  flex-direction: column;
  min-height: 60px;
  cursor: default;
  opacity: 0.92;
}
.btn-soon:hover {
  transform: none;
  background: var(--paper);
}
.btn-soon small {
  font-weight: 500;
  font-size: 0.78rem;
  color: var(--muted);
}

.final {
  background: var(--primary-dark);
  color: var(--paper);
  padding: 96px 0;
  text-align: center;
}
.final-inner {
  max-width: 680px;
}
.final p {
  color: rgba(255, 253, 248, 0.8);
  font-size: 1.1rem;
}

.footer {
  padding: 28px 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

/* Tablette et téléphone */
@media (max-width: 900px) {
  .topnav {
    display: none;
  }
  .topbar .btn-small {
    margin-left: auto;
  }
  .hero {
    padding-top: 40px;
  }
  .hero-grid,
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .feature-grid.reverse .feature-text {
    order: 0;
  }
  .hero-visual {
    min-height: 560px;
    max-width: 460px;
    width: 100%;
    margin-inline: auto;
  }
  .hero-visual .phone {
    width: 240px;
  }
  .cards {
    grid-template-columns: 1fr 1fr;
  }
  .feature,
  .local,
  .final {
    padding: 64px 0;
  }
}
@media (max-width: 520px) {
  body {
    font-size: 16px;
  }
  .hero-visual {
    min-height: 440px;
  }
  .hero {
    padding-bottom: 40px;
  }
  .hero-visual .phone {
    width: 200px;
  }
  .sheet {
    padding: 6px;
  }
  .tablet {
    padding: 8px;
    border-radius: 18px;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .phone-offset {
    margin-top: 32px;
  }
  .phones {
    gap: 12px;
  }
  .phones-3 .phone {
    width: 31%;
  }
  .phone {
    border-radius: 22px;
    padding: 5px;
  }
  .phone img {
    border-radius: 18px;
  }
  .cta-row .btn {
    flex: 1 1 100%;
  }
}

/* Pages de secours des liens des e-mails (reset-password/, verify-email/) */
.app-link {
  padding: 64px 0 88px;
}
.app-link .wrap {
  max-width: 640px;
}
.app-link h1 {
  font-size: clamp(1.7rem, 5vw, 2.3rem);
}
.app-link p {
  line-height: 1.6;
}

/* Liens légaux du pied de page */
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}
.footer-links a {
  color: inherit;
}
.footer-links a:hover {
  color: var(--primary);
}

/* Pages légales */
.legal {
  padding: 48px 0 72px;
}
.legal .wrap {
  max-width: 760px;
}
.legal h1 {
  font-size: clamp(1.7rem, 5vw, 2.3rem);
}
.legal h2 {
  font-size: 1.25rem;
  margin-top: 2em;
}
.legal p,
.legal li {
  line-height: 1.6;
}
.legal .maj {
  color: var(--muted);
  font-size: 0.9rem;
}
.legal .back {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--primary);
}
.legal .table-scroll {
  overflow-x: auto;
  margin: 0 0 1em;
}
.legal table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.92rem;
  background: var(--surface);
}
.legal th,
.legal td {
  border: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}
.legal th {
  background: var(--pressed);
}
.legal mark {
  background: #fbe3a6;
  color: var(--ink);
  padding: 0 3px;
  border-radius: 3px;
}
