/* iPhone Container - Taille réduite de 75% pour la landing page */
.iphone-container {
    position: relative;
    width: 210.94px;
    height: 435.94px;
    background: #000;
    border-radius: 28.125px;
    padding: 7.03px;
    box-shadow: 
        0 0 0 4.22px #1a1a1a, 
        0 0 0 1.41px #000, 
        0 15px 75px rgba(0,0,0,0.5);
    transform: rotateY(-15deg) rotateX(5deg);
    transform-style: preserve-3d;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.iphone-container:hover {
    transform: rotateY(0deg) rotateX(0deg) scale(1.05);
    box-shadow: 
        0 0 0 4.22px #1a1a1a, 
        0 0 0 1.41px #000, 
        0 22.5px 90px rgba(0,0,0,0.6);
}

/* iPhone Screen */
.iphone-screen {
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 22.5px !important;
    overflow: hidden !important;
    position: relative;
}

/* Force border-radius on all states */
#phoneScreen {
    border-radius: 22.5px !important;
    overflow: hidden !important;
}

/* Global rule to hide all scrollbars in phone */
.iphone-screen *::-webkit-scrollbar,
#phoneScreen *::-webkit-scrollbar {
    display: none !important;
}

.iphone-screen *,
#phoneScreen * {
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
}

/* Status Bar */
.status-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 23.54px;
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 14.91px;
    z-index: 100;
    transition: all 0.3s ease;
}

.status-time {
    font-size: 11.25px;
    font-weight: 600;
    color: #000;
    transition: color 0.3s ease;
}

.status-icons {
    display: flex;
    gap: 3.66px;
    font-size: 9.84px;
    color: #000;
    align-items: center;
    transition: color 0.3s ease;
}
.status-icons .sb-icon {
    height: 9px;
    width: auto;
    fill: currentColor;
}

/* Notch */
.notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 14.91px;
    height: 16.13px;
    background: #000;
    border-radius: 0 0 14.91px 14.91px;
    z-index: 101;
}

/* Chat App */
.chat-app {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #f0f0f0;
    opacity: 0;
    animation: fadeIn 0.5s forwards;
}

.chat-header {
    position: absolute;
    top: 23.54px;
    left: 0;
    right: 0;
    height: 32.26px;
    background: #002FA7;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 13.5px;
    font-weight: 600;
}

