@font-face {
  font-family: "Archivo";
  src: url("./fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --foret: #06331d;
  --vif: #07b85f;
  --menthe: #dff3e6;
  --rose: #ff7ab8;
  --white: #fff;

  /* Noms repris par le parcours de commande */
  --black: var(--foret);
  --green: #0b7a43;
  --green-deep: var(--foret);
  --green-bright: #8ff0b8;
  --green-tint: var(--menthe);
  --grey-1: #f1f8f3;
  --grey-2: #c9dfd1;
  --grey-3: #3f5a4c;
  --error: #b3261e;
  --error-tint: #fbeae8;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --snap: cubic-bezier(.2, .8, .2, 1);
  --gutter: clamp(20px, 4.4vw, 64px);
  --wide: 1320px;
  --pad: max(var(--gutter), calc((100% - var(--wide)) / 2));
  --bar-height: 64px;
  --section: clamp(72px, 10vw, 150px);
  --edge: clamp(26px, 6.5vw, 96px);

  --bg: var(--white);
  --ink: var(--foret);
  --muted: var(--grey-3);
  --line: rgba(6, 51, 29, .22);
  --fil: var(--vif);
  --btn-bg: var(--foret);
  --btn-ink: var(--white);
  --focus: var(--foret);
}

.band-vif { --bg: var(--vif); --ink: var(--foret); --muted: var(--foret); --line: rgba(6, 51, 29, .36); --fil: var(--white); }
.band-menthe { --bg: var(--menthe); --muted: #2f4f3f; --fil: var(--green); }
.band-white { --bg: var(--white); }
.band-foret, .site-bar, .site-foot {
  --bg: var(--foret); --ink: var(--white); --muted: #bfe0cc; --line: rgba(255, 255, 255, .28);
  --fil: var(--rose); --btn-bg: var(--vif); --btn-ink: var(--foret); --focus: var(--rose);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-height) + 32px); }
html.menu-open { overflow: hidden; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.55;
  color: var(--foret);
  background: var(--white);
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}
body > main { flex: 1 0 auto; overflow-x: clip; }

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { overflow-wrap: break-word; text-wrap: balance; }
h1 { font-size: clamp(50px, 8.4vw, 128px); font-weight: 900; font-stretch: 62%; line-height: .95; letter-spacing: -.008em; }
h2 { font-size: clamp(42px, 6.6vw, 96px); font-weight: 850; font-stretch: 68%; line-height: .98; letter-spacing: -.006em; }
h3 { font-size: 24px; font-weight: 700; line-height: 1.15; }
img, svg, iframe { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-underline-offset: 3px; }

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

[hidden] { display: none !important; }

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

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 40;
  padding: 10px 16px; background: var(--foret); color: var(--white);
}
.skip-link:focus { top: 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 0 26px;
  border: 2px solid var(--ink);
  background: transparent; color: var(--ink);
  font-size: 18px; font-weight: 700; text-decoration: none; white-space: nowrap;
  transition: transform .18s var(--snap), box-shadow .18s var(--snap), background-color .15s, color .15s;
}
.btn:hover { transform: translate(-3px, -3px); box-shadow: 5px 5px 0 var(--rose); }
.btn:active { transform: none; box-shadow: none; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-primary { border-color: var(--btn-bg); background: var(--btn-bg); color: var(--btn-ink); }
.btn-small { min-height: 40px; padding: 0 14px; font-size: 16px; }

.text-link { font-weight: 700; color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; }
.text-link:hover { text-decoration-color: var(--rose); }

/* En-tête commun */
.site-bar { position: sticky; top: 0; z-index: 30; background: var(--foret); color: var(--white); view-transition-name: barre; }
.site-bar-inner {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 8px 32px; flex-wrap: wrap;
  min-height: var(--bar-height); padding: 6px var(--pad);
}
.site-brand { position: relative; z-index: 2; font-size: 28px; font-weight: 800; font-stretch: 118%; line-height: 1; letter-spacing: -.02em; text-decoration: none; text-transform: lowercase; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 34px; font-size: 16px; }
.site-nav a { display: block; padding: 8px 0 12px; color: var(--muted); text-decoration: none; transition: color .15s; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--white); }
.site-nav a[aria-current="page"] {
  font-weight: 700;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='6'%3E%3Cpath d='M0 1l4 4 4-4 4 4 4-4' fill='none' stroke='%23ff7ab8' stroke-width='1.6'/%3E%3C/svg%3E") left bottom 2px / 16px 6px repeat-x;
}
.menu-btn { display: none; position: relative; z-index: 2; }

