/* TÉLÉPHONE DU HAUT DE PAGE (13/11/2026, demande de Loan) : posé à côté de la boîte mail animée (la carte de notification du haut reste), il reçoit
   chaque lead en notification, comme l'écran verrouillé d'un iPhone. Tout est mesuré en em : changer
   font-size sur .tel3 agrandit ou réduit le téléphone d'un bloc. */

@media (min-width: 961px) { html .hero2 .scene { padding-right: 20px !important; } } /* place pour le téléphone */
html .tel3 { right: -84px; bottom: -70px; width: 16em; font-size: 8.8px; --z: 120px; z-index: 3; }

/* Cadre en titane brossé, boutons latéraux, verre noir */
.tel3-cadre {
  position: relative; aspect-ratio: 71.5 / 146.6; padding: .28em; border-radius: 3em;
  background: linear-gradient(135deg, #dcdddc 0%, #c3c5c4 30%, #e6e7e6 52%, #b9bbba 76%, #d2d3d2 100%);
  box-shadow: 0 2.6em 3.6em -1.6em rgba(15, 23, 20, .55), 0 .8em 1.4em -.6em rgba(15, 23, 20, .35), inset 0 0 0 .04em rgba(255, 255, 255, .4);
}
.tel3-cadre::before, .tel3-cadre::after { content: ""; position: absolute; width: .1em; border-radius: .08em; background: #b5b7b6; }
.tel3-cadre::before { left: -.08em; top: 7.4em; height: 1.6em; box-shadow: 0 2.6em 0 #b5b7b6, 0 5.4em 0 #b5b7b6; } /* action + volumes */
.tel3-cadre::after { right: -.08em; top: 10em; height: 4.4em; } /* bouton latéral */
.tel3-ecran {
  position: relative; height: 100%; overflow: hidden; border-radius: 2.72em; border: .52em solid #050606; color: #fff;
  font-family: -apple-system, "SF Pro Text", Geist, system-ui, sans-serif;
  background:
    radial-gradient(120% 70% at 15% 8%, rgba(108, 170, 140, .75), transparent 62%),
    radial-gradient(90% 60% at 100% 62%, rgba(40, 92, 110, .7), transparent 65%),
    radial-gradient(80% 50% at 0% 100%, rgba(20, 60, 42, .9), transparent 70%),
    linear-gradient(170deg, #2f5a48 0%, #16302a 55%, #0b1714 100%);
}
.tel3-ecran::after { /* reflet du verre */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, .14) 0%, rgba(255, 255, 255, 0) 32%, rgba(255, 255, 255, 0) 70%, rgba(255, 255, 255, .05) 100%);
}
.tel3-ilot { position: absolute; left: 50%; top: .62em; width: 5.4em; height: 1.55em; margin-left: -2.7em; border-radius: 1em; background: #000; z-index: 2; }

/* Barre d'état */
/* 14/11 (Loan) : réseau et Wi-Fi à gauche de l'îlot, batterie seule à droite, assez loin des angles arrondis
   pour ne plus être rognée. */
.tel3-etat, .tel3-etat-g { position: absolute; top: 1.08em; display: flex; align-items: center; gap: .32em; }
.tel3-etat { right: 1.9em; }
.tel3-etat-g { left: 1.9em; }
:is(.tel3-etat, .tel3-etat-g) svg { height: .7em; width: auto; fill: #fff; }
.tel3-batt { position: relative; width: 1.6em; height: .78em; border-radius: .26em; border: .08em solid rgba(255, 255, 255, .55); padding: .08em; }
.tel3-batt::after { content: ""; position: absolute; right: -.22em; top: .24em; width: .12em; height: .3em; border-radius: 0 .1em .1em 0; background: rgba(255, 255, 255, .55); }
.tel3-batt i { display: block; width: 78%; height: 100%; border-radius: .14em; background: #fff; }

/* Écran verrouillé */
.tel3-cadenas { position: absolute; left: 50%; top: 3.05em; width: .78em; margin-left: -.39em; fill: #fff; color: #fff; opacity: .92; }
.tel3-date { position: absolute; left: 0; right: 0; top: 4.5em; text-align: center; font-size: .98em; font-weight: 600; color: rgba(255, 255, 255, .86); letter-spacing: .01em; }
.tel3-heure { position: absolute; left: 0; right: 0; top: 1.4em; text-align: center; font-size: 4.4em; font-weight: 600; letter-spacing: -.035em; line-height: 1; color: rgba(255, 255, 255, .93); font-variant-numeric: tabular-nums; }

/* Notifications : verre dépoli, la plus récente en haut de la pile */
.tel3-notifs { position: absolute; left: .32em; right: .32em; bottom: 4.4em; display: flex; flex-direction: column; gap: .42em; }
.tn {
  display: grid; grid-template-columns: 2.5em 1fr; gap: .5em; align-items: center; padding: .85em .6em; border-radius: 1.6em;
  background: rgba(238, 241, 239, .74); backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6);
  color: #101312; box-shadow: 0 .3em .9em rgba(0, 0, 0, .12);
}
.tn + .tn { opacity: .82; }
.tn-ic { position: relative; width: 2.5em; height: 2.5em; }
.tn-o { font-weight: 600; }
.tn-ic i { position: absolute; inset: 0; border-radius: .6em; display: grid; place-items: center; background: linear-gradient(180deg, #2fb4ff, #1468f2); box-shadow: inset 0 0 0 .04em rgba(0, 0, 0, .08); } /* icône de l'app Mail */
.tn-ic svg { width: 66%; height: 66%; }
.tn-tx { min-width: 0; }
.tn-h { display: flex; justify-content: space-between; align-items: baseline; gap: .3em; }
.tn-h b { flex: none; font-size: 1.12em; font-weight: 600; white-space: nowrap; } /* l'expéditeur ne se coupe jamais */
.tn-h time { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .76em; color: rgba(16, 19, 18, .5); }
.tn p { margin: .15em 0 0; font-size: 1.08em; line-height: 1.28; }
.tn-s { color: rgba(16, 19, 18, .72); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tn-s { -webkit-line-clamp: 1 !important; }
.tn + .tn { transform: scale(.96); transform-origin: top center; }
.tn.entre { animation: tn-entre .7s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes tn-entre { from { opacity: 0; transform: translateY(-1.2em) scale(.94); } }

/* Lampe, appareil photo, barre d'accueil */
.tel3-bas { position: absolute; left: 1.7em; right: 1.7em; bottom: 1.5em; display: flex; justify-content: space-between; }
.tel3-bas span { width: 2.6em; height: 2.6em; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .28); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.tel3-bas svg { width: 1.15em; height: 1.15em; fill: #fff; color: #fff; }
.tel3-barre { position: absolute; left: 50%; bottom: .45em; width: 6.4em; height: .3em; margin-left: -3.2em; border-radius: .2em; background: rgba(255, 255, 255, .9); }

@media (max-width: 1380px) { html .tel3 { right: -30px; font-size: 8.4px; } }
@media (min-width: 961px) and (max-width: 1180px) { html .tel3 { right: -6px; bottom: -40px; font-size: 7.4px; } html .hero2 .hb2 { margin-top: 44px; } } /* tablette en paysage : le téléphone ne touche plus le bord ni la phrase du bandeau */
@media (max-width: 960px) { html .tel3 { right: -4px; bottom: -44px; font-size: 8px; } }
@media (max-width: 600px) { html .tel3 { right: -8px; bottom: -30px; font-size: 6px; } }
@media (prefers-reduced-motion: reduce) { .tn.entre { animation: none; } }
