
/* --- CONTENEUR DE SAISIE --- */
.modal_1-content label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.modal_1-content input[type="text"] {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.modal_1-content input[type="text"]:focus {
    border-color: #007bff;
}

/* --- CONTENEUR DE L'APERÇU (PREVIEW) --- */
#article-preview-container,
#video-preview-container {
    margin-top: 0;
    flex: 1;
    min-height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px dashed #eee; 
    border-radius: 12px;
    background: #fafafa;
    overflow: hidden;
}

/* --- LA CARTE D'ARTICLE (GÉNÉRÉE EN JS) --- */
.article-preview-card {
    width: 100%;
    height: 100%; /* AJOUT : Remplit le conteneur */
    background: #fff;
    border: none; /* CHANGEMENT : Bordure retirée car le container en a une */
    text-align: left;
}

.article-preview-card img {
    width: 100%;
    height: 220px; /* CHANGEMENT : Un peu plus haut pour le confort */
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.article-preview-card h4 {
    margin: 12px 12px 5px 12px;
    font-size: 16px;
    color: #14171a;
    line-height: 1.4;
}

.article-preview-card p {
    margin: 0 12px 12px 12px;
    font-size: 13px;
    color: #657786;
}

/* --- ÉTAT CHARGEMENT --- */
#article-preview-container:empty::before,
#video-preview-container:empty::before {
    content: "L'aperçu apparaîtra ici...";
    color: #999;
    font-style: italic;
    font-size: 0.9rem;
}

.input-group {
    display: flex;
    gap: 8px;
    width: 100%;
    margin-bottom: 10px;
}

.input-group input#post-article-url,
.input-group input#post-video-url {
    flex: 1;            /* Force l'input à s'étirer pour remplir le vide */
    min-width: 0;       /* Sécurité pour éviter que l'input ne déborde en flexbox */
}

.input-group button {
    flex-shrink: 0;     /* Empêche le bouton de s'écraser si le lien est long */
    white-space: nowrap; /* Garde le texte "Load" sur une seule ligne */
}

/* --- VIDEO --- */
.video-thumb-wrapper {
    position: relative;
    display: block;
    width: 100%;
    background: #1a1a1b; /* Fond sombre neutre */
    min-height: 120px;   /* Hauteur minimale si pas d'image */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Si l'image est présente, on garde le ratio */
.video-thumb-wrapper img {
    width: 100%;
    height: auto;
    max-height: 350px;
    object-fit: cover;
    display: block;
}

.play-button-central {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: scale 0.2s;
    pointer-events: none;
}

.article-card-link:hover .play-button-central {
    scale: 1.1;
    background: #ff0000; /* Style YouTube */
}
