/* Shapes and illustrations that used to be raster images, rebuilt as HTML text + CSS.
   Colours come only from tokens.css. */

/* ---- primitives -------------------------------------------------------- */
.shape { display: inline-block; aspect-ratio: 1; background: var(--fill, var(--ap-blue)); }
.is-orange { --fill: var(--ap-orange); }
.is-blue { --fill: var(--ap-blue); }
.is-circle { border-radius: 50%; }
.is-pill { border-radius: 999px; }

/* ---- logo wordmark (replaces logo-auto-planning2.png + favicon) -------- */
.wordmark {
  display: inline-grid;
  grid-template-areas: "name marks" "tag marks";
  align-items: center;
  column-gap: .3em;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--ink);
  white-space: nowrap;
}
.wordmark__name { grid-area: name; font-weight: 300; letter-spacing: .01em; }
.wordmark__name b { font-weight: 700; }
.wordmark__tag { grid-area: tag; margin-top: .55em; font-size: .3em; font-weight: 400; letter-spacing: .09em; text-transform: uppercase; opacity: .7; }
.wordmark__marks { grid-area: marks; display: grid; grid-template: repeat(3, .3em) / repeat(2, .3em); gap: .05em; }
.wordmark__marks .shape:nth-child(1) { grid-area: 1 / 1; }
.wordmark__marks .shape:nth-child(2) { grid-area: 2 / 2; }
.wordmark__marks .shape:nth-child(3) { grid-area: 3 / 1; }
.wordmark--light { color: #fff; }
.wordmark--compact .wordmark__tag { display: none; }
.wordmark--compact { grid-template-areas: "name marks"; }

/* ---- web-design devices (replaces Fotolia_76507219_XS.jpg) ------------- */
.mock {
  container-type: inline-size; position: relative; width: min(100%, 430px); aspect-ratio: 465 / 258; overflow: hidden;
  border-radius: var(--radius); background: linear-gradient(160deg, var(--ap-blue), var(--ap-navy));
}
.mock::after { content: ""; position: absolute; inset: auto 0 0; height: 27%; background: #f2f6f9; }
.mock__stage { position: absolute; inset: 0; z-index: 1; font-size: max(5px, 1.55cqw); }
.device { position: absolute; padding: .5em; background: #232a30; border-radius: .7em; box-shadow: 0 .4em 1em rgba(0, 0, 0, .25); }
.device--monitor { left: 49%; top: 13%; width: 31%; }
.device--monitor::after { content: ""; position: absolute; left: 36%; right: 36%; top: 100%; height: 3.8cqw; background: #cfd6dc; border-radius: 0 0 .3em .3em; }
.device--panel { left: 71%; top: 39%; width: 25%; }
.device--phone { left: 16%; top: 37%; width: 10.5%; padding: .35em; border-radius: .6em; }
.device--tablet { left: 21%; top: 61%; width: 26%; rotate: -9deg; }
.screen { background: #fff; border-radius: .35em; overflow: hidden; color: var(--ink); aspect-ratio: 16 / 10; }
.device--phone .screen { aspect-ratio: 9 / 16; }
.screen__bar { background: var(--ap-blue); color: #fff; padding: .35em .6em; font-size: .9em; }
.screen__title { padding: .5em .6em 0; font-weight: 800; letter-spacing: .06em; color: var(--ap-navy); font-size: .95em; }
.screen__tiles { display: flex; gap: .4em; padding: .5em .6em; }
.screen__tiles .shape { flex: 1; aspect-ratio: 1.5; }
.mock__dot { position: absolute; left: var(--x); top: var(--y); width: var(--s); }

/* ---- SMS phone (replaces SMS.jpg) -------------------------------------- */
.phone { width: min(100%, 200px); aspect-ratio: 128 / 215; padding: .5rem .45rem .8rem; background: #1b1f23; border-radius: 1.4rem; box-shadow: var(--shadow); }
.phone__screen { display: flex; flex-direction: column; height: 100%; background: #f1f3f5; border-radius: .6rem; overflow: hidden; font-size: .72rem; }
.phone__bar { display: flex; align-items: center; gap: .4em; padding: .45em .6em; background: var(--ap-blue); color: #fff; font-weight: 600; }
.phone__bar .shape { width: .7em; }
.phone__msg { margin: .8em .6em; padding: .6em .7em; background: #e0e5e9; border-radius: .7em; line-height: 1.4; color: #243038; }
.phone__msg u { color: var(--ap-blue-shadow); }
.phone__input { display: flex; gap: .3em; margin-top: auto; padding: .45em; }
.phone__input span { flex: 1; padding: .25em .5em; background: #fff; border: 1px solid var(--line); border-radius: .3em; color: var(--muted); }
.phone__input b { padding: .25em .6em; background: var(--ap-orange); color: #fff; border-radius: .3em; }

/* ---- "Auto-école" roof sign (replaces the stock photo) ----------------- */
.sign { container-type: size; position: relative; overflow: hidden; aspect-ratio: 3 / 2; border-radius: var(--radius); background: linear-gradient(#cdd5db 0 58%, #94a2ad 58%); }
.sign__stage { position: absolute; inset: 0; }
.sign__roof { position: absolute; inset: auto -12% -30% -12%; height: 52%; border-radius: 50% 50% 0 0 / 100% 100% 0 0; background: linear-gradient(#56646f, #27323a); }
.sign__antenna { position: absolute; left: 41%; top: 8%; width: 1.2cqw; height: 52%; background: #1d242a; rotate: -2deg; transform-origin: bottom; }
.sign__board {
  position: absolute; left: 22%; top: 25%; width: 58%; padding: .5em 0; text-align: center; background: #fff;
  border-radius: .5em 2.4em 2.4em .5em; box-shadow: 0 .3em .6em rgba(0, 0, 0, .25);
  font-size: 7.4cqw; font-weight: 800; letter-spacing: .06em; color: #111;
}

/* ---- "Bon plan !" illustration (replaces Fotolia_95012885_XS.jpg) ------ */
.bonplan { container-type: inline-size; position: relative; width: min(100%, 346px); aspect-ratio: 346 / 238; }
.bonplan__stage { position: absolute; inset: 0; font-size: 8cqw; }
.bonplan__blob {
  position: absolute; left: 36%; top: 17%; width: 53%; height: 50%; display: grid; place-items: center;
  background: var(--ap-blue); color: #fff; border-radius: 55% 45% 60% 40% / 55% 50% 50% 45%;
  font: italic 1.05em/1.1 "Segoe Script", "Brush Script MT", "Snell Roundhand", cursive; text-align: center; rotate: -4deg;
  padding-right: 20%; box-sizing: border-box;
}
.bonplan__bang { position: absolute; left: 73%; top: 21%; font-size: 2.1em; font-weight: 800; letter-spacing: -.08em; color: #fff; rotate: 14deg; }
.bonplan__dot { position: absolute; left: var(--x); top: var(--y); width: var(--s); }
.bonplan__mega { position: absolute; left: 4%; top: 40%; width: 42%; }
.bonplan__mega .cone { fill: #e7ecf0; }
.bonplan__mega .band { fill: var(--ap-orange); }
.bonplan__mega .grip { fill: var(--ap-orange-shadow); }

/* ---- star rating (replaces satisfaction-clients.jpeg) ------------------ */
.rating { display: grid; gap: .35em; width: max-content; }
.stars {
  --score: 5; width: 8em; height: 1.6em; font-size: 1rem;
  --star: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01z'/></svg>");
  background: linear-gradient(90deg, var(--ap-orange) calc(var(--score) / 5 * 100%), #d9e0e6 0);
  -webkit-mask: var(--star) 0 0 / 20% 100% repeat-x; mask: var(--star) 0 0 / 20% 100% repeat-x;
}

/* ---- partner wordmark (replaces GetMyOpinion.png) ---------------------- */
.gmo { position: relative; display: inline-flex; align-items: center; padding-top: 1em; font-size: 1.9rem; line-height: 1; color: #222; }
.gmo b { font-weight: 800; }
.gmo__o { color: var(--ap-orange); font-weight: 800; }
.gmo__face { position: relative; width: .95em; height: .95em; margin-right: .03em; border: .13em solid var(--ap-orange); border-radius: 50%; box-sizing: border-box; }
.gmo__face::before { content: ""; position: absolute; left: 26%; top: 25%; width: .1em; height: .1em; border-radius: 50%; background: var(--ap-orange); box-shadow: .26em 0 0 var(--ap-orange); }
.gmo__face::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: 14%; height: .2em; border-bottom: .09em solid var(--ap-orange); border-radius: 0 0 50% 50%; }
.gmo::before, .gmo::after { content: ""; position: absolute; border: .06em solid #222; border-radius: 50%; }
.gmo::before { left: .7em; top: 0; width: 1.5em; height: .8em; }
.gmo::after { left: 2.5em; top: .1em; width: .9em; height: .55em; }

.figure .sign { width: min(100%, 430px); }