.chat-messages {
    position: absolute;
    top: 55.8px;
    left: 0;
    right: 0;
    bottom: 37.49px;
    padding: 14.91px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Hide scrollbar for chat messages */
.chat-messages::-webkit-scrollbar {
    display: none;
}

.chat-messages {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.message {
    margin-bottom: 7.85px;
    opacity: 0;
    transform: translateY(15px);
}

.message.user {
    text-align: right;
}

.message.ai {
    text-align: left;
}

.message-bubble {
    display: inline-block;
    max-width: 80%;
    padding: 5.24px 11.81px;
    border-radius: 14.91px;
    font-size: 10.69px;
    line-height: 1.4;
    word-wrap: break-word;
}

.user .message-bubble {
    background: #002FA7;
    color: white;
    border-bottom-right-radius: 2.81px;
}

.ai .message-bubble {
    background: #e5e5ea;
    color: #000;
    border-bottom-left-radius: 2.81px;
}

.chat-input {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 37.49px;
    background: #fff;
    border-top: 1px solid #e5e5ea;
    display: flex;
    align-items: center;
    padding: 0 1.13px;
    gap: 0.76px;
}

.input-field {
    flex: 1;
    height: 19.19px;
    border: 1px solid #e5e5ea;
    border-radius: 10.9px;
    padding: 0 11.25px;
    font-size: 12.09px;
    background: #f8f8f8;
    white-space: pre-wrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.send-button {
    width: 19.19px;
    height: 19.19px;
    min-width: 19.19px;
    border-radius: 50%;
    background: #002FA7;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}

.send-button::before {
    content: '↑';
    color: white;
    font-size: 14.91px;
    font-weight: bold;
}

/* Ripple Effect */
.ripple {
    position: absolute;
    border: 2px solid #002FA7;
    border-radius: 50%;
    opacity: 0;
    animation: rippleEffect 1s ease-out;
}

@keyframes rippleEffect {
    0% {
        width: 0;
        height: 0;
        opacity: 0.8;
    }
    100% {
        width: 75.09px;
        height: 75.09px;
        opacity: 0;
        top: -23.91px;
        left: -23.91px;
    }
}

/* Gallery App */
.gallery-app {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000;
    opacity: 0;
    display: none;
}

.gallery-header {
    position: absolute;
    top: 23.54px;
    left: 0;
    right: 0;
    height: 32.26px;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14.91px;
    color: white;
    font-size: 13.5px;
    font-weight: 600;
}

.gallery-grid {
    position: absolute;
    top: 55.8px;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5px;
    padding: 1.5px;
    overflow: hidden;
}

/* Hide scrollbar for gallery */
.gallery-grid::-webkit-scrollbar {
    display: none;
}

.gallery-grid {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.photo-item {
    aspect-ratio: 1;
    background-size: cover;
    background-position: center;
    position: relative;
    cursor: pointer;
}

.photo-item.selected {
    box-shadow: 0 0 0 1.5px #002FA7 inset;
}

.photo-item.selected::after {
    content: '✓';
    position: absolute;
    bottom: 3.66px;
    right: 3.66px;
    width: 18px;
    height: 18px;
    background: #002FA7;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 9.84px;
}

/* Share Sheet */
.share-sheet {
    position: absolute;
    bottom: -214.92px;
    left: 0;
    right: 0;
    height: 214.92px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    border-radius: 14.91px 14.91px 0 0;
    padding: 14.91px;
    transition: bottom 0.3s ease-out;
}

.share-sheet.active {
    bottom: 0;
}

.share-handle {
    width: 30.09px;
    height: 2.62px;
    background: #c0c0c0;
    border-radius: 1.74px;
    margin: 0 auto 10.9px;
}

.share-actions {
    display: flex;
    gap: 14.91px;
    margin-bottom: 16.13px;
    justify-content: center;
}

.share-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4.36px;
    cursor: pointer;
}

.share-icon {
    width: 45px;
    height: 45px;
    background: #002FA7;
    border-radius: 11.25px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.share-icon.highlight {
    animation: pulse 0.8s ease-in-out;
    box-shadow: 0 0 15px rgba(0,122,255,0.5);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.share-label {
    font-size: 9px;
    color: #4A5568;
}

.contacts-list {
    margin-top: 10.9px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 11.25px;
    padding: 6.54px;
    border-radius: 7.59px;
    cursor: pointer;
    transition: background 0.2s;
}

.contact-item:hover {
    background: rgba(0,0,0,0.05);
}

.contact-item.highlight {
    background: rgba(0,122,255,0.1);
    animation: highlightContact 0.5s ease-in-out;
}

@keyframes highlightContact {
    0% { background: rgba(0,122,255,0); }
    50% { background: rgba(0,122,255,0.2); }
    100% { background: rgba(0,122,255,0.1); }
}

.contact-avatar {
    width: 30.09px;
    height: 30.09px;
    border-radius: 50%;
    background: #002FA7;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 12.09px;
}

.contact-name {
    font-size: 12.09px;
    font-weight: 500;
}

/* Messages App - Liste des conversations */
.messages-app {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    opacity: 0;
    display: none;
}

.messages-header {
    position: absolute;
    top: 23.54px;
    left: 0;
    right: 0;
    height: 32.26px;
    background: #f8f8f8;
    border-bottom: 1px solid #e5e5ea;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13.5px;
    font-weight: 600;
}

.conversations-list {
    position: absolute;
    top: 55.8px;
    left: 0;
    right: 0;
    bottom: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Hide scrollbar for conversations list */
.conversations-list::-webkit-scrollbar {
    display: none;
}

.conversations-list {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.conversation-item {
    display: flex;
    align-items: center;
    padding: 9px 15px;
    border-bottom: 1px solid #e5e5ea;
    cursor: pointer;
    transition: background 0.2s;
    position: relative;
}

.conversation-item:hover {
    background: rgba(0,0,0,0.05);
}

.conversation-item.highlight {
    background: rgba(0,122,255,0.1);
    animation: highlightConversation 0.5s ease-in-out;
}

@keyframes highlightConversation {
    0% { background: rgba(0,122,255,0); }
    50% { background: rgba(0,122,255,0.2); }
    100% { background: rgba(0,122,255,0.1); }
}

.conversation-avatar {
    width: 37.5px;
    height: 37.5px;
    border-radius: 50%;
    background: #002FA7;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13.5px;
    margin-right: 11.25px;
    flex-shrink: 0;
}

.conversation-content {
    flex: 1;
    min-width: 0;
}

.conversation-name {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 1.5px;
}

.conversation-preview {
    font-size: 10.5px;
    color: #4A5568;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conversation-time {
    font-size: 9px;
    color: #999;
    margin-left: 7.5px;
    flex-shrink: 0;
}

/* Menu contextuel */
.context-menu {
    position: absolute;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    border-radius: 9px;
    padding: 6px 0;
    box-shadow: 0 7.5px 22.5px rgba(0,0,0,0.2);
    z-index: 1000;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.2s ease;
    width: 120px;
    pointer-events: none;
}

.context-menu.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: all;
}

.context-menu-item {
    display: flex;
    align-items: center;
    padding: 9px 15px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.context-menu-item:hover {
    background: rgba(0,0,0,0.05);
}

.context-menu-item.danger {
    color: #ff3b30;
}

.context-menu-icon {
    margin-right: 9px;
    width: 15px;
    text-align: center;
}

/* Popup de confirmation Apple */
.confirmation-popup {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 9px;
    width: 202.5px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    z-index: 2000;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
    transition: all 0.3s ease;
}

.confirmation-popup.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.popup-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.popup-backdrop.active {
    opacity: 1;
}

.popup-header {
    padding: 15px 15px 7.5px;
    text-align: center;
}

.popup-title {
    font-size: 13.5px;
    font-weight: 600;
    margin-bottom: 6px;
}

.popup-message {
    font-size: 10.5px;
    color: #4A5568;
    line-height: 1.4;
}

.popup-buttons {
    border-top: 1px solid #e5e5ea;
    display: flex;
}

.popup-button {
    flex: 1;
    padding: 9px;
    background: none;
    border: none;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.popup-button:first-child {
    border-right: 1px solid #e5e5ea;
    color: #4A5568;
}

.popup-button:last-child {
    color: #002FA7;
    font-weight: 600;
}

.popup-button:hover {
    background: rgba(0,0,0,0.05);
}

/* Individual Chat View */
.individual-chat {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    opacity: 0;
    display: none;
}

.individual-chat-header {
    position: absolute;
    top: 23.54px;
    left: 0;
    right: 0;
    height: 32.26px;
    background: #f8f8f8;
    border-bottom: 1px solid #e5e5ea;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13.5px;
    font-weight: 600;
}

.photo-message {
    width: 100%;
    max-width: 149.91px;
    aspect-ratio: 1;
    border-radius: 11.25px;
    background: #f0f0f0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-message img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: inherit;
    display: block;
    background: #e5e5ea;
}

.messages-input {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 37.49px;
    background: #fff;
    border-top: 1px solid #e5e5ea;
    display: flex;
    align-items: center;
    padding: 0 1.13px;
    gap: 0.76px;
}

.messages-input-field {
    flex: 1;
    height: 19.19px;
    border: 1px solid #e5e5ea;
    border-radius: 10.9px;
    padding: 0 11.25px;
    font-size: 12.09px;
    background: #f8f8f8;
}

/* Lock Screen — heure centrée via translate-50% (plus robuste que left:0/right:0/text-align) */
.lock-screen-clock {
    position: absolute !important;
    top: 15% !important;
    left: 50% !important;
    right: auto !important;
    width: auto !important;
    text-align: center !important;
    color: rgba(255, 255, 255, 0.92) !important;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-size: 4.5rem !important;
    font-weight: 100 !important;
    transform: translateX(-50%) scaleY(2.5) !important;
    transform-origin: center center !important;
    letter-spacing: -2.25px !important;
    line-height: 0.4 !important;
    text-shadow: 0 0.75px 2.25px rgba(0, 0, 0, 0.3) !important;
    opacity: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Lock screen container */
.lock-screen {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.unlock-animation .lock-screen {
    transform: translateY(-100%);
}

.scam-screenshot {
    background: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 7.5px;
    padding: 7.5px;
    margin: 7.5px 0;
    font-size: 9px;
    color: #333;
    position: relative;
}

.scam-screenshot::before {
    content: "📱 Message reçu";
    position: absolute;
    top: -7.5px;
    left: 7.5px;
    background: #f8f8f8;
    padding: 0 3.75px;
    font-size: 7.5px;
    color: #4A5568;
}

/* Animations */
@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes fadeOut {
    to { opacity: 0; }
}

@keyframes slideIn {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes typing {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.typing-indicator {
    display: inline-flex;
    gap: 3.09px;
    padding: 7.85px;
}

.typing-dot {
    width: 5.91px;
    height: 5.91px;
    background: #999;
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

/* WCAG AAA — Mouvement reduit */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
/* ============================================================================
   SETTINGS APP (scénario WIFI) + DOCTOLIB-LIKE APP (scénario DOCTOR)
   Toutes les dimensions en px relatifs au phone 210×436 ; ils scalent ensemble.
   ============================================================================ */
.settings-app, .doctolib-app {
    position: absolute;
    top: 23.54px;     /* sous la status-bar */
    left: 0; right: 0; bottom: 0;
    background: #F2F2F7;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 5;
    transition: opacity 0.45s ease;
}

/* ---- Settings header (commun aux 2 vues) ---- */
.settings-header {
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    background: #F8F8FA;
    border-bottom: 0.5px solid rgba(0,0,0,0.08);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
}
.settings-back { color: #002FA7; font-size: 18px; line-height: 1; width: 28px; }
.settings-title { font-weight: 700; font-size: 13.5px; color: #000; }
.settings-spacer { width: 28px; }

.settings-body {
    flex: 1;
    position: relative;
    overflow: hidden;
    padding-bottom: 8px;
}

/* ---- Liste de réglages ---- */
.settings-list { display: flex; flex-direction: column; gap: 0; }
.settings-row {
    display: grid;
    grid-template-columns: 22px 1fr auto auto;
    gap: 8px;
    align-items: center;
    background: white;
    margin: 0 6px;
    padding: 6px 8px;
    border-radius: 8px;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 11.5px;
    margin-top: 5px;
    transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
}
.settings-row.is-tapped { background: #E5E5EA; transform: scale(0.99); }
.settings-row-highlight.is-pulsing {
    box-shadow: 0 0 0 2.5px rgba(0,47,167,0.55), 0 4px 14px rgba(0,47,167,0.25);
    animation: settingsPulse 1.2s ease-in-out infinite;
}
@keyframes settingsPulse {
    0%, 100% { box-shadow: 0 0 0 2.5px rgba(0,47,167,0.55), 0 4px 14px rgba(0,47,167,0.25); }
    50%      { box-shadow: 0 0 0 4px rgba(0,47,167,0.18), 0 6px 18px rgba(0,47,167,0.35); }
}
.settings-icon {
    width: 22px; height: 22px;
    border-radius: 5px;
    display: flex; align-items: center; justify-content: center;
    color: white;
    font-size: 13px;
    font-weight: 700;
}
.settings-icon svg { width: 14px; height: 14px; }
.settings-icon-blue   { background: #002FA7; }
.settings-icon-blue2  { background: #0a84ff; }
.settings-icon-red    { background: #ff3b30; }
.settings-icon-orange { background: #ff9500; }
.settings-label { color: #000; font-weight: 500; }
.settings-value { color: rgba(60,60,67,0.6); font-size: 11px; }
.settings-chevron { color: rgba(60,60,67,0.45); font-size: 14px; line-height: 1; }
.settings-toggle {
    width: 26px; height: 16px; border-radius: 16px;
    background: rgba(120,120,128,0.3); position: relative;
    transition: background 0.3s;
}
.settings-toggle::after {
    content: ''; position: absolute; top: 2px; left: 2px;
    width: 12px; height: 12px; border-radius: 50%;
    background: white; box-shadow: 0 1px 2px rgba(0,0,0,0.15);
    transition: transform 0.3s;
}
.settings-toggle.on { background: #34c759; }
.settings-toggle.on::after { transform: translateX(10px); }

/* ---- Vue Wi-Fi ---- */
.settings-wifi { padding: 0 6px; display: flex; flex-direction: column; gap: 4px; margin-top: 5px; }
.wifi-master {
    display: flex; justify-content: space-between; align-items: center;
    background: white; padding: 7px 10px; border-radius: 8px;
    font-size: 12px; font-weight: 600;
}
.wifi-toggle {
    width: 26px; height: 16px; border-radius: 16px;
    background: rgba(120,120,128,0.3); position: relative;
}
.wifi-toggle.on { background: #34c759; }
.wifi-toggle.on::after {
    content: ''; position: absolute; top: 2px; right: 2px;
    width: 12px; height: 12px; border-radius: 50%;
    background: white;
}
.wifi-section-title {
    margin: 6px 4px 0; font-size: 9px; font-weight: 600;
    color: rgba(60,60,67,0.6); text-transform: uppercase; letter-spacing: 0.03em;
}
.wifi-network {
    display: grid;
    grid-template-columns: 22px 1fr auto auto;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 11.5px;
    color: #000;
    transition: background 0.25s, box-shadow 0.25s;
}
.wifi-network.is-tapped { background: #E5E5EA; }
.wifi-network.is-pulsing {
    box-shadow: 0 0 0 2.5px rgba(0,47,167,0.55);
    animation: settingsPulse 1.2s ease-in-out infinite;
}
.wifi-network.is-connected { background: #E8F6EC; }
.wifi-status-icon {
    width: 18px; height: 18px; display: flex; align-items: center; justify-content: center;
    color: #002FA7;
}
.wifi-status-icon svg { width: 16px; height: 16px; }
.wifi-status-error {
    background: #ff3b30; color: white; border-radius: 50%;
    font-weight: 800; font-size: 12px;
}
.wifi-network-name { font-weight: 500; }
.wifi-network-status { color: rgba(60,60,67,0.55); font-size: 10px; }

/* ---- Bandeau Senolo Coach ---- */
.senolo-coach {
    position: absolute;
    left: 8px; right: 8px;
    bottom: 8px;
    background: linear-gradient(135deg, #002FA7, #0E58A4);
    color: white;
    padding: 7px 9px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 7px;
    box-shadow: 0 4px 14px rgba(0,47,167,0.35);
    transform: translateY(120%);
    opacity: 0;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}
.senolo-coach.is-visible { transform: translateY(0); opacity: 1; }
.senolo-coach-avatar {
    width: 22px; height: 22px;
    background: white;
    color: #002FA7;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 11px;
    flex-shrink: 0;
}
.senolo-coach-text { font-size: 10.5px; font-weight: 500; line-height: 1.3; }

/* ---- Toast connexion réussie ---- */
.connect-toast {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: rgba(52,199,89,0.96);
    color: white;
    padding: 10px 16px;
    border-radius: 14px;
    display: flex; align-items: center; gap: 7px;
    font-size: 12px; font-weight: 600;
    opacity: 0;
    transition: opacity 0.35s, transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 12px 28px rgba(0,0,0,0.25);
    z-index: 10;
    pointer-events: none;
}
.connect-toast.is-visible { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.connect-toast svg { width: 16px; height: 16px; }

/* ============================================================================
   DOCTOLIB-LIKE APP
   ============================================================================ */
.doc-header {
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    background: #002FA7;
    color: white;
}
.doc-back  { font-size: 18px; line-height: 1; width: 22px; }
.doc-brand { font-weight: 800; font-size: 13px; letter-spacing: -0.01em; }
.doc-spacer { width: 22px; }

.doc-search {
    margin: 8px 8px 0;
    background: white;
    border-radius: 10px;
    padding: 7px 10px;
    display: flex; align-items: center; gap: 6px;
    font-size: 11.5px;
    color: #2D3748;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.doc-search svg { width: 13px; height: 13px; color: rgba(0,47,167,0.7); flex-shrink: 0; }
.doc-search-text { flex: 1; }
.doc-search-cursor { color: #002FA7; animation: docBlink 0.9s steps(2) infinite; }
@keyframes docBlink { to { opacity: 0; } }

.doc-body {
    flex: 1; position: relative; overflow: hidden;
    padding: 8px;
}
.doc-step { display: flex; flex-direction: column; gap: 7px; opacity: 1; transition: opacity 0.4s; }
.doc-step-title { font-size: 10px; font-weight: 700; color: rgba(0,47,167,0.85); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 2px; }
.doc-card {
    background: white;
    border-radius: 12px;
    padding: 8px 10px;
    display: flex; gap: 8px; align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
}
.doc-card.is-tapped { background: #EEF2FB; transform: scale(0.99); }
.doc-card.is-pulsing {
    box-shadow: 0 0 0 2.5px rgba(0,47,167,0.55), 0 6px 16px rgba(0,47,167,0.25);
    animation: settingsPulse 1.2s ease-in-out infinite;
}
.doc-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #002FA7, #0E58A4);
    color: white;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 13px;
    flex-shrink: 0;
}
.doc-card-body { flex: 1; min-width: 0; }
.doc-name { font-weight: 700; font-size: 11.5px; color: #1a1a1a; line-height: 1.25; }
.doc-spec { font-size: 9.5px; color: rgba(60,60,67,0.7); margin-top: 1px; }
.doc-availability { font-size: 10px; font-weight: 600; color: #28A745; margin-top: 3px; display: flex; align-items: center; gap: 4px; }
.doc-dot { width: 6px; height: 6px; border-radius: 50%; }
.doc-dot-green  { background: #34c759; }
.doc-dot-orange { background: #ff9500; }

.doc-doctor-bar {
    background: white;
    border-radius: 12px;
    padding: 7px 10px;
    display: flex; gap: 8px; align-items: center;
    margin-bottom: 4px;
}
.doc-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.doc-slot {
    background: white;
    border: 1px solid rgba(0,47,167,0.25);
    border-radius: 8px;
    padding: 6px 0;
    text-align: center;
    font-size: 10.5px;
    font-weight: 700;
    color: #002FA7;
    transition: all 0.25s;
}
.doc-slot.is-pulsing,
.doc-slot-highlight {
    background: #EEF2FB;
    border-color: #002FA7;
    box-shadow: 0 0 0 2.5px rgba(0,47,167,0.35);
}
.doc-slot.is-tapped { background: #002FA7; color: white; transform: scale(0.96); }
.doc-slot-disabled { opacity: 0.35; }

.doc-step-confirm {
    align-items: center;
    justify-content: center;
    flex: 1;
    text-align: center;
    padding: 16px 8px;
}
.doc-confirm-check {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #28A745, #1F8D38);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 24px rgba(40,167,69,0.4);
    margin: 0 auto 10px;
    animation: docConfirmIn 0.55s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}
.doc-confirm-check svg { width: 28px; height: 28px; }
@keyframes docConfirmIn {
    0%   { transform: scale(0.3); opacity: 0; }
    60%  { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); }
}
.doc-confirm-title { font-weight: 800; font-size: 14px; color: #002FA7; margin-bottom: 8px; }
.doc-confirm-row { font-size: 11px; color: #1a1a1a; margin-bottom: 3px; }
.doc-confirm-mute { color: rgba(60,60,67,0.65); font-size: 10px; }
