

.v2-sms { position: relative; z-index: 2; background: #F9F7F2; color: var(--encre); padding: clamp(72px, 7vw, 120px) var(--gout) 240px; }
.v2-sms .v2-sur, .v2-sms .v2-h2 { color: var(--encre); }
.v2-sms-in { max-width: 1560px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 110px); align-items: start; }

.v2-sms-gauche { position: sticky; top: 120px; align-self: start; display: flex; flex-direction: column; align-items: flex-start; }
.v2-sms-h2 { margin-top: 18px; font-size: clamp(64px, 7.2vw, 128px); }
.v2-sms-autre { margin-top: clamp(32px, 3vw, 48px); max-width: 20em; font-size: clamp(18px, 1.4vw, 22px); line-height: 1.4; color: var(--encre); text-wrap: pretty; }

.v2-sms-deco { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 24px; }
.v2-sms-deco span { display: block; padding: 11px 22px; font-family: var(--texte); font-size: 17px; font-weight: 500; line-height: 1.2; white-space: nowrap; }
.v2-sms-d1 { background: var(--nuit); color: var(--fond); border-radius: 22px 22px 22px 6px; }
.v2-sms-d2 { margin-left: clamp(36px, 4vw, 64px); background: var(--orange); color: #FFFFFF; border-radius: 22px 22px 6px 22px; }

.v2-sms-fenetre { position: relative; display: flex; flex-direction: column; min-width: 0; border-radius: 32px; background: var(--blanc); overflow: hidden;
  box-shadow: 0 28px 60px -40px rgba(20,19,18,.32); }
.v2-sms-tete { display: flex; align-items: center; gap: 12px; padding: 12px 24px; border-bottom: 1px solid rgba(20,19,18,.07); }
.v2-sms-photo { display: block; flex: none; border-radius: 50%; object-fit: cover; background: #E7E3DA; }
.v2-sms-photo--tete { width: 42px; height: 42px; }
.v2-sms-nom { display: flex; flex-direction: column; gap: 2px; font-family: var(--texte); line-height: 1.15; }
.v2-sms-nom strong { font-size: 17px; font-weight: 700; color: var(--encre); }
.v2-sms-nom span { font-size: 13px; color: #6D685F; }

.v2-sms-fil { display: flex; flex-direction: column; gap: 7px; margin: 0; padding: 16px 24px 10px; list-style: none; }
.v2-sms-tour { min-width: 0; }
.v2-sms-h { margin: 0; font: inherit; display: flex; justify-content: flex-end; }
.v2-sms-q { display: inline-block; max-width: min(100%, 30em); padding: 8px 20px; border-radius: 22px 22px 6px 22px; background: var(--nuit); color: var(--fond); text-align: left;
  font-family: var(--texte); font-size: 16px; font-weight: 500; line-height: 1.25; letter-spacing: -.005em; cursor: pointer;
  transition: transform .35s var(--ease), background-color .25s var(--ease), color .25s var(--ease); -webkit-tap-highlight-color: transparent; }
.v2-sms-q:hover, .v2-sms-q:focus-visible { transform: translateY(-2px); }
.v2-sms-q:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.v2-sms-vif .v2-sms-tour:is(.ouvert, .frappe) .v2-sms-q { background: var(--orange); color: #FFFFFF; }
.v2-sms-vif .v2-sms-tour:is(.ouvert, .frappe) .v2-sms-q:focus-visible { outline-color: var(--encre); }

.v2-sms-rep { overflow: hidden; }
.v2-sms-rep-in { padding: 6px 0 4px; }
.v2-sms-ligne { display: flex; align-items: flex-end; gap: 10px; max-width: 640px; }
.v2-sms-avatar { flex: none; width: 36px; height: 36px; margin-bottom: 2px; }
.v2-sms-avatar .v2-sms-photo { width: 36px; height: 36px; }
.v2-sms-corps { position: relative; min-width: 0; max-width: 600px; }
.v2-sms-bulle { padding: 12px 18px; border-radius: 22px 22px 22px 6px; background: #F3F0E9; color: var(--encre); font-family: var(--texte); font-size: 16px; font-weight: 400; line-height: 1.45; text-wrap: pretty; }
.v2-sms-bulle a { color: inherit; text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.v2-sms-frappe { display: none; align-items: center; gap: 5px; width: max-content; padding: 17px 20px; border-radius: 22px 22px 22px 6px; background: #F3F0E9; }
.v2-sms-frappe i { width: 7px; height: 7px; border-radius: 50%; background: var(--gris); animation: v2-sms-pt 1s ease-in-out infinite; }
.v2-sms-frappe i:nth-child(2) { animation-delay: .15s; }
.v2-sms-frappe i:nth-child(3) { animation-delay: .3s; }
@keyframes v2-sms-pt { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }

.v2-sms-envoye { display: flex; justify-content: flex-end; }
.v2-sms-moi { max-width: min(100%, 26em); padding: 10px 20px; border-radius: 22px 22px 6px 22px; background: var(--orange); color: #FFFFFF; font-family: var(--texte); font-size: 16px; font-weight: 500; line-height: 1.35; overflow-wrap: anywhere; white-space: pre-wrap; }
.v2-sms-arrive { animation: v2-sms-pose .5s cubic-bezier(.34,1.56,.64,1) both; transform-origin: 100% 100%; }
.v2-sms-reponse .v2-sms-arrive { transform-origin: 0 100%; }

.v2-sms-saisie { position: relative; display: flex; align-items: center; gap: 10px; margin: 0; padding: 8px 16px 6px 24px; }
.v2-sms-lib, .v2-sms-statut { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.v2-sms-champ { flex: 1 1 auto; min-width: 0; height: 48px; padding: 0 22px; border: 0; border-radius: 100px; background: #F3F0E9; color: var(--encre); font-family: var(--texte); font-size: 17px; outline: none; transition: box-shadow .25s var(--ease); }
.v2-sms-champ::placeholder { color: #7C776E; opacity: 1; }
.v2-sms-champ:focus-visible { box-shadow: 0 0 0 2px var(--orange); }
.v2-sms-envoi { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--orange); transition: transform .35s cubic-bezier(.34,1.56,.64,1), background-color .25s var(--ease); -webkit-tap-highlight-color: transparent; }
.v2-sms-envoi svg { transform: translateX(1px); transition: transform .35s var(--ease); }
.v2-sms-envoi:hover, .v2-sms-envoi:focus-visible { transform: scale(1.08) rotate(-6deg); background: var(--nuit); }
.v2-sms-envoi:hover svg { transform: translateX(3px); }
.v2-sms-envoi:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.v2-sms-note { margin: 0; padding: 0 24px 14px; font-family: var(--texte); font-size: 13px; line-height: 1.4; color: #6D685F; }

.v2-sms-vif .v2-sms-rep { height: 0; visibility: hidden; transition: height .5s var(--ease), visibility 0s linear .5s; }
.v2-sms-vif:not(.v2-loin) .v2-sms-tour:is(.ouvert, .frappe) .v2-sms-rep { visibility: visible; transition: height .5s var(--ease), visibility 0s; }
.v2-sms-vif .v2-sms-frappe { display: none; }
.v2-sms-vif .v2-sms-tour.frappe .v2-sms-frappe, .v2-sms-vif .v2-sms-reponse.frappe .v2-sms-frappe { display: flex; animation: v2-sms-pose .35s var(--ease) both; transform-origin: 0 100%; }
.v2-sms-vif .v2-sms-tour.frappe .v2-sms-bulle, .v2-sms-vif .v2-sms-reponse.frappe .v2-sms-bulle { display: none; }
.v2-sms-vif .v2-sms-bulle { transform-origin: 0 100%; }
.v2-sms-vif .v2-sms-tour.ouvert .v2-sms-bulle { animation: v2-sms-pose .45s var(--ease) both; }
.v2-sms-vif .v2-sms-tour:is(.ouvert, .frappe) .v2-sms-avatar { animation: v2-sms-pose .45s var(--ease) both; }
.v2-sms-mesure .v2-sms-tour .v2-sms-bulle { display: block !important; }
.v2-sms-mesure .v2-sms-tour .v2-sms-frappe { display: none !important; }
.v2-sms-mesure-f .v2-sms-tour .v2-sms-frappe { display: flex !important; }
.v2-sms-mesure-f .v2-sms-tour .v2-sms-bulle { display: none !important; }
@keyframes v2-sms-pose { from { opacity: 0; transform: translateY(10px) scale(.94); } to { opacity: 1; transform: none; } }

.v2-sms-vif .v2-sms-h2 .l > span { transform: translateY(105%); transition: transform 1s cubic-bezier(.16,1,.3,1); }
.v2-sms-vif .v2-sms-h2 .l + .l > span { transition-delay: .08s; }
.v2-sms-vif .v2-sms-gauche > :not(.v2-sms-h2) { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.v2-sms-vif:not(.v2-sms-vu) .v2-sms-fenetre { opacity: 0; transform: translateY(28px); }
.v2-sms-vif:not(.v2-sms-vu) .v2-sms-tour, .v2-sms-vif:not(.v2-sms-vu) .v2-sms-saisie, .v2-sms-vif:not(.v2-sms-vu) .v2-sms-note { opacity: 0; }
.v2-sms-vif.v2-sms-vu .v2-sms-h2 .l > span { transform: none; }
.v2-sms-vif.v2-sms-vu .v2-sms-gauche > :not(.v2-sms-h2) { opacity: 1; transform: none; }
.v2-sms-vif.v2-sms-vu .v2-sms-gauche > .v2-sms-autre { transition-delay: .2s; }
.v2-sms-vif.v2-sms-vu .v2-sms-gauche > .v2-sms-deco { transition-delay: .32s; }
.v2-sms-vif .v2-sms-fenetre { transition: opacity .7s var(--ease), transform .8s cubic-bezier(.16,1,.3,1); }
.v2-sms-vif.v2-sms-vu .v2-sms-tour { animation: v2-sms-entre .55s cubic-bezier(.34,1.4,.64,1) both; animation-delay: calc(var(--i, 0) * 70ms + 260ms); transform-origin: 100% 100%; }
.v2-sms-vif.v2-sms-vu .v2-sms-saisie, .v2-sms-vif.v2-sms-vu .v2-sms-note { animation: v2-sms-monte .6s var(--ease) both; animation-delay: 700ms; }
@keyframes v2-sms-entre { from { opacity: 0; transform: translateY(16px) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes v2-sms-monte { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

:is(.v2-final, .v2-sms-final) .v2-sms-rep { height: auto !important; transition: none !important; }
:is(.v2-final, .v2-sms-final) .v2-sms-frappe { display: none !important; }
:is(.v2-final, .v2-sms-final) .v2-sms-bulle { display: block !important; animation: none !important; }
:is(.v2-final, .v2-sms-final) .v2-sms-q, :is(.v2-final, .v2-sms-final) .v2-sms-envoi, :is(.v2-final, .v2-sms-final) .v2-sms-envoi svg { transition: none; }
:is(.v2-final, .v2-sms-final) .v2-sms-arrive { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .v2-sms *, .v2-sms *::before, .v2-sms *::after { animation: none !important; transition: none !important; }
}

@media (max-width: 991px) {
  .v2-sms-in { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .v2-sms-gauche { position: static; }
  .v2-sms-autre { margin-top: 24px; }
}
@media (max-width: 767px) {
  .v2-sms-h2 { font-size: clamp(56px, 17vw, 84px); }
  .v2-sms-deco span { padding: 10px 18px; font-size: 15.5px; }
  .v2-sms-fenetre { border-radius: 28px; }
  .v2-sms-tete { padding: 12px 18px; }
  .v2-sms-fil { padding: 16px 14px 10px; }
  .v2-sms-q, .v2-sms-bulle, .v2-sms-moi { font-size: 15.5px; }
  .v2-sms-ligne { gap: 8px; }
  .v2-sms-avatar, .v2-sms-avatar .v2-sms-photo { width: 30px; height: 30px; }
  .v2-sms-saisie { padding: 10px 12px 6px 14px; }
  .v2-sms-champ { padding: 0 18px; font-size: 16px; }
  .v2-sms-note { padding: 0 18px 16px; }
}

@media (pointer: coarse), (max-width: 767px) {
  .v2-sms-q { min-height: 44px; padding-top: 11px; padding-bottom: 11px; }
}
@media (pointer: coarse) { .v2-sms-envoi { width: 48px; height: 48px; min-width: 48px; } }
