/* Soplany : page « Télécharger l'application » (/{locale}/app). soplany-page-app, 21/11/2026.
   Mobile d'abord (ouverte depuis les stories Instagram / Facebook). Utilise les jetons de site.css. */
.ad { --ad-gold: #8E6A1B; --ad-gold-l: #E9BD72; --ad-ink: #17191F; overflow: hidden; }
.ad-fa { display: inline-block; height: 1em; vertical-align: -.125em; flex: 0 0 auto; max-width: none; }
.ad-gold { color: var(--ad-gold); }

/* ---------- Haut de page ---------- */
.ad-hero { padding-block: 26px 8px; text-align: center; }
.ad-hero .container { display: grid; gap: 30px; }
.ad-icon { width: 76px; height: 76px; border-radius: 22.5%; margin-inline: auto; box-shadow: 0 1px 2px rgba(24,21,14,.10), 0 14px 30px -12px rgba(142,106,27,.55); }
.ad-kicker { display: block; margin-top: 16px; font-size: .76rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: var(--ad-gold); }
.ad-hero h1 { margin-top: 8px; font-size: clamp(2.05rem, 9.4vw, 3.5rem); }
.ad-sub { margin: 10px auto 0; max-width: 26ch; font-size: 1.08rem; line-height: 1.4; color: var(--fg-2); text-wrap: balance; }

/* ---------- Badges des stores ---------- */
.ad-stores { --ad-bh: 54px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: 22px; }
.ad-badge { display: inline-block; line-height: 0; border-radius: 10px; transition: transform var(--t-fast, 160ms) var(--ease, ease), box-shadow var(--t-fast, 160ms); }
.ad-badge img { display: block; height: var(--ad-bh); width: auto; max-width: none; }
.ad-badge:hover { transform: translateY(-2px); }
.ad-badge:active { transform: scale(.97); }
.ad-also { display: none; align-items: center; gap: 7px; font-size: .84rem; font-weight: 500; color: var(--fg-3); }
.ad[data-os="ios"] .ad-stores, .ad[data-os="android"] .ad-stores { flex-direction: column; gap: 10px; }
.ad[data-os="ios"] .ad-as, .ad[data-os="android"] .ad-gp { --ad-bh: 64px; order: 1; box-shadow: 0 0 0 4px rgba(217,180,106,.30), 0 16px 30px -14px rgba(23,25,31,.55); border-radius: 12px; }
.ad[data-os="ios"] .ad-gp, .ad[data-os="android"] .ad-as { --ad-bh: 42px; order: 3; opacity: .92; }
.ad[data-os="ios"] .ad-also-android, .ad[data-os="android"] .ad-also-ios { display: inline-flex; order: 2; margin-top: 8px; }

.ad-facts { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; font-size: .86rem; font-weight: 500; color: var(--fg-2); }
.ad-facts li { display: inline-flex; align-items: center; gap: 7px; }
.ad-facts .ad-fa { color: var(--ad-gold); font-size: .8em; }
@media (max-width: 479px) { .ad-facts { flex-direction: column; align-items: center; gap: 4px; } }

/* ---------- QR code (ordinateur uniquement) ---------- */
.ad-qr { display: none; }

/* ---------- iPhone (proportions réelles : écran 1206 x 2622) ---------- */
.ad-phone { position: relative; width: var(--ad-pw, 220px); margin: 0; flex: 0 0 auto; }
.ad-phone-b { position: relative; padding: 3.4%; background: #0A0A0C; border-radius: 16.2% / 7.74%; box-shadow: 0 0 0 1.5px #77736C, 0 0 0 3px #C9C5BC, 0 0 0 4px #8E8A83, 0 30px 50px -22px rgba(23,25,31,.55), 0 10px 18px -10px rgba(23,25,31,.35); }
.ad-phone-b::before, .ad-phone-b::after { content: ""; position: absolute; width: 1.4%; background: #A8A49C; border-radius: 2px; }
.ad-phone-b::before { left: -2.6%; top: 19%; height: 5.6%; box-shadow: 0 240% 0 #A8A49C, 0 -185% 0 #A8A49C; }
.ad-phone-b::after { right: -2.6%; top: 24.5%; height: 9%; }
.ad-phone img { display: block; width: 100%; height: auto; aspect-ratio: 1206 / 2622; border-radius: 13.7% / 6.3%; background: #F7F5F0; }

.ad-fan { --ad-pw: clamp(168px, 50vw, 224px); display: grid; place-items: start center; padding: 10px 0 34px; }
.ad-fan .ad-phone { grid-area: 1 / 1; }
.ad-fan .ad-phone-c { z-index: 2; }
.ad-fan .ad-phone-l { transform: translateX(-66%) translateY(7%) rotate(-6deg) scale(.86); }
.ad-fan .ad-phone-r { transform: translateX(66%) translateY(7%) rotate(6deg) scale(.86); }

/* ---------- Deux blocs ---------- */
.ad-blocks { padding-block: 38px 8px; }
.ad-blocks > .container > h2 { text-align: center; max-width: 18ch; margin-inline: auto; }
.ad-grid { display: grid; gap: 18px; margin-top: 26px; }
.ad-card { position: relative; display: flex; flex-direction: column; border-radius: 24px; padding: 26px 22px 0; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-2); overflow: hidden; }
.ad-card-head { display: flex; align-items: center; gap: 14px; }
.ad-tile { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: rgba(180,138,46,.13); color: var(--ad-gold); font-size: 1.3rem; flex: 0 0 auto; }
.ad-tag { display: block; font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--ad-gold); }
.ad-card h3 { margin-top: 3px; font-size: 1.42rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.ad-intro { margin-top: 16px; color: var(--fg-2); line-height: 1.5; }
.ad-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 16px; }
.ad-list li { display: flex; gap: 13px; align-items: flex-start; }
.ad-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: rgba(180,138,46,.13); color: var(--ad-gold); font-size: .95rem; flex: 0 0 auto; }
.ad-list strong { display: block; font-weight: 700; line-height: 1.3; }
.ad-list p { margin-top: 2px; font-size: .93rem; line-height: 1.45; color: var(--fg-2); }
.ad-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; min-height: 44px; font-weight: 700; color: var(--ad-gold); align-self: flex-start; }
.ad-link:hover { text-decoration: underline; }
.ad-shot { --ad-pw: min(72%, 250px); display: flex; justify-content: center; margin-top: auto; padding-top: 28px; aspect-ratio: 1 / .92; overflow: hidden; }
.ad-shot .ad-phone-b { box-shadow: 0 0 0 1.5px #77736C, 0 0 0 3px #C9C5BC, 0 0 0 4px #8E8A83; }

.ad-card-pro { background: var(--ad-ink); border-color: var(--ad-ink); color: #F2EEE6; }
.ad-card-pro .ad-tag, .ad-card-pro .ad-link { color: var(--ad-gold-l); }
.ad-card-pro .ad-tile, .ad-card-pro .ad-ic { background: rgba(233,189,114,.15); color: var(--ad-gold-l); }
.ad-card-pro .ad-intro, .ad-card-pro .ad-list p { color: #C3C7D1; }
.ad-card-pro .ad-shot .ad-phone-b { box-shadow: 0 0 0 1.5px #4A4842, 0 0 0 3px #8E8A83, 0 0 0 4px #4A4842; }

/* ---------- Bas de page ---------- */
.ad-final { padding-block: 26px 24px; }
.ad-panel { text-align: center; border-radius: 28px; padding: 38px 20px 30px; background: linear-gradient(160deg, #F4E8CC 0%, #FBF7EC 58%, #FFFFFF 100%); border: 1px solid rgba(180,138,46,.28); }
.ad-panel .ad-icon { width: 60px; height: 60px; }
.ad-panel h2 { margin: 18px auto 0; max-width: 17ch; }
.ad-panel > p { margin-top: 10px; color: var(--fg-2); }
.ad-credit { margin-top: 24px !important; font-size: .82rem; color: var(--fg-3) !important; }

/* ---------- Animation d'arrivée ---------- */
@keyframes ad-pop { from { opacity: 0; transform: scale(.55) rotate(-8deg); } 60% { opacity: 1; transform: scale(1.06) rotate(0); } to { opacity: 1; transform: none; } }
@keyframes ad-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes ad-rise { from { opacity: 0; transform: translateY(46px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes ad-fan-l { from { opacity: 0; transform: translateX(0) translateY(12%) rotate(0) scale(.8); } to { opacity: 1; transform: translateX(-66%) translateY(7%) rotate(-6deg) scale(.86); } }
@keyframes ad-fan-r { from { opacity: 0; transform: translateX(0) translateY(12%) rotate(0) scale(.8); } to { opacity: 1; transform: translateX(66%) translateY(7%) rotate(6deg) scale(.86); } }
@keyframes ad-halo { 0%, 100% { box-shadow: 0 0 0 4px rgba(217,180,106,.30), 0 16px 30px -14px rgba(23,25,31,.55); } 50% { box-shadow: 0 0 0 9px rgba(217,180,106,.14), 0 16px 30px -14px rgba(23,25,31,.55); } }
.ad-hero .ad-icon { animation: ad-pop .7s cubic-bezier(.2,.8,.2,1) both; }
.ad-hero .ad-kicker { animation: ad-up .55s cubic-bezier(.2,.8,.2,1) .12s both; }
.ad-hero h1 { animation: ad-up .55s cubic-bezier(.2,.8,.2,1) .2s both; }
.ad-hero .ad-sub { animation: ad-up .55s cubic-bezier(.2,.8,.2,1) .28s both; }
.ad-hero .ad-stores { animation: ad-up .55s cubic-bezier(.2,.8,.2,1) .38s both; }
.ad-hero .ad-facts, .ad-hero .ad-qr { animation: ad-up .55s cubic-bezier(.2,.8,.2,1) .48s both; }
.ad-fan .ad-phone-c { animation: ad-rise .9s cubic-bezier(.2,.8,.2,1) .3s both; }
.ad-fan .ad-phone-l { animation: ad-fan-l .9s cubic-bezier(.2,.8,.2,1) .62s both; }
.ad-fan .ad-phone-r { animation: ad-fan-r .9s cubic-bezier(.2,.8,.2,1) .62s both; }
.ad[data-os="ios"] .ad-hero .ad-as, .ad[data-os="android"] .ad-hero .ad-gp { animation: ad-halo 2.4s ease-in-out 1.2s 3; }
.ad-js .ad-rv { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1); }
.ad-js .ad-rv.ad-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .ad-hero *, .ad-fan .ad-phone { animation: none !important; }
  .ad-js .ad-rv { opacity: 1; transform: none; transition: none; }
}

/* ---------- Tablette et ordinateur ---------- */
@media (min-width: 760px) {
  .ad-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .ad-card { padding: 34px 32px 0; }
  .ad-blocks > .container > h2 { max-width: none; }
  .ad-blocks { padding-block: 56px 8px; }
  .ad-panel { padding: 56px 32px 40px; }
  .ad-panel h2 { max-width: none; }
  .ad-stores { --ad-bh: 60px; }
  .ad-shot { flex: 1 1 auto; aspect-ratio: auto; min-height: 270px; margin-top: 0; }
  .ad-shot { --ad-pw: 250px; }
}
@media (min-width: 980px) {
  .ad-hero { padding-block: 56px 20px; text-align: left; }
  .ad-hero .container { grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); align-items: center; gap: 24px; }
  .ad-icon { margin-inline: 0; width: 84px; height: 84px; }
  .ad-panel .ad-icon { margin-inline: auto; }
  .ad-sub { margin-inline: 0; max-width: 30ch; font-size: 1.25rem; }
  .ad-hero .ad-stores, .ad-facts { justify-content: flex-start; }
  .ad[data-os="ios"] .ad-hero .ad-stores, .ad[data-os="android"] .ad-hero .ad-stores { align-items: flex-start; }
  .ad-fan { --ad-pw: 252px; padding-bottom: 50px; }
}
@media (min-width: 980px) {
  .ad[data-os="other"] .ad-qr { display: flex; align-items: center; gap: 18px; margin-top: 28px; padding: 16px 20px 16px 16px; max-width: 470px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow-1); }
  .ad-qr img { width: 104px; height: 104px; flex: 0 0 auto; padding: 8px; background: #fff; border: 1px solid var(--border); border-radius: 12px; image-rendering: pixelated; }
  .ad-qr strong { display: flex; align-items: center; gap: 8px; font-size: 1rem; }
  .ad-qr strong .ad-fa { color: var(--ad-gold); }
  .ad-qr p { margin-top: 4px; font-size: .88rem; line-height: 1.45; color: var(--fg-2); }
}
