/* « Le site sur votre téléphone » (/application): the phone, the benefits,
   the QR code for a computer, the steps with the buttons to look for
   (drawn, not captured: the buttons of iOS and Android, simplified). */

.ag-hero { padding: calc(var(--nav-height, 72px) + 48px) 0 56px; background: linear-gradient(160deg, #fffaf0 0%, var(--cream, #f8f5ef) 55%, #eef2f7 100%); }
.ag-hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 64px; align-items: center; }
.ag-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: var(--radius-full); background: rgba(200,168,76,0.16); color: var(--gold-dark); font-size: 0.85rem; font-weight: 600; }
.ag-hero h1 { margin: 16px 0 12px; font-family: var(--font-heading); font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1.12; color: var(--navy); text-wrap: balance; }
.ag-lead { margin: 0 0 22px; font-size: 1.12rem; line-height: 1.6; color: var(--gray-700); max-width: 34em; }
.ag-benefits { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 12px; }
.ag-benefits li { display: flex; gap: 14px; align-items: flex-start; color: var(--navy); line-height: 1.45; }
.ag-benefits i { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--white); color: var(--gold-dark); box-shadow: 0 2px 8px rgba(18,40,74,0.08); }
.ag-benefits span { padding-top: 7px; }
.ag-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.ag-cta[hidden], .ag-cta [hidden] { display: none; }
.ag-done { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-radius: var(--radius-md); background: #e3f4e8; color: #1e7b3a; font-weight: 600; }
.ag-done[hidden] { display: none; }

/* The phone with the site as an app, and its icon on a home screen */
.ag-phone { position: relative; margin: 0; }
.ag-phone-frame { width: 272px; padding: 10px; border-radius: 42px; background: #10213d; box-shadow: 0 30px 70px rgba(11,26,51,0.28); }
.ag-phone-frame img { display: block; width: 100%; height: auto; border-radius: 32px; }
.ag-home { position: absolute; left: -56px; bottom: 56px; padding: 14px; border-radius: 22px; background: rgba(255,255,255,0.92); box-shadow: 0 14px 34px rgba(11,26,51,0.16); }
.ag-home-app { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ag-home-app img { width: 60px; height: 60px; border-radius: 14px; box-shadow: 0 6px 14px rgba(11,26,51,0.25); }
.ag-home-app small { font-size: 0.78rem; font-weight: 600; color: var(--navy); }

/* On a computer: the QR code */
.ag-desktop { padding: 0 0 8px; background: var(--cream, #f8f5ef); }
.ag-desktop[hidden] { display: none; }
.ag-desktop-inner { display: flex; align-items: center; gap: 28px; padding: 24px 28px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--gray-200); }
.ag-qr { flex: none; width: 168px; height: 168px; display: grid; place-items: center; border-radius: 12px; background: var(--white); border: 1px solid var(--gray-200); }
.ag-qr img { width: 168px; height: 168px; image-rendering: pixelated; }
.ag-desktop h2 { margin: 0 0 6px; font-family: var(--font-heading); font-size: 1.4rem; color: var(--navy); }
.ag-desktop p { margin: 0 0 6px; color: var(--gray-700); line-height: 1.55; }
.ag-url strong { color: var(--navy); word-break: break-all; }

/* The guides */
.ag-guide .section-title { margin-bottom: 20px; }
.ag-tabs { display: flex; justify-content: center; gap: 6px; margin: 0 auto 28px; padding: 5px; width: fit-content; border-radius: var(--radius-full); background: var(--gray-100); }
.ag-tabs button { display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px; border: 0; border-radius: var(--radius-full); background: transparent; font: inherit; font-weight: 600; color: var(--gray-700); cursor: pointer; }
.ag-tabs button[aria-selected="true"] { background: var(--navy); color: var(--white); box-shadow: 0 4px 12px rgba(18,40,74,0.2); }
.ag-tabs button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.ag-panel[hidden] { display: none; }
.ag-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ag-step { position: relative; padding: 0 0 4px; }
.ag-shot { height: 190px; display: grid; place-items: center; padding: 18px; border-radius: var(--radius-lg); background: linear-gradient(160deg, #eef2f7, #f8f5ef); margin-bottom: 18px; overflow: hidden; }
.ag-num { position: absolute; top: 172px; left: 18px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: var(--navy); font-weight: 700; box-shadow: 0 4px 10px rgba(200,168,76,0.4); }
.ag-step h3 { margin: 22px 0 6px; font-family: var(--font-heading); font-size: 1.15rem; color: var(--navy); }
.ag-step p { margin: 0; color: var(--gray-700); line-height: 1.55; font-size: 0.95rem; }
.ag-note { margin: 22px 0 0; padding: 12px 16px; border-radius: var(--radius-md); background: var(--gray-100); color: var(--gray-700); font-size: 0.92rem; }
.ag-note i { color: var(--gold-dark); margin-right: 6px; }
.ag-note.is-yours { background: #fff5dc; color: var(--navy); font-weight: 600; }

/* The drawn buttons */
.ag-ui { width: 100%; max-width: 280px; border-radius: 16px; background: var(--white); box-shadow: 0 10px 26px rgba(11,26,51,0.14); font-size: 0.82rem; color: #1c1c1e; }
.ag-hit { position: relative; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: #0a84ff; box-shadow: 0 0 0 3px var(--gold), 0 0 0 9px rgba(200,168,76,0.25); background: var(--white); }
.ag-hit-row { position: relative; background: #fff5dc; box-shadow: inset 0 0 0 2px var(--gold); border-radius: 10px; font-weight: 600; }
.ag-hit-text { padding: 2px 10px; border-radius: 8px; box-shadow: 0 0 0 2px var(--gold); background: #fff5dc; font-weight: 700; color: #0a84ff; }
.ag-ios-bar { padding: 12px 12px 10px; }
.ag-ios-url { padding: 9px 12px; border-radius: 12px; background: #efeff4; text-align: center; color: #3a3a3c; margin-bottom: 10px; }
.ag-ios-url i, .ag-and-url i { font-size: 0.7rem; margin-right: 4px; color: #8e8e93; }
.ag-ios-tools { display: flex; justify-content: space-around; align-items: center; color: #0a84ff; font-size: 1.05rem; }
.ag-sheet { padding: 8px; }
.ag-sheet-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; border-bottom: 1px solid #efeff4; }
.ag-sheet-row:last-child { border-bottom: 0; }
.ag-sheet-row i { color: #3a3a3c; }
.ag-confirm-bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px; border-bottom: 1px solid #efeff4; color: #0a84ff; }
.ag-confirm-bar strong { color: #1c1c1e; font-size: 0.78rem; text-align: center; }
.ag-confirm-app { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.ag-confirm-app img, .ag-dialog-head img { width: 44px; height: 44px; border-radius: 10px; }
.ag-and-bar { display: flex; align-items: center; gap: 10px; padding: 12px; color: #5f6368; }
.ag-and-url { flex: 1; padding: 9px 12px; border-radius: 22px; background: #f1f3f4; color: #3c4043; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-and-bar .ag-hit { color: #3c4043; }
.ag-menu { padding: 6px; }
.ag-menu-row { display: flex; align-items: center; gap: 14px; padding: 9px 12px; color: #3c4043; }
.ag-menu-row i { width: 16px; text-align: center; color: #5f6368; }
.ag-dialog { padding: 16px; }
.ag-dialog-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.ag-dialog-head strong { display: block; color: #202124; }
.ag-dialog-head span { color: #5f6368; font-size: 0.78rem; }
.ag-dialog-actions { display: flex; justify-content: flex-end; gap: 16px; color: #1a73e8; font-weight: 600; }
.ag-dialog-actions .ag-hit-text { color: #1a73e8; }

/* Questions */
.ag-faq { padding-top: 0; }
.ag-faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
.ag-faq-list details { padding: 14px 18px; border-radius: var(--radius-md); background: var(--white); border: 1px solid var(--gray-200); }
.ag-faq-list summary { cursor: pointer; font-weight: 600; color: var(--navy); }
.ag-faq-list p { margin: 10px 0 0; color: var(--gray-700); line-height: 1.6; }

@media (max-width: 900px) {
  .ag-hero { padding-top: calc(var(--nav-height, 64px) + 28px); }
  .ag-hero-inner { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .ag-phone { justify-self: center; }
  .ag-home { left: -40px; }
  .ag-steps { grid-template-columns: minmax(0, 1fr); gap: 32px; max-width: 420px; margin: 0 auto; }
  .ag-desktop-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 420px) {
  .ag-phone-frame { width: 230px; }
  .ag-home { left: -24px; bottom: 30px; padding: 10px; }
  .ag-cta .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .ag-tabs button { transition: none; } }
