/* ===============================================================
   V21 — Retouches de recette iPhone 14 / Safari iOS 18.6.2
   La version desktop et les animations validées restent intactes.
   Chargé après v19-responsive.css pour écraser ses anciens patchs.
   =============================================================== */

/* Le DOM de la suite de série contient deux groupes réutilisables :
   sur desktop l'affichage reste image | texte, sur mobile titre | image | texte. */
.series-next-copy{min-width:0}

@media (max-width:900px) {
  /* Contraste homogène de la bulle reçue et de sa queue, sur les
     deux téléphones de la page d'accueil. Le masque conserve la teinte
     noir profond de l'écran, évitant les bandes plus claires. */
  .hero-phone .message-bubble.received,
  .gateway-phone .message-bubble.received {
    --v21-received:#271d2c;
    background-color:var(--v21-received) !important;
    background-image:none !important;
    color:#f5f1f7 !important;
    padding-left:15px !important;
    margin-left:5px !important;
    -webkit-background-clip:padding-box;
    background-clip:padding-box;
  }
  .hero-phone .message-bubble.received::before,
  .gateway-phone .message-bubble.received::before {
    background:var(--v21-received) !important;
    left:-7px !important;
    bottom:0 !important;
    border:0 !important;
    box-shadow:none !important;
  }
  .hero-phone .message-bubble.received::after,
  .gateway-phone .message-bubble.received::after {
    background:#09050b !important;
    left:-10px !important;
    bottom:0 !important;
    border:0 !important;
    box-shadow:none !important;
  }

  /* Deux portes : le halo/filtre composé par Safari formait
     un rectangle légèrement différent et un bord diagonal sur la
     carte « romans ». Garder images et animations, retirer uniquement
     cette couche visuelle parasite sur petits écrans. */
  .gateway-books-art .soft-orbit {display:none !important;}
  .gateway-books-art .gw-book {
    filter:none !important;
    -webkit-filter:none !important;
    /* Évite qu'iOS transforme un transparent en rectangle lors du motion. */
    will-change:auto !important;
    background:none !important;
  }
  .gateway-books-art,
  .gateway-sms-art {
    background:transparent !important;
    box-shadow:none !important;
  }
  /* Même couleur sombre dans le pied du téléphone que sur l'écran. */
  .gateway-phone .iphone-screen,
  .gateway-phone .imessage-footer {background-color:#09050b !important;}

  /* Série « Dis-moi », ou toute série présentant un tome précédent ou
     suivant : ordre de lecture d'abord le titre, puis le livre et enfin
     description + CTA. Applicable à toutes les fiches. */
  .series-next-grid {
    display:flex !important;
    flex-direction:column !important;
    align-items:stretch !important;
    gap:0 !important;
  }
  .series-next-copy {display:contents !important;}
  .series-next-heading {order:1;min-width:0;}
  .series-next-art {order:2;min-width:0;}
  .series-next-body {order:3;min-width:0;}
  .series-next-heading h2 {margin:14px 0 24px;}
  .series-next-body {padding-top:18px;}
}

@media (max-width:650px) {
  /* CTA isolé : trait démarrant exactement à la première lettre.
     Sous un bouton plein, le lien démarre à l'aplomb du texte du
     bouton (et non du bord du bouton). */
  .text-link {
    padding-left:0 !important;
    margin-left:0;
  }
  .hero-actions > .text-link,
  .feature-actions > .text-link,
  .excerpt-actions > .text-link {
    margin-left:27px !important;
    padding-left:0 !important;
  }

  /* Fiche roman : supprimer l'immense bloc rose vertical sans
     sacrifier la visibilité du mock-up. */
  .book-detail-hero .detail-cover {
    min-height:302px !important;
    height:302px !important;
    padding:12px !important;
    overflow:hidden;
  }
  .book-detail-hero .detail-cover img {
    display:block;
    max-height:276px !important;
    height:94% !important;
    width:94% !important;
    object-fit:contain !important;
    margin:auto;
  }

  /* Plus d'espace sur l'affiche tome 2 : bloc proportionné au livre. */
  .series-next-art {
    height:295px !important;
    min-height:0 !important;
    margin:0 !important;
  }
  .series-next-art img {
    max-height:270px !important;
    width:93% !important;
    height:93% !important;
    object-fit:contain !important;
  }
  .series-next-heading h2{margin-bottom:22px;}
  .series-next-body{padding-top:18px;}
}

/* Ne pas introduire d'animations sur les éléments de série ; toutes
   celles validées dans les autres blocs sont laissées telles quelles. */

/* ===============================================================
   V22 — Ultimes correctifs mobile Safari validés en recette
   =============================================================== */

@media (max-width:900px) {
  /* Deux portes : supprimer le fin trait oblique qui suit le livre de droite
     sur Safari iPhone, sans retirer l'animation du livre. */
  .gateway-books-art {
    overflow:hidden;
  }
  .gateway-books-art .gw-book {
    backface-visibility:hidden;
    -webkit-backface-visibility:hidden;
    transform-style:preserve-3d;
    -webkit-transform-style:preserve-3d;
  }
  .gateway-books-art .gw-book-three {
    clip-path:inset(0 2px 0 0);
    -webkit-clip-path:inset(0 2px 0 0);
  }
}

@media (max-width:650px) {
  /* Page roman : plus d'air entre la flèche retour et le libellé. */
  .breadcrumb {
    gap:10px !important;
    align-items:center;
  }

  /* Bulles reçues : queue exactement construite comme la bleue,
     simplement miroir à gauche. On neutralise les anciens décalages. */
  .hero-phone .message-bubble.received,
  .gateway-phone .message-bubble.received {
    margin-left:6px !important;
    padding-left:11px !important;
  }
  .hero-phone .message-bubble.received::before,
  .gateway-phone .message-bubble.received::before {
    left:-8px !important;
    width:18px !important;
    height:18px !important;
    bottom:0 !important;
    border-bottom-right-radius:15px !important;
  }
  .hero-phone .message-bubble.received::after,
  .gateway-phone .message-bubble.received::after {
    left:-11px !important;
    width:11px !important;
    height:18px !important;
    bottom:0 !important;
    border-bottom-right-radius:11px !important;
  }

  /* Deux portes : éviter la troncature de la dernière bulle en redonnant
     un peu d'espace vertical et en resserrant légèrement le thread. */
  .gateway-sms-art .gateway-phone {
    --phone-width:167px !important;
    --phone-height:329px !important;
    --phone-text-size:7.85px !important;
  }
  .gateway-phone .imessage-header {
    padding:20px 6px 4px !important;
  }
  .gateway-phone .conversation-label {
    padding:3px 3px 4px !important;
  }
  .gateway-phone .imessage-body {
    justify-content:flex-start !important;
    padding:5px 7px 2px !important;
    gap:5px !important;
  }
  .gateway-phone .message-bubble {
    max-width:89% !important;
    padding:5px 7px !important;
    line-height:1.34 !important;
  }
  .gateway-phone .imessage-footer {
    padding:1px 7px 7px !important;
  }
  .gateway-phone .fake-input {
    height:14px !important;
  }
}

/* ===============================================================
   V23 — Derniers correctifs de recette mobile Safari
   =============================================================== */

@media (max-width:650px) {
  /* Menu mobile : page active davantage mise en avant qu'un simple trait. */
  .main-nav > a[aria-current='page']:not(.nav-club) {
    color:#fff !important;
    font-weight:700 !important;
    background:rgba(232,197,212,.10) !important;
    border-left:3px solid #d9a2bc !important;
    padding-left:14px !important;
  }
  .main-nav > a[aria-current='page']:not(.nav-club)::after {
    transform:scaleX(1) !important;
    height:2px !important;
    background:#e7bfd1 !important;
  }

  /* ---------------------------------------------------------------
     Accueil / Deux portes : téléphone Alexia & Logan
     --------------------------------------------------------------- */
  .gateway-sms-art {
    align-items:flex-start !important;
    padding-top:8px !important;
    padding-bottom:0 !important;
    overflow:hidden !important;
  }
  .gateway-sms-art .gateway-phone {
    --phone-width:156px !important;
    --phone-height:304px !important;
    --phone-text-size:7.55px !important;
    /* V26: animation transform is driven by keyframes. */
    margin-top:0 !important;
    margin-bottom:0 !important;
  }
  .gateway-phone .imessage-header {
    padding:19px 6px 4px !important;
  }
  .gateway-phone .conversation-label {
    padding:3px 3px 4px !important;
  }
  .gateway-phone .imessage-body {
    justify-content:flex-start !important;
    padding:5px 7px 1px !important;
    gap:4px !important;
  }
  .gateway-phone .message-bubble {
    max-width:87% !important;
    padding:5px 7px !important;
    line-height:1.32 !important;
  }
  .gateway-phone .message-bubble.sent {
    padding-right:12px !important;
  }
  .gateway-phone .message-bubble.sent::before {
    right:-6px !important;
    width:18px !important;
    height:18px !important;
    bottom:0 !important;
  }
  .gateway-phone .message-bubble.sent::after {
    right:-9px !important;
    width:11px !important;
    height:18px !important;
    bottom:0 !important;
  }
  .gateway-phone .message-bubble.received {
    margin-left:6px !important;
    padding-left:12px !important;
  }
  .gateway-phone .message-bubble.received::before {
    left:-8px !important;
    width:18px !important;
    height:18px !important;
  }
  .gateway-phone .message-bubble.received::after {
    left:-11px !important;
    width:11px !important;
    height:18px !important;
  }
  .gateway-phone .imessage-footer {
    padding:1px 7px 6px !important;
    background:#09050b !important;
  }
  .gateway-phone .fake-input {
    height:13px !important;
  }

  /* ---------------------------------------------------------------
     Histoires SMS : téléphone du hero
     --------------------------------------------------------------- */
  .sms-intro-art .sms-page-phone {
    --phone-width:214px !important;
    --phone-height:438px !important;
    --phone-text-size:9.15px !important;
  }
  .sms-page-phone .imessage-body {
    justify-content:flex-start !important;
    padding:8px 8px 6px !important;
    gap:6px !important;
  }
  .sms-page-phone .message-bubble {
    line-height:1.34 !important;
  }
  .sms-page-phone .message-bubble.sent {
    padding-right:12px !important;
  }
  .sms-page-phone .message-bubble.sent::before {
    right:-6px !important;
    width:18px !important;
    height:18px !important;
    bottom:0 !important;
  }
  .sms-page-phone .message-bubble.sent::after {
    right:-9px !important;
    width:11px !important;
    height:18px !important;
    bottom:0 !important;
  }
  .sms-page-phone .message-bubble.received {
    margin-left:6px !important;
    padding-left:12px !important;
  }
  .sms-page-phone .message-bubble.received::before {
    left:-8px !important;
    width:18px !important;
    height:18px !important;
  }
  .sms-page-phone .message-bubble.received::after {
    left:-11px !important;
    width:11px !important;
    height:18px !important;
  }

  /* ---------------------------------------------------------------
     Page détail SMS : remettre l'animation du téléphone sur mobile
     --------------------------------------------------------------- */
  .story-showcase .iphone-card-phone-large {
    animation:site-story-showcase-sway 7.5s ease-in-out infinite !important;
  }

  /* Mock-up Anastasia & Dante plus présent. */
  .upcoming-project-mockup {
    max-width:236px !important;
  }
  .story-follow-mockup {
    max-width:280px !important;
  }

  /* ---------------------------------------------------------------
     Contact : illustration plus fidèle au desktop
     --------------------------------------------------------------- */
  .postal-composition {
    min-height:355px !important;
    max-width:520px !important;
    margin:26px auto 6px !important;
  }
  .postal-envelope {
    width:76% !important;
    height:210px !important;
    left:11% !important;
    top:112px !important;
    transform:rotate(-7deg) !important;
  }
  .postal-letter {
    left:15% !important;
    right:15% !important;
    top:-72px !important;
    height:188px !important;
    padding:16px 22px !important;
  }
  .postal-letter span {
    font-size:8px !important;
    letter-spacing:.16em !important;
  }
  .postal-letter strong {
    font-size:24px !important;
    line-height:1.16 !important;
    margin-top:14px !important;
  }
  .postal-letter i {
    font-size:16px !important;
    margin-top:5px !important;
  }
  .postal-stamp {
    right:9% !important;
    bottom:17px !important;
    width:54px !important;
    height:54px !important;
    font-size:18px !important;
  }
  .postal-sent {
    left:6% !important;
    bottom:0 !important;
    font-size:8px !important;
  }
  .postal-pencil {
    font-size:0 !important;
    width:48px !important;
    height:62px !important;
    right:8% !important;
    top:38px !important;
    /* V26 pencil motion keyframes control transform. */
    color:transparent !important;
    background:no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='54' height='78' viewBox='0 0 54 78'%3E%3Cg fill='none' stroke='%23b78098' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 8l21 21'/%3E%3Cpath d='M12 11l17-7 13 13-7 17-23-23z'/%3E%3Cpath d='M35 33l8 8'/%3E%3Cpath d='M43 41l-5 13 13-5'/%3E%3Cpath d='M17 6l3-3 22 22-3 3'/%3E%3C/g%3E%3C/svg%3E") !important;
  }
}

@media (prefers-reduced-motion:reduce) {
  .story-showcase .iphone-card-phone-large,
  .postal-pencil,
  .postal-letter {
    animation:none !important;
  }
}

/* ===============================================================
   V24 — Corrections finales mobile + menu Contact
   =============================================================== */

@media (max-width:650px) {
  /* Menu : ajouter Contact dans la même hiérarchie visuelle. */
  .main-nav > a[href='contact.html'] {
    display:block;
  }

  /* ACCUEIL — Deux portes
     - rétablir l'animation du téléphone sur mobile
     - supprimer le clipping qui crée un trait/rectangle sombre
     - remettre une queue de bulle bleue propre et lisible */
  .gateway-sms-art {
    height:318px !important;
    padding-top:10px !important;
    padding-bottom:18px !important;
    overflow:visible !important;
    align-items:flex-start !important;
  }
  .gateway-sms-art .gateway-phone {
    --phone-width:158px !important;
    --phone-height:307px !important;
    --phone-text-size:7.65px !important;
    margin-top:2px !important;
    margin-bottom:0 !important;
    /* V26: animation transform is driven by keyframes. */
    backface-visibility:hidden !important;
    -webkit-backface-visibility:hidden !important;
    transform-style:preserve-3d !important;
    -webkit-transform-style:preserve-3d !important;
    -webkit-mask-image:-webkit-radial-gradient(white, black) !important;
    box-shadow:0 17px 28px rgba(5,2,9,.36), inset 0 1px 1px rgba(255,255,255,.24), inset 0 -1px 2px rgba(0,0,0,.45), inset 1px 0 1px rgba(255,255,255,.10) !important;
    animation:v24-gateway-phone-sway 6.8s ease-in-out infinite !important;
  }
  .gateway-phone .imessage-header {padding:19px 6px 4px !important;}
  .gateway-phone .conversation-label {padding:3px 3px 4px !important;}
  .gateway-phone .imessage-body {
    justify-content:flex-start !important;
    padding:5px 7px 1px !important;
    gap:4px !important;
  }
  .gateway-phone .message-bubble {
    max-width:87% !important;
    line-height:1.32 !important;
    padding:5px 7px !important;
  }
  .gateway-phone .message-bubble.sent {
    padding-right:10px !important;
    border-bottom-right-radius:4px !important;
  }
  .gateway-phone .message-bubble.sent::before {
    right:-8px !important;
    width:18px !important;
    height:18px !important;
    bottom:0 !important;
    background:#2f80ed !important;
    border-bottom-left-radius:15px !important;
  }
  .gateway-phone .message-bubble.sent::after {
    right:-11px !important;
    width:11px !important;
    height:18px !important;
    bottom:0 !important;
    background:#09050b !important;
    border-bottom-left-radius:11px !important;
  }
  .gateway-phone .message-bubble.received {
    margin-left:6px !important;
    padding-left:12px !important;
  }
  .gateway-phone .message-bubble.received::before {
    left:-8px !important;
    width:18px !important;
    height:18px !important;
    background:#271d2c !important;
  }
  .gateway-phone .message-bubble.received::after {
    left:-11px !important;
    width:11px !important;
    height:18px !important;
    background:#09050b !important;
  }
  .gateway-phone .imessage-footer {
    padding:1px 7px 6px !important;
    background:#09050b !important;
  }
  .gateway-phone .fake-input {height:13px !important;}

  /* HISTOIRES SMS — hero
     - téléphone animé aussi sur mobile
     - plus de découpe en haut lors de la remontée
     - note "À suivre" lisible */
  .sms-intro {
    overflow:visible !important;
  }
  .sms-intro-art {
    height:492px !important;
    max-width:355px !important;
    overflow:visible !important;
    padding-top:14px !important;
    padding-bottom:28px !important;
  }
  .sms-intro-art .sms-page-phone {
    --phone-width:214px !important;
    --phone-height:438px !important;
    --phone-text-size:9.15px !important;
    /* V26: animation transform is driven by keyframes. */
    backface-visibility:hidden !important;
    -webkit-backface-visibility:hidden !important;
    transform-style:preserve-3d !important;
    -webkit-transform-style:preserve-3d !important;
    -webkit-mask-image:-webkit-radial-gradient(white, black) !important;
    box-shadow:0 18px 32px rgba(5,2,9,.38), inset 0 1px 1px rgba(255,255,255,.24), inset 0 -1px 2px rgba(0,0,0,.45), inset 1px 0 1px rgba(255,255,255,.10) !important;
    animation:v24-sms-page-float 8s ease-in-out infinite !important;
  }
  .sms-page-phone .imessage-body {
    justify-content:flex-start !important;
    padding:8px 8px 6px !important;
    gap:6px !important;
  }
  .sms-page-phone .message-bubble {
    line-height:1.34 !important;
  }
  .sms-page-phone .message-bubble.sent {
    padding-right:11px !important;
    border-bottom-right-radius:4px !important;
  }
  .sms-page-phone .message-bubble.sent::before {
    right:-8px !important;
    width:18px !important;
    height:18px !important;
    bottom:0 !important;
    background:#2f80ed !important;
    border-bottom-left-radius:15px !important;
  }
  .sms-page-phone .message-bubble.sent::after {
    right:-11px !important;
    width:11px !important;
    height:18px !important;
    bottom:0 !important;
    background:#09050b !important;
    border-bottom-left-radius:11px !important;
  }
  .sms-page-phone .message-bubble.received {
    margin-left:6px !important;
    padding-left:12px !important;
  }
  .sms-page-phone .message-bubble.received::before {
    left:-8px !important;
    width:18px !important;
    height:18px !important;
    background:#271d2c !important;
  }
  .sms-page-phone .message-bubble.received::after {
    left:-11px !important;
    width:11px !important;
    height:18px !important;
    background:#09050b !important;
  }
  .sms-page-phone .imessage-body .message-bubble {animation:site-message-in .42s both !important;}
  .sms-page-phone .imessage-body .message-bubble:nth-child(1){animation-delay:.2s !important;}
  .sms-page-phone .imessage-body .message-bubble:nth-child(2){animation-delay:.55s !important;}
  .sms-page-phone .imessage-body .message-bubble:nth-child(3){animation-delay:.9s !important;}
  .sms-page-phone .imessage-body .message-bubble:nth-child(4){animation-delay:1.25s !important;}
  .sms-page-phone .imessage-body .message-bubble:nth-child(5){animation-delay:1.6s !important;}
  .sms-side-note {
    right:10px !important;
    top:auto !important;
    bottom:74px !important;
    z-index:4 !important;
    font-size:21px !important;
    opacity:.92 !important;
    text-shadow:0 0 14px rgba(41,30,48,.80) !important;
    pointer-events:none !important;
  }
  .sms-orbit {opacity:.75 !important;}

  /* CONTACT — crayon plus proche du design desktop */
  .postal-pencil {
    font-size:0 !important;
    width:42px !important;
    height:58px !important;
    right:9% !important;
    top:52px !important;
    /* V26 pencil motion keyframes control transform. */
    color:transparent !important;
    background:no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='42' height='58' viewBox='0 0 42 58'%3E%3Cg fill='none' stroke='%23b78098' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 11 L22 4 L35 17 L28 30 Z'/%3E%3Cpath d='M28 30 L35 37'/%3E%3Cpath d='M35 37 L31 49 L42 45 Z'/%3E%3Cpath d='M14 8 L31 25'/%3E%3Cpath d='M10 12 L27 29'/%3E%3Cpath d='M31 49 L26 54'/%3E%3C/g%3E%3C/svg%3E") !important;
  }
}

@keyframes v24-gateway-phone-sway {
  0%,100% {transform:rotate(-8deg) translate3d(0,1px,0);} 
  24% {transform:rotate(-7deg) translate3d(1px,-2px,0);} 
  50% {transform:rotate(-8.6deg) translate3d(-1px,-5px,0);} 
  76% {transform:rotate(-7.2deg) translate3d(1px,-2px,0);} 
}

@keyframes v24-sms-page-float {
  0%,100% {transform:rotate(-7deg) translate3d(0,0,0);} 
  22% {transform:rotate(-6.2deg) translate3d(1px,-2px,0);} 
  50% {transform:rotate(-7.8deg) translate3d(-1px,-6px,0);} 
  78% {transform:rotate(-6.5deg) translate3d(1px,-1px,0);} 
}

@media (prefers-reduced-motion:reduce) {
  .gateway-sms-art .gateway-phone,
  .sms-intro-art .sms-page-phone,
  .story-showcase .iphone-card-phone-large,
  .postal-pencil,
  .postal-letter {
    animation:none !important;
  }
}

/* ===============================================================
   V25 — Unification finale des bulles + animations + Contact actif
   =============================================================== */

/* 1) Contact : l'état actif doit être visible aussi sur desktop */
.main-nav > a[aria-current='page']:not(.nav-club) {
  color:#fff !important;
}
.main-nav > a[aria-current='page']:not(.nav-club)::after {
  transform:scaleX(1) !important;
}

/* 2) Source unique pour les bulles des deux téléphones concernés
      (Deux portes + hero Histoires SMS), desktop et mobile. */
.gateway-phone .message-bubble,
.sms-page-phone .message-bubble {
  position:relative;
  overflow:visible !important;
}
.gateway-phone .message-bubble.sent,
.sms-page-phone .message-bubble.sent,
.gateway-phone .message-bubble.received,
.sms-page-phone .message-bubble.received {
  border-radius:18px !important;
}
.gateway-phone .message-bubble.sent,
.sms-page-phone .message-bubble.sent {
  background:#2f80ed !important;
  color:#fff !important;
  border-bottom-right-radius:4px !important;
}
.gateway-phone .message-bubble.received,
.sms-page-phone .message-bubble.received {
  background:#271d2c !important;
  color:#f5f1f7 !important;
  border-bottom-left-radius:4px !important;
}
.gateway-phone .message-bubble.sent::before,
.gateway-phone .message-bubble.sent::after,
.gateway-phone .message-bubble.received::before,
.gateway-phone .message-bubble.received::after,
.sms-page-phone .message-bubble.sent::before,
.sms-page-phone .message-bubble.sent::after,
.sms-page-phone .message-bubble.received::before,
.sms-page-phone .message-bubble.received::after {
  content:'' !important;
  position:absolute !important;
  bottom:0 !important;
  pointer-events:none !important;
  box-shadow:none !important;
  border:0 !important;
}
.gateway-phone .message-bubble.sent::before,
.sms-page-phone .message-bubble.sent::before {
  right:-8px !important;
  width:18px !important;
  height:18px !important;
  background:#2f80ed !important;
  border-bottom-left-radius:15px !important;
  z-index:0 !important;
}
.gateway-phone .message-bubble.sent::after,
.sms-page-phone .message-bubble.sent::after {
  right:-11px !important;
  width:11px !important;
  height:18px !important;
  background:#09050b !important;
  border-bottom-left-radius:11px !important;
  z-index:1 !important;
}
.gateway-phone .message-bubble.received::before,
.sms-page-phone .message-bubble.received::before {
  left:-8px !important;
  width:18px !important;
  height:18px !important;
  background:#271d2c !important;
  border-bottom-right-radius:15px !important;
  z-index:0 !important;
}
.gateway-phone .message-bubble.received::after,
.sms-page-phone .message-bubble.received::after {
  left:-11px !important;
  width:11px !important;
  height:18px !important;
  background:#09050b !important;
  border-bottom-right-radius:11px !important;
  z-index:1 !important;
}
.gateway-phone .message-bubble.emojis::before,
.gateway-phone .message-bubble.emojis::after,
.sms-page-phone .message-bubble.emojis::before,
.sms-page-phone .message-bubble.emojis::after {
  display:none !important;
}

/* 3) Restaurer explicitement les animations des deux téléphones. */
.gateway-sms-art .gateway-phone {
  animation:site-gateway-phone-sway 6.8s ease-in-out infinite !important;
  will-change:transform !important;
  transform-origin:center center !important;
}
.sms-intro-art .sms-page-phone {
  animation:site-premium-float-sms 8s ease-in-out infinite !important;
  will-change:transform !important;
  transform-origin:center center !important;
}

/* 4) Mobile : garder l'animation sans casser la géométrie du téléphone. */
@media (max-width:650px) {
  .gateway-sms-art {
    overflow:visible !important;
    height:320px !important;
    padding-bottom:18px !important;
  }
  .gateway-sms-art .gateway-phone {
    --phone-width:158px !important;
    --phone-height:307px !important;
    --phone-text-size:7.65px !important;
    margin-top:2px !important;
    /* V26: animation transform is driven by keyframes. */
    animation:v25-gateway-phone-sway-mobile 6.8s ease-in-out infinite !important;
  }
  .gateway-phone .message-bubble.sent,
  .sms-page-phone .message-bubble.sent {
    padding-right:10px !important;
  }
  .gateway-phone .message-bubble.received,
  .sms-page-phone .message-bubble.received {
    padding-left:10px !important;
    margin-left:6px !important;
  }

  .sms-intro {
    overflow:visible !important;
  }
  .sms-intro-art {
    overflow:visible !important;
    height:492px !important;
    padding-top:14px !important;
    padding-bottom:28px !important;
  }
  .sms-intro-art .sms-page-phone {
    --phone-width:214px !important;
    --phone-height:438px !important;
    --phone-text-size:9.15px !important;
    animation:v25-sms-page-float-mobile 8s ease-in-out infinite !important;
  }

  /* Contact mobile : reprendre le crayon desktop au lieu d'un redraw SVG. */
  .postal-pencil {
    width:auto !important;
    height:auto !important;
    font:54px/1 var(--serif) !important;
    color:#b78098 !important;
    background:none !important;
    right:7% !important;
    top:34px !important;
    /* V26 pencil motion keyframes control transform. */
  }
}

@keyframes v25-gateway-phone-sway-mobile {
  0%,100% { transform:rotate(-8deg) translate(0,2px); }
  25% { transform:rotate(-6.8deg) translate(0,-2px); }
  55% { transform:rotate(-8.7deg) translate(-1px,1px); }
  78% { transform:rotate(-7.2deg) translate(1px,-3px); }
}

@keyframes v25-sms-page-float-mobile {
  0%,100% { transform:rotate(-7deg) translateY(0); }
  50% { transform:rotate(-8.2deg) translateY(-6px); }
}
