.program-image-container {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 20px;
}

.program-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.program-image-upload {
    position: relative;
    width: 100%;
    height: 200px;
    border: 2px dashed #ccc;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.program-image-upload:hover {
    border-color: #007bff;
}

.program-image-upload input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.program-image-upload-text {
    text-align: center;
    color: #666;
}

.program-image-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.program-image-upload.has-image .program-image-preview {
    display: block;
}

.program-image-upload.has-image .program-image-upload-text {
    display: none;
} 

/* Styles pour les liens dans les messages */
.message-content a {
    text-decoration: underline;
    word-break: break-all;
}

.message-content a:hover {
    text-decoration: none;
    opacity: 0.8;
}

/* Liens dans les messages avec fond sombre (messages envoyés) */
.bg-primary .message-content a {
    color: #17a2b8 !important;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 2px 6px;
    border-radius: 4px;
    text-decoration: underline;
    font-weight: 500;
}

.bg-primary .message-content a:hover {
    color: #138496 !important;
    background-color: rgba(255, 255, 255, 1);
    text-decoration: none;
}

/* Liens dans les messages avec fond clair (messages reçus) */
.bg-light .message-content a {
    color: #d63384 !important;
    text-decoration: underline;
    font-weight: 500;
}

.bg-light .message-content a:hover {
    color: #b02a5b !important;
    text-decoration: none;
} 

/* ========================================
   TYPEWRITER EFFECT
======================================== */

.typewriter-container {
    position: relative;
    display: inline-block;
    min-height: 1.2em;
}

.typewriter-text {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 600;
    letter-spacing: 0.025em;
    position: relative;
    display: inline-block;
}

.typewriter-cursor {
    display: inline-block;
    background-color: currentColor;
    width: 3px;
    animation: blink 1s infinite;
    margin-left: 2px;
    height: 1em;
    vertical-align: baseline;
}

/* Animation du curseur qui clignote */
@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Variantes de couleurs pour le typewriter */
.typewriter-primary {
    color: #ffffff;
}

.typewriter-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #a5b4fc 50%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 4s ease infinite;
}

.typewriter-gradient .typewriter-cursor {
    background: linear-gradient(135deg, #ffffff 0%, #a5b4fc 50%, #6366f1 100%);
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.typewriter-elegant {
    color: #f1f5f9;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Effet de frappe avec soulignement */
.typewriter-underline {
    position: relative;
}

.typewriter-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, currentColor, transparent);
    animation: underlineGrow 0.3s ease-out;
}

@keyframes underlineGrow {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 100%;
        opacity: 1;
    }
}

/* Effet de lueur pour le curseur */
.typewriter-cursor-glow {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
    background-size: 400% 400%;
    animation: cursorGlow 2s ease infinite, blink 1s infinite;
    border-radius: 1px;
    box-shadow: 0 0 8px currentColor;
}

@keyframes cursorGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Responsive */
@media (max-width: 768px) {
    .typewriter-text {
        font-size: 0.9em;
    }
    
    .typewriter-cursor {
        width: 2px;
    }
} 