/* ============================================================
   partager-secret.css - Pages /partager-secret et /s/{token}
   ============================================================ */

/* .secret-wrap reserve la hauteur du fold (100vh) pour que la section
   _PresentationTransgo qui suit arrive sous le pli, comme Upload
   (.full-width-section { margin-top: 100vh }). Pas de flex centering :
   la carte est en position:fixed, le wrap ne sert qu'a reserver l'espace. */
.secret-wrap {
    height: 100vh;
    position: relative;
    z-index: 1;
    pointer-events: none;
}

/* La carte est ancree comme .upload-container : elle reste fixe pendant
   que la section _PresentationTransgo monte par-dessus le fond. */
.secret-card {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 680px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.97);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
    padding: 36px 32px;
    font-family: 'Open Sans', Arial, sans-serif;
    z-index: 5;
    pointer-events: auto;
    box-sizing: border-box;
}

/* Scrollbar discrete dans la carte */
.secret-card::-webkit-scrollbar { width: 5px; }
.secret-card::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }

.secret-card h1 {
    font-size: 1.7rem;
    font-weight: 800;
    color: #14244a;
    text-align: center;
    margin-bottom: 14px;
}

.secret-intro {
    font-size: 15px;
    color: #444;
    line-height: 1.7;
    text-align: center;
    margin-bottom: 22px;
}

.secret-content,
.secret-link {
    width: 100%;
    box-sizing: border-box;
    padding: 14px;
    border: 1px solid #cdd6e4;
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Courier New', Consolas, monospace;
    resize: vertical;
    margin-bottom: 8px;
}

.secret-content { min-height: 140px; }

.secret-link {
    min-height: 60px;
    color: #188cff;
    background: #f5f8ff;
    font-weight: 600;
}

.secret-btn {
    display: inline-block;
    padding: 12px 28px;
    background: #f1af21;
    color: #14244a;
    font-weight: 700;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    text-decoration: none;
}

.secret-btn:hover { background: #e0a015; }
.secret-btn:disabled { background: #ccc; cursor: not-allowed; }

.secret-warning {
    background: #fff7e6;
    border-left: 4px solid #f1af21;
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 14px;
    color: #5a4400;
    margin-bottom: 16px;
    line-height: 1.5;
}

.secret-message-success {
    background: #eaf7ef;
    border: 1px solid #b6e3c6;
    color: #1d6b3a;
    padding: 14px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 14px;
}

.secret-message-error {
    background: #fdeaea;
    border: 1px solid #f3c0c0;
    color: #a12121;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 12px;
    text-align: center;
}

.secret-note {
    font-size: 12px;
    color: #999;
    text-align: center;
    margin-top: 14px;
    line-height: 1.5;
}

@media (max-width: 600px) {
    .secret-card { padding: 24px 18px; }
    .secret-card h1 { font-size: 1.4rem; }
}