/* Pied de page */
.site-foot { position: relative; margin-top: calc(var(--edge) * -1); padding-top: var(--edge); background: var(--foret); color: var(--muted); font-size: 16px; clip-path: polygon(0 0, 25% var(--edge), 50% calc(var(--edge) * .22), 75% var(--edge), 100% 0, 100% 100%, 0 100%); }
.site-foot-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 32px; flex-wrap: wrap; padding: clamp(32px, 5vw, 64px) var(--pad) 32px; }
.site-foot-brand { font-size: clamp(56px, 19vw, 300px); font-weight: 900; font-stretch: 118%; line-height: .8; letter-spacing: -.04em; color: var(--white); text-decoration: none; text-transform: lowercase; }
.site-foot-links { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.site-foot-links a { text-decoration: none; }
.site-foot-links a:hover { color: var(--white); text-decoration: underline; }
main.flow { margin-bottom: var(--edge); }
main.flow ~ .site-foot .site-foot-brand { font-size: 34px; font-weight: 800; line-height: 1; letter-spacing: -.02em; }

/* Bandes et fil */
.hero, .page-head, .detail-head, .band { position: relative; background: var(--bg); color: var(--ink); }
.hero > :not(.fil), .page-head > :not(.fil), .detail-head > :not(.fil), .band > :not(.fil) { position: relative; z-index: 1; }
.fil { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.fil path { fill: none; stroke: var(--fil); stroke-width: 3; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }

main > * + .band {
  margin-top: calc(var(--edge) * -1); padding-top: var(--edge);
  clip-path: polygon(0 0, 25% var(--edge), 50% calc(var(--edge) * .22), 75% var(--edge), 100% 0, 100% 100%, 0 100%);
}
.band-inner { padding: var(--section) var(--pad); }
.page-head { padding: clamp(56px, 8vw, 120px) var(--pad) calc(clamp(64px, 8vw, 120px) + var(--edge)); }
.page-head h1 { max-width: 15ch; }
.page-lead { margin-top: 26px; max-width: 48ch; font-size: clamp(20px, 1.9vw, 25px); line-height: 1.4; }
.page-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 14px 48px; margin-bottom: clamp(36px, 5vw, 72px); }
.section-head h2 { max-width: 15ch; }
.section-head p { max-width: 38ch; color: var(--muted); }

.points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px clamp(32px, 5vw, 72px); }
.points.points-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.points p { margin-top: 14px; color: var(--muted); }
.h3-size { font-size: clamp(32px, 3.6vw, 50px); font-weight: 200; font-stretch: 122%; line-height: 1.04; letter-spacing: -.02em; }

.cta-row { display: flex; justify-content: space-between; align-items: end; gap: 28px 48px; flex-wrap: wrap; }
.cta-row h2 { max-width: 14ch; font-size: clamp(50px, 9vw, 136px); font-weight: 900; font-stretch: 62%; line-height: .94; }
.cta-row .plan-actions { margin-top: 0; }
.not-found-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.demo-mention { max-width: 66ch; margin-top: clamp(32px, 4vw, 52px); font-size: 16px; color: var(--muted); }

.badge { display: inline-block; padding: 2px 10px; background: var(--rose); color: var(--foret); font-size: 15px; font-weight: 700; font-stretch: 100%; line-height: 1.5; letter-spacing: 0; }

@media (max-width: 900px) {
  .points, .points.points-two { grid-template-columns: minmax(0, 1fr); }
}

/* Le menu ne se replie que si le script est actif : sans JavaScript, les liens restent visibles. */
@media (max-width: 720px) and (scripting: enabled) {
  .menu-btn {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
    border: 2px solid var(--white); background: none; color: var(--white); font-weight: 700;
  }
  .menu-btn ~ .site-nav {
    position: fixed; inset: 0; z-index: 1;
    display: flex; flex-direction: column; flex-wrap: nowrap; gap: 0;
    padding: calc(var(--bar-height) + 28px) var(--gutter) 28px;
    background: var(--foret);
    visibility: hidden; opacity: 0;
    transition: opacity .15s, visibility 0s .15s;
  }
  .menu-btn ~ .site-nav.is-open { visibility: visible; opacity: 1; transition: opacity .15s; }
  .menu-btn ~ .site-nav a {
    padding: 12px 0; background: none; color: var(--white);
    font-size: clamp(44px, 14vw, 64px); font-weight: 900; font-stretch: 62%; line-height: 1.02;
    transform: translateX(-24px); transition: transform .3s var(--snap);
  }
  .menu-btn ~ .site-nav.is-open a { transform: none; }
  .menu-btn ~ .site-nav a[aria-current="page"] { color: var(--rose); }
}

/* Passage d'une page à l'autre et effets liés au défilement */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: none; }
  ::view-transition-new(root) { animation: passage .5s var(--snap) both; }
  @keyframes passage {
    from { clip-path: polygon(0 100%, 25% 112%, 50% 104%, 75% 112%, 100% 100%, 100% 130%, 0 130%); }
    to { clip-path: polygon(0 -12%, 25% 0, 50% -9%, 75% 0, 100% -12%, 100% 100%, 0 100%); }
  }

  @supports (animation-timeline: view()) {
    .section-head h2, .cta-row h2 { animation: glisse linear both; animation-timeline: view(); animation-range: entry 0% entry 80%; }
    @keyframes glisse { from { transform: translateX(7vw); } to { transform: none; } }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
