/* Colours, font and the grid cell size live in tokens.css; shapes/illustrations in shapes.css. */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; }   /* same width with or without a scrollbar: no sideways jump to/from the non-scrolling pro page */
body {
  margin: 0;
  font: 400 1.0625rem/1.6 var(--font);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--ap-navy); text-decoration-color: var(--ap-blue); text-decoration-thickness: 2px; text-underline-offset: .2em; }
a:hover { color: var(--ap-navy); text-decoration-color: var(--ap-orange); }
:focus-visible { outline: 3px solid var(--ap-orange); outline-offset: 3px; }
h1, h2, h3 { margin: 0 0 .5em; color: var(--ap-navy); font-weight: 700; line-height: 1.04; letter-spacing: -.022em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.8rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
h3 { font-size: 1.25rem; line-height: 1.2; letter-spacing: -.01em; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: #fff; padding: 8px 12px; }

/* ---- header ------------------------------------------------------------ */
.header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); }
.header__bar { display: flex; align-items: center; gap: 1.5rem; min-height: 76px; }
.logo { margin-right: auto; text-decoration: none; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav > ul { display: flex; gap: .25rem; }
.nav a { display: block; padding: .6rem .9rem; color: var(--ink); text-decoration: none; font-weight: 600; }
.nav a:hover { color: var(--ink); background: var(--ap-blue-100); }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--ap-orange); }
.has-sub { position: relative; }
.sub { display: none; position: absolute; top: 100%; left: 0; min-width: 280px; background: var(--paper); border: 1px solid var(--line-strong); padding: .4rem; }
.has-sub:hover > .sub, .has-sub:focus-within > .sub { display: block; }
.sub a { font-weight: 500; }
.burger, .nav__pro { display: none; }
.header__tel { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; color: var(--ap-navy); font-weight: 700; text-decoration: none; white-space: nowrap; }
.header__tel svg { width: 1.15rem; height: 1.15rem; flex: none; }
.header__tel:hover { color: var(--ap-navy); text-decoration: underline; text-decoration-color: var(--ap-orange); }
@media (max-width: 1180px) {
  /* icon-only tap-to-call, 44px touch target */
  .header__tel { width: 44px; height: 44px; border: 1.5px solid var(--ap-navy); }
  .header__tel span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 1100px) { .header__bar { gap: 1rem; } .nav a { padding-inline: .6rem; } }
.header__tel, .burger { flex: none; }
@media (max-width: 400px) { .header .wordmark { font-size: 1.2rem; } .header__bar { gap: .5rem; } }

/* ---- buttons: ink text on brand blue keeps contrast above 6:1 ---------- */
/* charter "Ombres": a block casts a hard shadow in a darker tone of its own hue.
   The call to action is the orange block with navy text (about 8:1). On hover it turns blue. */
