/* ==========================================================================
   PLINK : page « Ajouter PLINK au menu Partager » (partager.html)
   Téléphones réalistes : iPhone 14 Pro de devices.css (MIT, assets/vendor/devices)
   et un téléphone Android sobre, dessiné en CSS.
   Les écrans sont construits à la vraie taille d'un iPhone (390 points de large),
   puis réduits d'un bloc avec --k. Ils restent clairs, comme un vrai téléphone.
   ========================================================================== */

.tel { --k: .54; position: relative; flex: none; width: calc(428px * var(--k)); height: calc(868px * var(--k)); margin: 0; }
.tel > .device, .tel > .android { position: absolute; left: 0; top: 0; transform: scale(var(--k)); transform-origin: 0 0; }
.tel .device-iphone-14-pro .device-frame { box-shadow: inset 0 0 4px 2px #c9c6c2, inset 0 0 0 6px #76726f, 0 50px 90px -40px rgba(17, 19, 24, .55); }
.tel-android { width: calc(412px * var(--k)); }
@media (max-width: 380px) { .tel { --k: .5; } }

/* ---------- Base iOS ---------- */
.ios { overflow: hidden; color: #000; background: #F2F2F7; font: 400 17px/22px -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, sans-serif; letter-spacing: -.01em; text-align: left; -webkit-font-smoothing: antialiased; }
.ios * { box-sizing: border-box; }
.ios svg { display: block; flex: none; }
.device-screen.ios { background-color: #F2F2F7; }
.device-screen.ios-blanc { background-color: #fff; }
.device-screen.ios-noir { background-color: #000; }
.ios-sb { position: absolute; z-index: 6; top: 0; left: 0; right: 0; height: 54px; display: flex; align-items: center; gap: 6px; padding: 6px 30px 0 56px; font-weight: 600; font-size: 17px; color: #000; }
.ios-sb > span { flex: 1; letter-spacing: -.02em; }
.ios-sb svg { height: 12px; width: auto; fill: currentColor; }
.ios-sb .ios-bat { height: 13px; }
.ios-sb.is-clair { color: #fff; }
.ios-home { position: absolute; z-index: 7; left: 50%; bottom: 8px; width: 140px; height: 5px; margin-left: -70px; border-radius: 3px; background: #000; }
.ios-home.is-clair { background: #fff; }
.ios-lien { color: #007AFF; }
.ios-gras { font-weight: 600; }
.ios-recherche { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 8px; border-radius: 10px; background: rgba(118, 118, 128, .12); color: #8A8A8E; font-size: 17px; }
.ios-recherche svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; }
.ios-recherche span { flex: 1; }
.ios-groupe { margin: 0 16px; border-radius: 10px; background: #fff; overflow: hidden; }
.ios-ligne { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 11px 16px; }
.ios-ligne + .ios-ligne::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: .5px; background: rgba(60, 60, 67, .29); }
.ios-ligne svg { width: 22px; height: 22px; stroke: #000; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ios-bascule { position: relative; flex: none; width: 51px; height: 31px; border-radius: 16px; background: rgba(120, 120, 128, .16); }
.ios-bascule::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .15), 0 3px 1px rgba(0, 0, 0, .06); }
.ios-bascule.is-on { background: #34C759; }
.ios-bascule.is-on::after { left: 22px; }
.ios-note { margin: 7px 32px 0; color: rgba(60, 60, 67, .6); font-size: 13px; line-height: 18px; }

/* Repère PLINK : ce qu'il faut toucher */
.hl { position: relative; z-index: 3; box-shadow: 0 0 0 4px #fff, 0 0 0 9px #0057FF, 0 0 0 22px rgba(0, 87, 255, .18); }
@media (prefers-reduced-motion: no-preference) {
  .hl { animation: hl-pulse 2.4s cubic-bezier(.2, 0, 0, 1) infinite; }
  @keyframes hl-pulse { 0%, 100% { box-shadow: 0 0 0 4px #fff, 0 0 0 9px #0057FF, 0 0 0 14px rgba(0, 87, 255, .22); } 50% { box-shadow: 0 0 0 4px #fff, 0 0 0 9px #0057FF, 0 0 0 26px rgba(0, 87, 255, .08); } }
}

/* ---------- App Raccourcis : liste ---------- */
.ios-nav { position: absolute; top: 54px; left: 0; right: 0; height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px 0 8px; }
.ios-nav .ios-lien { display: flex; align-items: center; gap: 2px; }
.ios-nav svg { width: 24px; height: 24px; stroke: #007AFF; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ios-nav-d { display: flex; align-items: center; gap: 28px; }
.ios-rond { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; }
.ios-rond svg { width: 22px; height: 22px; }
.ios-grand { position: absolute; top: 100px; left: 16px; margin: 0; font-size: 34px; line-height: 41px; font-weight: 700; letter-spacing: .01em; color: #000; }
.sc-recherche { position: absolute; top: 150px; left: 16px; right: 16px; }
.sc-grille { position: absolute; top: 202px; left: 16px; right: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sc-tuile { position: relative; height: 108px; padding: 12px 12px 12px 14px; border-radius: 18px; background: linear-gradient(160deg, var(--c1), var(--c2)); color: #fff; display: flex; flex-direction: column; justify-content: space-between; }
.sc-tuile svg { width: 30px; height: 30px; stroke: #fff; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.sc-tuile b { font-size: 16px; line-height: 20px; font-weight: 600; }
.sc-tuile i { position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, .25); display: grid; place-items: center; font-style: normal; }
.sc-tuile i::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: #fff; box-shadow: -7px 0 #fff, 7px 0 #fff; }
.ios-onglets { position: absolute; left: 0; right: 0; bottom: 0; height: 84px; display: grid; grid-template-columns: repeat(3, 1fr); padding-top: 7px; background: rgba(249, 249, 249, .94); border-top: .5px solid rgba(0, 0, 0, .2); }
.ios-onglets span { display: grid; justify-items: center; align-content: start; gap: 2px; color: #999; font-size: 10px; line-height: 12px; font-weight: 500; letter-spacing: 0; }
.ios-onglets span.is-on { color: #007AFF; }
.ios-onglets svg { width: 28px; height: 28px; fill: currentColor; }

/* ---------- App Raccourcis : éditeur ---------- */
.ed-nav { position: absolute; top: 54px; left: 0; right: 0; height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; }
.ed-nav .ios-lien { font-weight: 600; }
.ed-titre { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.ed-titre svg { width: 14px; height: 14px; stroke: rgba(60, 60, 67, .6); fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.ed-pastille { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(160deg, #3D8BFF, #0057FF); }
.ed-pastille svg { width: 18px !important; height: 18px !important; stroke: #fff !important; stroke-width: 2.2 !important; }
.ed-gauche { width: 30px; }
.ed-actions { position: absolute; top: 120px; left: 16px; right: 16px; display: grid; gap: 14px; }
.ed-action { display: grid; gap: 10px; padding: 14px 14px 14px 14px; border-radius: 14px; background: #fff; font-size: 16px; line-height: 23px; box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }
.ed-action > div { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; }
.ed-action em { font-style: normal; color: #007AFF; font-weight: 500; }
.ed-action .ed-si { padding-top: 10px; border-top: .5px solid rgba(60, 60, 67, .2); color: rgba(60, 60, 67, .7); font-size: 15px; }
.ed-ico { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; background: #8E8E93; }
.ed-ico svg { width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ed-ico.is-bleu { background: linear-gradient(160deg, #36A3FF, #006CFF); }
.ed-url { display: block; margin-top: 6px; padding: 8px 10px; border-radius: 9px; background: #F2F2F7; color: #000; font-size: 15px; line-height: 22px; word-break: break-all; }
.ed-var { display: inline-flex; align-items: center; gap: 5px; margin: 2px 0 0; padding: 1px 7px 1px 3px; border-radius: 7px; background: rgba(0, 122, 255, .13); color: #007AFF; font-weight: 500; white-space: nowrap; word-break: normal; vertical-align: 1px; }
.ed-var i { width: 18px; height: 18px; border-radius: 5px; background: linear-gradient(160deg, #3D8BFF, #0057FF); }
.ed-bas { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 16px 38px; background: rgba(249, 249, 249, .96); border-top: .5px solid rgba(0, 0, 0, .15); border-radius: 14px 14px 0 0; box-shadow: 0 -8px 24px rgba(0, 0, 0, .06); }
.ed-bas.is-haut { top: 470px; }
.ed-sous { margin: 16px 2px 8px; color: rgba(60, 60, 67, .6); font-size: 13px; line-height: 18px; font-weight: 600; text-transform: uppercase; letter-spacing: .01em; }
.ed-sugg { display: grid; gap: 0; }
.ed-sugg span { display: flex; align-items: center; gap: 12px; height: 46px; font-size: 16px; }
.ed-sugg span + span { border-top: .5px solid rgba(60, 60, 67, .16); }
.ed-vide { position: absolute; top: 250px; left: 40px; right: 40px; text-align: center; color: rgba(60, 60, 67, .6); font-size: 15px; line-height: 20px; }

/* Menu contextuel iOS */
.ios-menu { position: absolute; z-index: 4; top: 104px; left: 50%; width: 250px; margin-left: -125px; border-radius: 13px; background: rgba(242, 242, 247, .97); box-shadow: 0 10px 40px rgba(0, 0, 0, .22), 0 0 0 .5px rgba(0, 0, 0, .06); }
.ios-menu span { position: relative; display: flex; align-items: center; justify-content: space-between; height: 44px; padding: 0 16px; font-size: 17px; }
.ios-menu span + span { border-top: .5px solid rgba(60, 60, 67, .29); }
.ios-menu span.is-sep { border-top: 8px solid rgba(60, 60, 67, .08); }
.ios-menu svg { width: 20px; height: 20px; stroke: #000; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ios-menu .hl { border-radius: 10px; background: #E5E5EA; border-top-color: transparent; }
.ios-voile-menu { position: absolute; inset: 0; z-index: 3; background: rgba(0, 0, 0, .06); }

/* Feuille « Détails » */
.ios-dessous { position: absolute; top: 46px; left: 14px; right: 14px; height: 40px; border-radius: 12px 12px 0 0; background: #8d8d92; }
.ios-feuille { position: absolute; top: 58px; left: 0; right: 0; bottom: 0; border-radius: 12px 12px 0 0; background: #F2F2F7; }
.ios-feuille-tete { display: flex; align-items: center; justify-content: space-between; height: 56px; padding: 0 18px; }
.ios-feuille-tete b { font-weight: 600; }
.ios-feuille-tete span { width: 40px; text-align: right; }
.ios-feuille .ios-groupe + .ios-groupe { margin-top: 34px; }
.ios-titre-groupe { margin: 22px 32px 7px; color: rgba(60, 60, 67, .6); font-size: 13px; line-height: 18px; text-transform: uppercase; }
.ios-ligne.hl { border-radius: 10px; }

/* Feuille de partage iOS */
.ios-video { position: absolute; top: -30px; left: 0; width: 100%; height: auto; }
.ios-voile { position: absolute; inset: 0; background: rgba(0, 0, 0, .28); }
.ss { position: absolute; left: 0; right: 0; bottom: 0; top: 268px; border-radius: 13px 13px 0 0; background: #F2F2F7; }
.ss-tete { display: flex; align-items: center; gap: 12px; padding: 16px 16px 14px; border-bottom: .5px solid rgba(60, 60, 67, .2); }
.ss-tete img { width: 52px; height: 52px; border-radius: 9px; object-fit: cover; object-position: 50% 25%; }
.ss-tete div { flex: 1; min-width: 0; display: grid; }
.ss-tete b { font-size: 15px; line-height: 20px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-tete small { color: rgba(60, 60, 67, .6); font-size: 13px; line-height: 18px; }
.ss-tete small em { font-style: normal; color: #007AFF; }
.ss-x { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(118, 118, 128, .12); align-self: flex-start; }
.ss-x svg { width: 12px; height: 12px; stroke: rgba(60, 60, 67, .6); stroke-width: 3; stroke-linecap: round; }
.ss-apps { display: flex; gap: 18px; padding: 16px 0 14px 18px; border-bottom: .5px solid rgba(60, 60, 67, .2); overflow: hidden; white-space: nowrap; }
.ss-app { display: grid; justify-items: center; gap: 6px; width: 64px; flex: none; font-size: 11px; line-height: 13px; color: #000; letter-spacing: 0; }
.app-ico { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 14px; overflow: hidden; }
.app-ico svg { width: 36px; height: 36px; }
.ic-airdrop { background: linear-gradient(180deg, #5AC8FA, #007AFF); }
.ic-messages { background: linear-gradient(180deg, #67F07F, #1FC340); }
.ic-mail { background: linear-gradient(180deg, #1DB0FF, #1A6BF2); }
.ic-notes { background: linear-gradient(180deg, #FFFFFF 0 26%, #FBD249 26% 30%, #FFFFFF 30%); box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .12); }
.ic-rappels { background: #fff; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .12); }
.ss .ios-groupe { margin-top: 14px; }
.ss .ios-ligne { font-size: 17px; }
.ss-modif { display: block; margin: 16px 32px 0; color: #007AFF; font-size: 17px; }

/* Safari + vraie capture du site */
.saf-capture { position: absolute; top: 54px; left: 0; width: 390px; height: auto; }
.saf-haut { position: absolute; z-index: 5; top: 0; left: 0; right: 0; height: 54px; background: #fff; }
.saf-bas { position: absolute; z-index: 5; left: 0; right: 0; bottom: 0; height: 64px; display: flex; justify-content: center; padding-top: 10px; background: rgba(249, 249, 249, .985); border-top: .5px solid rgba(0, 0, 0, .12); color: #000; font-size: 13px; line-height: 16px; letter-spacing: 0; }
.saf-bas span { display: flex; align-items: center; gap: 4px; }
.saf-bas svg { width: 10px; height: 10px; fill: #000; }
.saf-repere { position: absolute; z-index: 4; border-radius: 12px; }

/* ---------- Android ---------- */
.android { width: 412px; height: 868px; padding: 11px; border-radius: 54px; background: #121214; box-shadow: inset 0 0 0 1.5px #3b3b40, inset 0 0 0 5px #19191c, 0 50px 90px -40px rgba(17, 19, 24, .55); }
.android::before, .android::after { content: ""; position: absolute; right: -3px; width: 4px; border-radius: 0 3px 3px 0; background: #2a2a2e; }
.android::before { top: 190px; height: 70px; }
.android::after { top: 290px; height: 120px; }
.and-ecran { position: relative; width: 390px; height: 846px; border-radius: 43px; overflow: hidden; background: #fff; color: #1F1F1F; font: 400 16px/22px "Roboto", "Inter", system-ui, sans-serif; letter-spacing: 0; text-align: left; -webkit-font-smoothing: antialiased; }
.and-ecran * { box-sizing: border-box; }
.and-ecran svg { display: block; flex: none; }
.and-cam { position: absolute; z-index: 9; top: 15px; left: 50%; width: 15px; height: 15px; margin-left: -7.5px; border-radius: 50%; background: #050506; box-shadow: inset 0 0 0 2px #17171a; }
.and-sb { position: absolute; z-index: 6; top: 0; left: 0; right: 0; height: 44px; display: flex; align-items: center; gap: 6px; padding: 4px 26px 0 28px; font-size: 14px; font-weight: 500; }
.and-sb > span { flex: 1; }
.and-sb svg { height: 14px; width: auto; fill: currentColor; }
.and-sb.is-clair { color: #fff; }
.and-geste { position: absolute; z-index: 7; left: 50%; bottom: 8px; width: 108px; height: 4px; margin-left: -54px; border-radius: 2px; background: #1F1F1F; }
.and-geste.is-clair { background: rgba(255, 255, 255, .85); }
.chr-barre { position: absolute; z-index: 2; top: 44px; left: 0; right: 0; height: 60px; display: flex; align-items: center; gap: 12px; padding: 0 10px 0 16px; background: #fff; }
.chr-barre svg { width: 22px; height: 22px; stroke: #444746; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chr-adresse { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border-radius: 22px; background: #EDF0F5; color: #1F1F1F; font-size: 16px; }
.chr-adresse svg { width: 18px; height: 18px; }
.chr-onglets { display: grid; place-items: center; width: 22px; height: 22px; border: 2px solid #444746; border-radius: 5px; font-size: 12px; font-weight: 700; line-height: 1; color: #444746; }
.chr-page { position: absolute; top: 104px; left: 0; width: 390px; height: auto; }
.chr-menu { position: absolute; z-index: 4; top: 52px; right: 8px; width: 262px; padding: 6px 0 8px; border-radius: 16px; background: #fff; box-shadow: 0 6px 30px rgba(0, 0, 0, .22), 0 1px 3px rgba(0, 0, 0, .12); }
.chr-icones { display: flex; justify-content: space-between; padding: 6px 14px 10px; border-bottom: 1px solid #E3E3E3; }
.chr-icones svg { width: 22px; height: 22px; stroke: #444746; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chr-menu > span { position: relative; display: flex; align-items: center; gap: 16px; height: 46px; padding: 0 16px; font-size: 15.5px; color: #1F1F1F; }
.chr-menu > span svg { width: 22px; height: 22px; stroke: #444746; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.chr-menu > span.is-sep { margin-top: 6px; border-top: 1px solid #E3E3E3; padding-top: 6px; height: 52px; }
.chr-menu > span.hl { margin: 0 6px; padding: 0 10px; border-radius: 10px; background: #E8EEFF; font-weight: 500; }
.and-feuille { position: absolute; left: 0; right: 0; bottom: 0; top: 404px; border-radius: 28px 28px 0 0; background: #F7F2FA; }
.and-poignee { width: 32px; height: 4px; margin: 14px auto 10px; border-radius: 2px; background: #79747E; opacity: .5; }
.and-apercu { display: flex; align-items: center; gap: 14px; margin: 6px 16px 0; padding: 12px; border-radius: 16px; background: #fff; }
.and-apercu img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; object-position: 50% 25%; }
.and-apercu div { flex: 1; min-width: 0; display: grid; }
.and-apercu b { font-size: 15px; line-height: 20px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.and-apercu small { color: #49454F; font-size: 13px; line-height: 18px; }
.and-apercu svg { width: 22px; height: 22px; stroke: #49454F; fill: none; stroke-width: 1.9; }
.and-apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px 0; padding: 22px 8px 0; }
.and-app { display: grid; justify-items: center; gap: 8px; font-size: 12.5px; line-height: 16px; color: #1D1B20; text-align: center; }
.and-app .app-ico { width: 56px; height: 56px; border-radius: 50%; }
.and-app .app-ico svg { width: 28px; height: 28px; }
.and-app img { width: 56px; height: 56px; border-radius: 50%; }
.and-app.hl { border-radius: 16px; padding: 6px 0; margin: -6px 4px; background: #fff; }
.ic-and-msg { background: #D3E3FD; }
.ic-and-mail { background: #FCE8E6; }
.ic-and-bt { background: #E8EAED; }
.ic-and-plus { background: #E8DEF8; }
.and-titre-apps { margin: 20px 22px 0; color: #49454F; font-size: 13px; font-weight: 500; }

/* ---------- Mise en page du guide ---------- */
.guide-step { overflow: hidden; }
.guide-step .tel { justify-self: end; margin: 4px 8px 4px 0; }
@media (min-width: 900px) { .guide-step { grid-template-columns: minmax(0, 1fr) auto; gap: 48px; padding: 32px 48px 32px 36px; } }
@media (max-width: 767px) { .guide-step .tel { justify-self: center; margin: 8px 0 0; } }
.guide-resultat { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; }