.btn {
  display: inline-block; padding: .8rem 1.4rem; border: 0; border-radius: 0; cursor: pointer;
  background: var(--ap-orange); color: var(--ap-navy); font: inherit; font-weight: 700; line-height: 1.2; text-decoration: none;
  box-shadow: 4px 4px 0 var(--ap-orange-shadow); transition: box-shadow .12s, translate .12s;
}
.btn:hover { background: var(--ap-blue); color: var(--ap-navy); text-decoration: none; box-shadow: 4px 4px 0 var(--ap-blue-shadow); }
.btn:active { translate: 3px 3px; box-shadow: 1px 1px 0 var(--ap-orange-shadow); }
.btn--ghost { background: transparent; color: var(--ap-navy); box-shadow: inset 0 0 0 2px var(--ap-navy); }
.btn--ghost:hover { background: var(--ap-navy); color: #fff; box-shadow: 4px 4px 0 var(--ap-navy-shadow); }
.btn--sm { padding: .55rem 1rem; font-size: .95rem; }
.btn--pro { display: inline-grid; place-items: center; flex: none; width: calc(1.2em + 1.1rem); aspect-ratio: 1; padding: 0; background: var(--ap-blue); box-shadow: 4px 4px 0 var(--ap-blue-shadow); }   /* square, same height as Essai gratuit */
.btn--pro:hover { background: var(--ap-navy); color: #fff; box-shadow: 4px 4px 0 var(--ap-navy-shadow); }

/* ---- home: hero --------------------------------------------------------- */
.hero { position: relative; padding: clamp(2.5rem, 6vw, 5rem) 0 0; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: var(--cell) var(--cell); background-position: right top;
  mask-image: linear-gradient(to bottom, #000 40%, transparent 95%);
}
.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero__lead { max-width: 34rem; font-size: 1.15rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.hero__proof { display: flex; align-items: center; gap: .8rem; margin: 1.6rem 0 0; font-weight: 600; }
.hero__marks { display: grid; grid: repeat(2, .55rem) / repeat(2, .55rem); gap: .1rem; flex: none; }
.hero__marks .shape:nth-child(1) { grid-area: 1 / 1; }
.hero__marks .shape:nth-child(2) { grid-area: 2 / 2; }
.hero__tiles { position: relative; margin-top: clamp(2.5rem, 5vw, 4rem); padding-bottom: clamp(2rem, 4vw, 3rem); }

/* the agenda that fills itself: the one animated moment on the site */
.agenda { position: relative; padding: 1.1rem 1.2rem 1rem; background: var(--paper); border: 2px solid var(--ap-navy); box-shadow: 10px 10px 0 var(--ap-navy-shadow); }
.agenda__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .9rem; font-weight: 700; }
.agenda__live { display: inline-flex; align-items: center; gap: .45rem; font-size: .9rem; font-weight: 600; color: var(--muted); }
.agenda__live i { width: .55rem; height: .55rem; border-radius: 50%; background: var(--ok); }
.agenda__grid { display: grid; grid-template-columns: 2.4rem repeat(6, minmax(0, 1fr)); gap: 3px; }
.agenda__day, .agenda__hour { font-size: .8rem; font-weight: 600; color: var(--muted); }
.agenda__day { grid-column: var(--c); grid-row: 1; text-align: center; padding-bottom: .2rem; }
.agenda__hour { grid-column: 1; grid-row: var(--r); align-self: center; text-align: right; padding-right: .35rem; font-variant-numeric: tabular-nums; }
.slot { grid-column: var(--c); grid-row: var(--r); height: clamp(1.45rem, 2.7vw, 2.125rem); border: 1px solid var(--line-strong); border-radius: 2px; background: var(--paper); }
.slot--b, .slot--q { background: var(--ap-blue); border-color: var(--ap-blue); }
.slot--p { background: var(--ap-orange); border-color: var(--ap-orange); }
.slot--x { border-color: var(--grid); background: repeating-linear-gradient(135deg, var(--grid) 0 2px, transparent 2px 6px); }
.slot--b { animation: book .5s var(--d) both; }
.slot--p { animation: promo .5s var(--d) both; }
.slot--q { animation: promo-then-book 2.6s var(--d) both; }
@keyframes book { from { background: var(--paper); border-color: var(--line-strong); transform: scale(.82); } to { background: var(--ap-blue); border-color: var(--ap-blue); transform: none; } }
@keyframes promo { from { background: var(--paper); border-color: var(--line-strong); transform: scale(.82); } to { background: var(--ap-orange); border-color: var(--ap-orange); transform: none; } }
@keyframes promo-then-book {
  0% { background: var(--paper); border-color: var(--line-strong); transform: scale(.82); }
  15%, 62% { background: var(--ap-orange); border-color: var(--ap-orange); transform: none; }
  100% { background: var(--ap-blue); border-color: var(--ap-blue); }
}
.agenda__legend { display: flex; flex-wrap: wrap; gap: .25rem 1.1rem; margin: .9rem 0 .5rem; padding: 0; list-style: none; font-size: .85rem; }
.agenda__legend li { display: inline-flex; align-items: center; gap: .4rem; }
.agenda__legend .shape { width: .8rem; }
.agenda__legend .is-free { background: var(--paper); box-shadow: inset 0 0 0 1px var(--line-strong); }
.agenda__note { margin: 0; padding-top: .7rem; border-top: 1px solid var(--line); font-weight: 600; }

/* hero modules: ten modules flip in over the planning, four rounds. main.js toggles .is-on on each .mod.
   Only transform and opacity animate. Base state is the plain planning. */
.agenda__plan { position: relative; }
.agenda__grid { padding-bottom: 8px; }                       /* room for the panels' hard shadow */
.mod { display: contents; }
.mc { position: relative; z-index: 1; display: block; grid-column: var(--c); grid-row: var(--r); transform: perspective(520px) rotateY(0deg); transform-style: preserve-3d; transition: transform .55s ease-in-out var(--od); }
.mc b { position: absolute; inset: 0; border-radius: 2px; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.mc .bk { transform: rotateY(180deg); }
.mc .is-blue { background: var(--ap-blue); }
.mc .is-orange { background: var(--ap-orange); }
.mc .is-free { background: var(--paper); box-shadow: inset 0 0 0 1px var(--line-strong); }
.mod.is-on .mc { z-index: 2; transform: perspective(520px) rotateY(180deg); transition-delay: var(--d); }
.mod__panel {
  grid-column: var(--c1) / span 3; grid-row: var(--r1) / span 2; z-index: 3; box-sizing: border-box; display: flex; align-items: center;
  padding: 6px 12px; color: var(--ap-navy); font-size: .9375rem; line-height: 1.25; font-weight: 700; pointer-events: none;
  box-shadow: 0 0 0 3px var(--paper), 7px 7px 0 0 var(--sh);
  opacity: 0; transform: scale(.94); transition: opacity .2s ease-in, transform .2s ease-in;
}
.mod__panel.is-blue { background: var(--ap-blue); --sh: var(--ap-blue-shadow); }
.mod__panel.is-orange { background: var(--ap-orange); --sh: var(--ap-orange-shadow); }
.mod.is-on .mod__panel { opacity: 1; transform: scale(1); transition: opacity .25s ease-out var(--d), transform .25s ease-out var(--d); }
.agenda:not(.is-ready) .mc, .agenda:not(.is-ready) .mod__panel { visibility: hidden; }   /* until the planning has filled (and without JS) */
.agenda__toggle { position: absolute; inset: 0; z-index: 4; width: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; }
.agenda:not(.is-ready) .agenda__toggle { pointer-events: none; }
.agenda__bar { display: flex; align-items: center; gap: .6rem; min-height: 32px; margin-top: .6rem; visibility: hidden; }
.agenda.is-ready .agenda__bar { visibility: visible; }
.agenda__prev, .agenda__next { display: inline-grid; place-items: center; flex: none; width: 32px; height: 32px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.agenda__prev:hover, .agenda__next:hover { background: var(--ap-blue-100); }
.agenda__prev svg, .agenda__next svg { fill: var(--ap-navy); }
.agenda__rounds { display: grid; }
.lb { grid-area: 1 / 1; opacity: 0; transition: opacity .2s; white-space: nowrap; font-size: 1.25rem; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; color: var(--ap-navy); }
.lb.is-current { opacity: 1; }
.agenda__pause { display: none; gap: 4px; margin-left: .15rem; }
.agenda.is-paused .agenda__pause { display: inline-flex; }
.agenda__pause i { width: 4px; height: 14px; background: var(--ap-navy); }
.agenda__logo { margin-left: auto; }
.agenda__logo .wordmark { font-size: 1.15rem; }
@media (min-width: 641px) { .mc--m { display: none; } }
@media (max-width: 640px) {
  .mc--d { display: none; }
  .slot { height: 2.1rem; }
  .mod__panel { grid-column: var(--c2) / span 4; grid-row: var(--r2) / span 2; font-size: .875rem; }
  .agenda__prev, .agenda__next { width: 44px; height: 44px; }
  .agenda__logo { display: none; }
  .lb { font-size: 1.125rem; }
}

/* ---- home: services as two ruled lists ---------------------------------- */
.section { padding: clamp(3rem, 7vw, 6rem) 0; }
.section__title { max-width: 22ch; margin-bottom: clamp(1.75rem, 4vw, 3rem); }
.section__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem 1.25rem; margin-bottom: clamp(1.75rem, 4vw, 3rem); }
.section__head .section__title { margin: 0; }
.caption { margin: 0; color: var(--muted); font-size: .95rem; }
.groups { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); }
.group h3 { margin: 0; padding-bottom: .75rem; border-bottom: 3px solid var(--fill); font-size: 1.4rem; }
.group ul { margin: 0; padding: 0; list-style: none; }
.row { display: grid; grid-template-columns: .9rem 1fr; column-gap: 1rem; padding: 1.15rem 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.row .shape { grid-row: 1 / 3; width: .9rem; margin-top: .4rem; }
.row__t { font-weight: 700; font-size: 1.125rem; line-height: 1.3; }
.row__d { color: var(--muted); font-size: .98rem; }
.row:hover { color: var(--ink); text-decoration: none; background: var(--ap-blue-100); }
.row:hover .row__t { text-decoration: underline; text-decoration-color: var(--fill); text-decoration-thickness: 3px; text-underline-offset: .2em; }

.modules { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.section--grid { position: relative; border-top: 1px solid var(--ink); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: var(--cell) var(--cell); background-position: right top; }
.section--grid .wrap { position: relative; }
.modules { align-items: start; }
.modlist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(1.5rem, 4vw, 3rem); }
.modgroup { padding: 1rem 0 1.5rem; border-top: 1px solid var(--ap-navy); }
.modgroup h3 { margin: 0 0 .6rem; font-size: 1.15rem; }
.modgroup ul { margin: 0; padding: 0; list-style: none; }
.modgroup li { display: flex; align-items: baseline; gap: .7rem; padding: .25rem 0; }
.modgroup .shape { flex: none; width: .7rem; }
@media (max-width: 640px) { .modlist { grid-template-columns: 1fr; } }

/* ---- home: figures as a ruled grid -------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 clamp(1rem, 3vw, 2.5rem); }
.stat { padding: 1.1rem 0 1.6rem; border-top: 1px solid var(--ink); }
.stat__n { margin: 0; color: var(--ap-navy); font-size: clamp(2.1rem, 4.2vw, 3.4rem); font-weight: 700; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat__l { margin: .4rem 0 0; color: var(--muted); }
.fine { color: var(--muted); font-size: .9rem; margin-top: 1rem; }

.cta { background: var(--ap-blue); color: #fff; padding: clamp(2.5rem, 5vw, 4rem) 0; }
.cta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.cta h2 { max-width: 24ch; margin: 0; color: #fff; }

/* ---- inner pages --------------------------------------------------------- */
.banner {
  position: relative; display: flex; align-items: center; min-height: calc(var(--cell) * 3); margin-bottom: clamp(2rem, 4vw, 3.25rem);
  border-bottom: 1px solid var(--ink); overflow: hidden;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: var(--cell) var(--cell); background-position: right top;
}
.banner::before, .banner::after { content: ""; position: absolute; width: var(--cell); height: var(--cell); }
.banner::before { right: calc(var(--cell) * 2); top: var(--cell); background: var(--sq-a, var(--ap-orange)); }
.banner::after { right: var(--cell); top: calc(var(--cell) * 2); background: var(--sq-b, var(--ap-blue)); }
.banner--blue { --sq-a: var(--ap-blue); --sq-b: var(--ap-blue); }      /* Services pages */
.banner--orange { --sq-a: var(--ap-orange); --sq-b: var(--ap-orange); } /* Métiers pages */
.banner .wrap { position: relative; padding-block: 1.25rem; }
.banner h1 { margin: 0; font-size: clamp(2.2rem, 4.6vw, 3.8rem); }
.banner p { margin: .6rem 0 0; max-width: 40rem; font-size: 1.15rem; color: var(--muted); }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.prose { max-width: 70ch; }
.layout .prose { max-width: none; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .35em; }
.prose h2 { margin-top: 1.6em; }
.figure { margin: 0 0 1.5rem; }
.figure img { display: block; max-height: 340px; border-radius: var(--radius); }
.callout { padding: .9rem 1.2rem; border-left: 4px solid var(--ap-orange); background: var(--ap-blue-100); }
.linklist { columns: 2; }
.side { position: sticky; top: 100px; padding-left: 1.4rem; border-left: 3px solid var(--ap-blue); }
.side h2 { font-size: 1.15rem; }
.side ul { list-style: none; margin: 0 0 1.25rem; padding: 0; }
.side a:not(.btn) { display: flex; align-items: baseline; gap: .65rem; padding: .3rem 0; color: var(--ink); text-decoration: none; }
.side .shape { flex: none; width: .7rem; }
.side a:not(.btn):hover { text-decoration: underline; text-decoration-color: var(--ap-orange); }
.side a[aria-current="page"] { font-weight: 800; }
.side .btn { width: 100%; text-align: center; }
.demo { margin: 2rem 0 .5rem; padding: 1.4rem; border: 2px solid var(--ap-navy); box-shadow: 6px 6px 0 var(--ap-navy-shadow); }
.demo h2 { margin-top: 0; font-size: 1.5rem; }

/* métier tiles: one component, compact on the home page, full on the Métiers index */
.tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.25rem; margin: 0 0 2rem; padding: 0; list-style: none; }
.tile { display: flex; flex-direction: column; height: 100%; background: var(--paper); border: 1.5px solid var(--ap-navy); color: var(--ink); text-decoration: none; transition: box-shadow .12s, translate .12s; }
.tile:hover { color: var(--ink); text-decoration: none; box-shadow: 5px 5px 0 var(--ap-navy-shadow); translate: -2px -2px; }
.tile__media { position: relative; display: block; }
.tile__media img, .tile__media .sign { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0; }
.tile__mark { width: 56px; box-shadow: 4px 4px 0 var(--ap-orange-shadow); }
.tile__mark.is-blue { box-shadow: 4px 4px 0 var(--ap-blue-shadow); }
.tile__media .tile__mark { position: absolute; left: 1rem; bottom: -28px; }
.tile__body { display: block; padding: 2.1rem 1rem 1.2rem; }
.tile__name { display: block; color: var(--ap-navy); font-size: 1.15rem; font-weight: 700; line-height: 1.2; }
.tile__text { display: block; margin-top: .45rem; color: var(--muted); font-size: .95rem; line-height: 1.45; }
.tile:hover .tile__name { text-decoration: underline; text-decoration-color: var(--ap-orange); text-decoration-thickness: 3px; text-underline-offset: .2em; }
.tiles--compact { gap: .75rem; margin: 0; }
.tiles--compact .tile { flex-direction: row; align-items: center; gap: .7rem; padding: .75rem .9rem; }
.tiles--compact .tile__mark { width: 28px; flex: none; box-shadow: none; }
.tiles--compact .tile__name { font-size: 1rem; }
@media (max-width: 1100px) { .tiles:not(.tiles--compact) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .tiles:not(.tiles--compact) { grid-template-columns: 1fr; }
  .tiles--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles--compact li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* ---- pricing -------------------------------------------------------------- */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0; margin: 2.5rem 0 1.25rem; align-items: stretch; border: 1px solid var(--ink); }
.plan { position: relative; display: flex; flex-direction: column; padding: 1.6rem 1.3rem; border-left: 1px solid var(--line-strong); }
.plan:first-child { border-left: 0; }
.plan--featured { background: var(--ap-blue-100); box-shadow: inset 0 6px 0 var(--ap-orange); }
.plan__badge { margin: 0 0 .4rem; font-size: .88rem; font-weight: 700; color: var(--ap-navy); }
.plan h3 { font-size: 1.5rem; }
.plan__price { margin: 0 0 1rem; }
.plan__price span { color: var(--ap-navy); font-size: 3rem; font-weight: 700; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.plan__price small { color: var(--muted); font-size: .95rem; margin-left: .15rem; }
.plan ul { flex: 1; list-style: none; margin: 0 0 1.5rem; padding: 0; font-size: .95rem; }
.plan li { position: relative; padding: .4rem 0 .4rem 1.5rem; border-bottom: 1px solid var(--grid); }
.plan li::before { content: ""; position: absolute; left: 0; top: .78rem; width: .62rem; height: .62rem; background: var(--ap-blue); }
.plan li.no { color: var(--muted); }
.plan li.no::before { content: none; }
.plan .note { display: block; color: var(--muted); font-size: .82rem; }
.plan .btn { text-align: center; }
.pricing__tabs { display: none; }
@media (max-width: 640px) {
  /* one pack at a time: segmented buttons, price and button above the feature list */
  .pricing.has-tabs { display: block; border: 0; }
  .pricing.has-tabs .pricing__tabs { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); margin-bottom: 1rem; border: 1.5px solid var(--ap-navy); }
  .pricing__tabs button { min-height: 44px; padding: 0 .25rem; border: 0; border-left: 1.5px solid var(--ap-navy); background: var(--paper); color: var(--ap-navy); font: inherit; font-weight: 700; cursor: pointer; }
  .pricing__tabs button:first-child { border-left: 0; }
  .pricing__tabs button[aria-pressed="true"] { background: var(--ap-navy); color: #fff; }
  .pricing.has-tabs .plan { display: none; }
  .pricing.has-tabs .plan.is-selected { display: flex; }
  .pricing.has-tabs .plan .btn { order: 2; margin-bottom: 1.4rem; }
  .pricing.has-tabs .plan ul { order: 3; margin-bottom: 0; }
}
.packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: .5rem 3rem; margin: 2rem 0; }
.quote { display: flex; gap: 1.5rem; align-items: center; margin: 2.5rem 0; padding: 1.75rem 0; border-block: 1px solid var(--ink); }
.quote img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex: none; }
.quote p { margin-top: 0; font-size: 1.15rem; }
.quote footer { color: var(--muted); }

/* ---- contact, pro, legal -------------------------------------------------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(2rem, 5vw, 4rem); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form label { display: block; font-weight: 600; font-size: .95rem; }
.form .wide, .form .btn { grid-column: 1 / -1; }
.form .btn { justify-self: start; }
.form input, .form textarea { display: block; width: 100%; margin-top: .3rem; padding: .75rem; font: inherit; color: var(--ink); border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--paper); }
.form input:focus, .form textarea:focus { outline: 3px solid var(--ap-orange); outline-offset: 0; border-color: var(--ink); }
.req { color: var(--err); }
.coords { padding-left: 1.4rem; border-left: 3px solid var(--ap-orange); align-self: start; }
.coords h2 { font-size: 1.05rem; margin-top: 1.25em; }
.coords h2:first-child { margin-top: 0; }
/* Accès professionnels: the login iframe fills the screen between the site header and a one-line footer. */
.is-pro { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100vh; height: 100dvh; }
.is-pro main { min-height: 0; }
.pro__frame { display: block; width: 100%; height: 100%; border: 0; }
.profoot { display: flex; justify-content: center; flex-wrap: nowrap; gap: .4rem 2rem; padding: .45rem 20px; font-size: .9rem; white-space: nowrap; background: var(--ap-navy); color: #fff; }
.profoot a { color: #fff; }
.profoot a:hover { color: #fff; text-decoration-color: var(--ap-orange); }
@media (max-width: 420px) { .profoot { gap: 1.25rem; } .profoot__label { display: none; } }
.legal h2 { font-size: 1.2rem; margin-top: 1.8em; }
.legal { margin-bottom: 3.5rem; }

/* pages without a sidebar: a larger lead paragraph, lists as ruled rows with the logo squares as markers */
.lead { font-size: 1.25rem; line-height: 1.55; }
.ruled ul { margin: 0 0 1.75rem; padding: 0; list-style: none; border-top: 1px solid var(--ap-navy); }
.ruled li { position: relative; margin: 0; padding: .75rem 0 .75rem 1.7rem; border-bottom: 1px solid var(--line); }
.ruled li::before { content: ""; position: absolute; left: 0; top: 1.18rem; width: .7rem; aspect-ratio: 1; background: var(--ap-orange); }
.ruled li:nth-child(even)::before { background: var(--ap-blue); }
.ruled li.is-blue::before { background: var(--ap-blue); }
.ruled li.is-orange::before { background: var(--ap-orange); }
.ruled .linklist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(1.5rem, 4vw, 3rem); columns: auto; }
.ruled .linklist li { font-weight: 600; }
@media (max-width: 640px) { .ruled .linklist { grid-template-columns: 1fr; } }

/* ---- footer ----------------------------------------------------------------- */
.footer { margin-top: clamp(3rem, 7vw, 6rem); background: var(--ap-navy); color: color-mix(in oklab, #fff 78%, var(--ap-navy)); padding-top: 3rem; }
.footer a { color: #fff; }
.footer a:hover { color: #fff; text-decoration-color: var(--ap-orange); }
.footer h2 { margin-bottom: .6rem; font-size: 1rem; color: #fff; letter-spacing: 0; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: .25rem; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2rem; }
.footer__grid .wordmark { margin-bottom: 1rem; }
.footer__legal { width: min(1200px, 100% - 40px); margin: 3rem auto 0; padding: 1.25rem 0; border-top: 1px solid color-mix(in oklab, #fff 14%, var(--ap-navy)); font-size: .9rem; }

@media (max-width: 960px) {
  .hero__grid, .layout, .contact, .groups, .modules { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .side { position: static; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .linklist { columns: 1; }
  .header__cta { display: none; }
  .btn--pro { display: none; }   /* the header row has no room for it: first entry of the burger menu instead */
  .nav__pro { display: block; }
  .burger { display: block; width: 44px; height: 44px; border: 1px solid var(--ink); border-radius: var(--radius); background: var(--paper); cursor: pointer; position: relative; }
  .burger i, .burger i::before, .burger i::after { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); content: ""; }
  .burger i { top: 20px; }
  .burger i::before { top: -7px; left: 0; right: 0; }
  .burger i::after { top: 7px; left: 0; right: 0; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--ink); padding: .5rem 1.25rem 1.25rem; height: calc(100vh - 76px); height: calc(100dvh - 76px); overflow: auto; overscroll-behavior: contain; }
  /* open menu: a panel filling the visible screen below the header (dvh: not hidden under the browser toolbar),
     its scroll does not pass on to the page, and the page behind does not scroll (class set by main.js) */
  .menu-open { overflow: hidden; }
  .nav.open { display: block; }
  .nav > ul { flex-direction: column; }
  .nav .sub { display: block; position: static; border: 0; padding: 0 0 .6rem 1rem; min-width: 0; }
  /* expanded menu: PRO access as a blue block on top, a rule between sections, sub-pages smaller and indented
     under their section, the current page marked on the left (the desktop underline would read as a rule) */
  .nav > ul > li + li { border-top: 1px solid var(--line-strong); }
  .nav > ul > .nav__pro + li { border-top: 0; }
  .nav__pro { margin-bottom: .75rem; }
  .nav__pro a { background: var(--ap-blue); color: #fff; box-shadow: 4px 4px 0 var(--ap-blue-shadow); }
  .nav__pro a:hover { background: var(--ap-navy); color: #fff; }
  .nav > ul > li > a { padding-block: .8rem; }
  .sub a { padding-block: .4rem; color: var(--muted); }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--ap-orange); color: var(--ink); }
  .nav__pro a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--ap-orange), 4px 4px 0 var(--ap-blue-shadow); color: #fff; }
  .agenda { box-shadow: 6px 6px 0 var(--ap-navy-shadow); }
  .pricing { border: 0; gap: 1rem; }
  .plan { border: 1px solid var(--ink); }
  .plan:first-child { border-left: 1px solid var(--ink); }
}
@media (max-width: 560px) {
  :root { --cell: 40px; }
  .banner .wrap { padding-right: calc(var(--cell) * 2 - 4px); }   /* keep the standfirst clear of the head squares */
  .form { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .quote { flex-direction: column; align-items: flex-start; }
  .agenda { padding: .8rem; }
  .agenda__grid { grid-template-columns: 1.9rem repeat(6, minmax(0, 1fr)); gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  /* the hero modules only move once the visitor has pressed play (main.js adds .is-motion-ok) */
  .agenda.is-motion-ok .mc { transition: transform .55s ease-in-out var(--od) !important; }
  .agenda.is-motion-ok .mod.is-on .mc { transition: transform .55s ease-in-out var(--d) !important; }
  .agenda.is-motion-ok .mod__panel { transition: opacity .2s ease-in, transform .2s ease-in !important; }
  .agenda.is-motion-ok .mod.is-on .mod__panel { transition: opacity .25s ease-out var(--d), transform .25s ease-out var(--d) !important; }
}
